stm32f103-pac 0.1.3

Peripheral Access Crate (PAC) for STM32F103
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420
23421
23422
23423
23424
23425
23426
23427
23428
23429
23430
23431
23432
23433
23434
23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365
24366
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487
24488
24489
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142
25143
25144
25145
25146
25147
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314
25315
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664
25665
25666
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676
25677
25678
25679
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723
25724
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923
25924
25925
25926
25927
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
26033
26034
26035
26036
26037
26038
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222
26223
26224
26225
26226
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266
26267
26268
26269
26270
26271
26272
26273
26274
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407
26408
26409
26410
26411
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421
26422
26423
26424
26425
26426
26427
26428
26429
26430
26431
26432
26433
26434
26435
26436
26437
26438
26439
26440
26441
26442
26443
26444
26445
26446
26447
26448
26449
26450
26451
26452
26453
26454
26455
26456
26457
26458
26459
26460
26461
26462
26463
26464
26465
26466
26467
26468
26469
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582
26583
26584
26585
26586
26587
26588
26589
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246
27247
27248
27249
27250
27251
27252
27253
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
27293
27294
27295
27296
27297
27298
27299
27300
27301
27302
27303
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394
27395
27396
27397
27398
27399
27400
27401
27402
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556
27557
27558
27559
27560
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614
27615
27616
27617
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628
27629
27630
27631
27632
27633
27634
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831
27832
27833
27834
27835
27836
27837
27838
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850
27851
27852
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878
27879
27880
27881
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
# ! [doc = "Peripheral access API for STM32F103 microcontrollers (generated using svd2rust v0.37.1 ( ))\n\nYou can find an overview of the generated API [here].\n\nAPI features to be included in the [next] svd2rust release can be generated by cloning the svd2rust [repository], checking out the above commit, and running `cargo doc --open`.\n\n[here]: https://docs.rs/svd2rust/0.37.1/svd2rust/#peripheral-api\n[next]: https://github.com/rust-embedded/svd2rust/blob/master/CHANGELOG.md#unreleased\n[repository]: https://github.com/rust-embedded/svd2rust"] # ! [allow (non_camel_case_types)] # ! [allow (non_snake_case)] # ! [no_std] # ! [cfg_attr (docsrs , feature (doc_cfg))]
#[doc = r"Number available in the NVIC for configuring priority"] pub const NVIC_PRIO_BITS : u8 = 4 ;
#[allow (unused_imports)] use generic :: * ;
#[doc = r"Common register and bit access and modify traits"] pub mod generic { use core :: marker ;
#[doc = " Generic peripheral accessor"] pub struct Periph < RB , const A : usize > { _marker : marker :: PhantomData < RB > , } unsafe impl < RB , const A : usize > Send for Periph < RB , A > { } impl < RB , const A : usize > Periph < RB , A > {
#[doc = "Pointer to the register block"] pub const PTR : * const RB = A as * const _ ;
#[doc = "Return the pointer to the register block"]
#[inline (always)] pub const fn ptr () -> * const RB { Self :: PTR }
#[doc = " Steal an instance of this peripheral"]
#[doc = ""]
#[doc = " # Safety"]
#[doc = ""]
#[doc = " Ensure that the new instance of the peripheral cannot be used in a way"]
#[doc = " that may race with any existing instances, for example by only"]
#[doc = " accessing read-only or write-only registers, or by consuming the"]
#[doc = " original peripheral and using critical sections to coordinate"]
#[doc = " access between multiple new instances."]
#[doc = ""]
#[doc = " Additionally, other software such as HALs may rely on only one"]
#[doc = " peripheral instance existing to ensure memory safety; ensure"]
#[doc = " no stolen instances are passed to such software."] pub unsafe fn steal () -> Self { Self { _marker : marker :: PhantomData , } } } impl < RB , const A : usize > core :: ops :: Deref for Periph < RB , A > { type Target = RB ;
#[inline (always)] fn deref (& self) -> & Self :: Target { unsafe { & * Self :: PTR } } }
#[doc = " Raw register type (`u8`, `u16`, `u32`, ...)"] pub trait RawReg : Copy + From < bool > + core :: ops :: BitOr < Output = Self > + core :: ops :: BitAnd < Output = Self > + core :: ops :: BitOrAssign + core :: ops :: BitAndAssign + core :: ops :: Not < Output = Self > + core :: ops :: Shl < u8 , Output = Self > {
#[doc = " Mask for bits of width `WI`"] fn mask < const WI : u8 > () -> Self ;
#[doc = " `0`"] const ZERO : Self ;
#[doc = " `1`"] const ONE : Self ; } macro_rules ! raw_reg { ($ U : ty , $ size : literal , $ mask : ident) => { impl RawReg for $ U {
#[inline (always)] fn mask < const WI : u8 > () -> Self { $ mask ::< WI > () } const ZERO : Self = 0 ; const ONE : Self = 1 ; } const fn $ mask < const WI : u8 > () -> $ U { <$ U >:: MAX >> ($ size - WI) } impl FieldSpec for $ U { type Ux = $ U ; } } ; } raw_reg ! (u8 , 8 , mask_u8) ; raw_reg ! (u16 , 16 , mask_u16) ; raw_reg ! (u32 , 32 , mask_u32) ; raw_reg ! (u64 , 64 , mask_u64) ;
#[doc = " Raw register type"] pub trait RegisterSpec {
#[doc = " Raw register type (`u8`, `u16`, `u32`, ...)."] type Ux : RawReg ; }
#[doc = " Raw field type"] pub trait FieldSpec : Sized {
#[doc = " Raw field type (`u8`, `u16`, `u32`, ...)."] type Ux : Copy + core :: fmt :: Debug + PartialEq + From < Self > ; }
#[doc = " Marker for fields with fixed values"] pub trait IsEnum : FieldSpec { }
#[doc = " Trait implemented by readable registers to enable the `read` method."]
#[doc = ""]
#[doc = " Registers marked with `Writable` can be also be `modify`'ed."] pub trait Readable : RegisterSpec { }
#[doc = " Trait implemented by writeable registers."]
#[doc = ""]
#[doc = " This enables the  `write`, `write_with_zero` and `reset` methods."]
#[doc = ""]
#[doc = " Registers marked with `Readable` can be also be `modify`'ed."] pub trait Writable : RegisterSpec {
#[doc = " Is it safe to write any bits to register"] type Safety ;
#[doc = " Specifies the register bits that are not changed if you pass `1` and are changed if you pass `0`"] const ZERO_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = Self :: Ux :: ZERO ;
#[doc = " Specifies the register bits that are not changed if you pass `0` and are changed if you pass `1`"] const ONE_TO_MODIFY_FIELDS_BITMAP : Self :: Ux = Self :: Ux :: ZERO ; }
#[doc = " Reset value of the register."]
#[doc = ""]
#[doc = " This value is the initial value for the `write` method. It can also be directly written to the"]
#[doc = " register by using the `reset` method."] pub trait Resettable : RegisterSpec {
#[doc = " Reset value of the register."] const RESET_VALUE : Self :: Ux = Self :: Ux :: ZERO ;
#[doc = " Reset value of the register."]
#[inline (always)] fn reset_value () -> Self :: Ux { Self :: RESET_VALUE } }
#[doc (hidden)] pub mod raw { use super :: { marker , BitM , FieldSpec , RegisterSpec , Unsafe , Writable } ; pub struct R < REG : RegisterSpec > { pub (crate) bits : REG :: Ux , pub (super) _reg : marker :: PhantomData < REG > , } pub struct W < REG : RegisterSpec > {
#[doc = "Writable bits"] pub (crate) bits : REG :: Ux , pub (super) _reg : marker :: PhantomData < REG > , } pub struct FieldReader < FI = u8 > where FI : FieldSpec , { pub (crate) bits : FI :: Ux , _reg : marker :: PhantomData < FI > , } impl < FI : FieldSpec > FieldReader < FI > {
#[doc = " Creates a new instance of the reader."]
#[allow (unused)]
#[inline (always)] pub (crate) const fn new (bits : FI :: Ux) -> Self { Self { bits , _reg : marker :: PhantomData , } } } pub struct BitReader < FI = bool > { pub (crate) bits : bool , _reg : marker :: PhantomData < FI > , } impl < FI > BitReader < FI > {
#[doc = " Creates a new instance of the reader."]
#[allow (unused)]
#[inline (always)] pub (crate) const fn new (bits : bool) -> Self { Self { bits , _reg : marker :: PhantomData , } } }
#[must_use = "after creating `FieldWriter` you need to call field value setting method"] pub struct FieldWriter < 'a , REG , const WI : u8 , FI = u8 , Safety = Unsafe > where REG : Writable + RegisterSpec , FI : FieldSpec , { pub (crate) w : & 'a mut W < REG > , pub (crate) o : u8 , _field : marker :: PhantomData < (FI , Safety) > , } impl < 'a , REG , const WI : u8 , FI , Safety > FieldWriter < 'a , REG , WI , FI , Safety > where REG : Writable + RegisterSpec , FI : FieldSpec , {
#[doc = " Creates a new instance of the writer"]
#[allow (unused)]
#[inline (always)] pub (crate) fn new (w : & 'a mut W < REG > , o : u8) -> Self { Self { w , o , _field : marker :: PhantomData , } } }
#[must_use = "after creating `BitWriter` you need to call bit setting method"] pub struct BitWriter < 'a , REG , FI = bool , M = BitM > where REG : Writable + RegisterSpec , bool : From < FI > , { pub (crate) w : & 'a mut W < REG > , pub (crate) o : u8 , _field : marker :: PhantomData < (FI , M) > , } impl < 'a , REG , FI , M > BitWriter < 'a , REG , FI , M > where REG : Writable + RegisterSpec , bool : From < FI > , {
#[doc = " Creates a new instance of the writer"]
#[allow (unused)]
#[inline (always)] pub (crate) fn new (w : & 'a mut W < REG > , o : u8) -> Self { Self { w , o , _field : marker :: PhantomData , } } } }
#[doc = " Register reader."]
#[doc = ""]
#[doc = " Result of the `read` methods of registers. Also used as a closure argument in the `modify`"]
#[doc = " method."] pub type R < REG > = raw :: R < REG > ; impl < REG : RegisterSpec > R < REG > {
#[doc = " Reads raw bits from register."]
#[inline (always)] pub const fn bits (& self) -> REG :: Ux { self . bits } } impl < REG : RegisterSpec , FI > PartialEq < FI > for R < REG > where REG :: Ux : PartialEq , FI : Copy , REG :: Ux : From < FI > , {
#[inline (always)] fn eq (& self , other : & FI) -> bool { self . bits . eq (& REG :: Ux :: from (* other)) } }
#[doc = " Register writer."]
#[doc = ""]
#[doc = " Used as an argument to the closures in the `write` and `modify` methods of the register."] pub type W < REG > = raw :: W < REG > ; impl < REG : Writable > W < REG > {
#[doc = " Writes raw bits to the register."]
#[doc = ""]
#[doc = " # Safety"]
#[doc = ""]
#[doc = " Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline (always)] pub unsafe fn bits (& mut self , bits : REG :: Ux) -> & mut Self { self . bits = bits ; self } } impl < REG > W < REG > where REG : Writable < Safety = Safe > , {
#[doc = " Writes raw bits to the register."]
#[inline (always)] pub fn set (& mut self , bits : REG :: Ux) -> & mut Self { self . bits = bits ; self } }
#[doc = " Field reader."]
#[doc = ""]
#[doc = " Result of the `read` methods of fields."] pub type FieldReader < FI = u8 > = raw :: FieldReader < FI > ;
#[doc = " Bit-wise field reader"] pub type BitReader < FI = bool > = raw :: BitReader < FI > ; impl < FI : FieldSpec > FieldReader < FI > {
#[doc = " Reads raw bits from field."]
#[inline (always)] pub const fn bits (& self) -> FI :: Ux { self . bits } } impl < FI : FieldSpec > core :: fmt :: Debug for FieldReader < FI > { fn fmt (& self , f : & mut core :: fmt :: Formatter < '_ >) -> core :: fmt :: Result { core :: fmt :: Debug :: fmt (& self . bits , f) } } impl < FI > PartialEq < FI > for FieldReader < FI > where FI : FieldSpec + Copy , {
#[inline (always)] fn eq (& self , other : & FI) -> bool { self . bits . eq (& FI :: Ux :: from (* other)) } } impl < FI > PartialEq < FI > for BitReader < FI > where FI : Copy , bool : From < FI > , {
#[inline (always)] fn eq (& self , other : & FI) -> bool { self . bits . eq (& bool :: from (* other)) } } impl < FI > BitReader < FI > {
#[doc = " Value of the field as raw bits."]
#[inline (always)] pub const fn bit (& self) -> bool { self . bits }
#[doc = " Returns `true` if the bit is clear (0)."]
#[inline (always)] pub const fn bit_is_clear (& self) -> bool { ! self . bit () }
#[doc = " Returns `true` if the bit is set (1)."]
#[inline (always)] pub const fn bit_is_set (& self) -> bool { self . bit () } } impl < FI > core :: fmt :: Debug for BitReader < FI > { fn fmt (& self , f : & mut core :: fmt :: Formatter < '_ >) -> core :: fmt :: Result { core :: fmt :: Debug :: fmt (& self . bits , f) } }
#[doc = " Marker for register/field writers which can take any value of specified width"] pub struct Safe ;
#[doc = " You should check that value is allowed to pass to register/field writer marked with this"] pub struct Unsafe ;
#[doc = " Marker for field writers are safe to write in specified inclusive range"] pub struct Range < const MIN : u64 , const MAX : u64 > ;
#[doc = " Marker for field writers are safe to write in specified inclusive range"] pub struct RangeFrom < const MIN : u64 > ;
#[doc = " Marker for field writers are safe to write in specified inclusive range"] pub struct RangeTo < const MAX : u64 > ;
#[doc = " Write field Proxy"] pub type FieldWriter < 'a , REG , const WI : u8 , FI = u8 , Safety = Unsafe > = raw :: FieldWriter < 'a , REG , WI , FI , Safety > ; impl < REG , const WI : u8 , FI , Safety > FieldWriter < '_ , REG , WI , FI , Safety > where REG : Writable + RegisterSpec , FI : FieldSpec , {
#[doc = " Field width"] pub const WIDTH : u8 = WI ;
#[doc = " Field width"]
#[inline (always)] pub const fn width (& self) -> u8 { WI }
#[doc = " Field offset"]
#[inline (always)] pub const fn offset (& self) -> u8 { self . o } } impl < 'a , REG , const WI : u8 , FI , Safety > FieldWriter < 'a , REG , WI , FI , Safety > where REG : Writable + RegisterSpec , FI : FieldSpec , REG :: Ux : From < FI :: Ux > , {
#[doc = " Writes raw bits to the field"]
#[doc = ""]
#[doc = " # Safety"]
#[doc = ""]
#[doc = " Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline (always)] pub unsafe fn bits (self , value : FI :: Ux) -> & 'a mut W < REG > { self . w . bits &= ! (REG :: Ux :: mask :: < WI > () << self . o) ; self . w . bits |= (REG :: Ux :: from (value) & REG :: Ux :: mask :: < WI > ()) << self . o ; self . w } } impl < 'a , REG , const WI : u8 , FI > FieldWriter < 'a , REG , WI , FI , Safe > where REG : Writable + RegisterSpec , FI : FieldSpec , REG :: Ux : From < FI :: Ux > , {
#[doc = " Writes raw bits to the field"]
#[inline (always)] pub fn set (self , value : FI :: Ux) -> & 'a mut W < REG > { unsafe { self . bits (value) } } } impl < 'a , REG , const WI : u8 , FI , const MIN : u64 , const MAX : u64 > FieldWriter < 'a , REG , WI , FI , Range < MIN , MAX > > where REG : Writable + RegisterSpec , FI : FieldSpec , REG :: Ux : From < FI :: Ux > , u64 : From < FI :: Ux > , {
#[doc = " Writes raw bits to the field"]
#[inline (always)] pub fn set (self , value : FI :: Ux) -> & 'a mut W < REG > { { let value = u64 :: from (value) ; assert ! (value >= MIN && value <= MAX) ; } unsafe { self . bits (value) } } } impl < 'a , REG , const WI : u8 , FI , const MIN : u64 > FieldWriter < 'a , REG , WI , FI , RangeFrom < MIN > > where REG : Writable + RegisterSpec , FI : FieldSpec , REG :: Ux : From < FI :: Ux > , u64 : From < FI :: Ux > , {
#[doc = " Writes raw bits to the field"]
#[inline (always)] pub fn set (self , value : FI :: Ux) -> & 'a mut W < REG > { { let value = u64 :: from (value) ; assert ! (value >= MIN) ; } unsafe { self . bits (value) } } } impl < 'a , REG , const WI : u8 , FI , const MAX : u64 > FieldWriter < 'a , REG , WI , FI , RangeTo < MAX > > where REG : Writable + RegisterSpec , FI : FieldSpec , REG :: Ux : From < FI :: Ux > , u64 : From < FI :: Ux > , {
#[doc = " Writes raw bits to the field"]
#[inline (always)] pub fn set (self , value : FI :: Ux) -> & 'a mut W < REG > { { let value = u64 :: from (value) ; assert ! (value <= MAX) ; } unsafe { self . bits (value) } } } impl < 'a , REG , const WI : u8 , FI , Safety > FieldWriter < 'a , REG , WI , FI , Safety > where REG : Writable + RegisterSpec , FI : IsEnum , REG :: Ux : From < FI :: Ux > , {
#[doc = " Writes `variant` to the field"]
#[inline (always)] pub fn variant (self , variant : FI) -> & 'a mut W < REG > { unsafe { self . bits (FI :: Ux :: from (variant)) } } } macro_rules ! bit_proxy { ($ writer : ident , $ mwv : ident) => {
#[doc (hidden)] pub struct $ mwv ;
#[doc = " Bit-wise write field proxy"] pub type $ writer <'a , REG , FI = bool > = raw :: BitWriter <'a , REG , FI , $ mwv >; impl <'a , REG , FI > $ writer <'a , REG , FI > where REG : Writable + RegisterSpec , bool : From < FI >, {
#[doc = " Field width"] pub const WIDTH : u8 = 1 ;
#[doc = " Field width"]
#[inline (always)] pub const fn width (& self) -> u8 { Self :: WIDTH }
#[doc = " Field offset"]
#[inline (always)] pub const fn offset (& self) -> u8 { self . o }
#[doc = " Writes bit to the field"]
#[inline (always)] pub fn bit (self , value : bool) -> &'a mut W < REG > { self . w . bits &= ! (REG :: Ux :: ONE << self . o) ; self . w . bits |= (REG :: Ux :: from (value) & REG :: Ux :: ONE) << self . o ; self . w }
#[doc = " Writes `variant` to the field"]
#[inline (always)] pub fn variant (self , variant : FI) -> &'a mut W < REG > { self . bit (bool :: from (variant)) } } } ; } bit_proxy ! (BitWriter , BitM) ; bit_proxy ! (BitWriter1S , Bit1S) ; bit_proxy ! (BitWriter0C , Bit0C) ; bit_proxy ! (BitWriter1C , Bit1C) ; bit_proxy ! (BitWriter0S , Bit0S) ; bit_proxy ! (BitWriter1T , Bit1T) ; bit_proxy ! (BitWriter0T , Bit0T) ; impl < 'a , REG , FI > BitWriter < 'a , REG , FI > where REG : Writable + RegisterSpec , bool : From < FI > , {
#[doc = " Sets the field bit"]
#[inline (always)] pub fn set_bit (self) -> & 'a mut W < REG > { self . w . bits |= REG :: Ux :: ONE << self . o ; self . w }
#[doc = " Clears the field bit"]
#[inline (always)] pub fn clear_bit (self) -> & 'a mut W < REG > { self . w . bits &= ! (REG :: Ux :: ONE << self . o) ; self . w } } impl < 'a , REG , FI > BitWriter1S < 'a , REG , FI > where REG : Writable + RegisterSpec , bool : From < FI > , {
#[doc = " Sets the field bit"]
#[inline (always)] pub fn set_bit (self) -> & 'a mut W < REG > { self . w . bits |= REG :: Ux :: ONE << self . o ; self . w } } impl < 'a , REG , FI > BitWriter0C < 'a , REG , FI > where REG : Writable + RegisterSpec , bool : From < FI > , {
#[doc = " Clears the field bit"]
#[inline (always)] pub fn clear_bit (self) -> & 'a mut W < REG > { self . w . bits &= ! (REG :: Ux :: ONE << self . o) ; self . w } } impl < 'a , REG , FI > BitWriter1C < 'a , REG , FI > where REG : Writable + RegisterSpec , bool : From < FI > , {
#[doc = "Clears the field bit by passing one"]
#[inline (always)] pub fn clear_bit_by_one (self) -> & 'a mut W < REG > { self . w . bits |= REG :: Ux :: ONE << self . o ; self . w } } impl < 'a , REG , FI > BitWriter0S < 'a , REG , FI > where REG : Writable + RegisterSpec , bool : From < FI > , {
#[doc = "Sets the field bit by passing zero"]
#[inline (always)] pub fn set_bit_by_zero (self) -> & 'a mut W < REG > { self . w . bits &= ! (REG :: Ux :: ONE << self . o) ; self . w } } impl < 'a , REG , FI > BitWriter1T < 'a , REG , FI > where REG : Writable + RegisterSpec , bool : From < FI > , {
#[doc = "Toggle the field bit by passing one"]
#[inline (always)] pub fn toggle_bit (self) -> & 'a mut W < REG > { self . w . bits |= REG :: Ux :: ONE << self . o ; self . w } } impl < 'a , REG , FI > BitWriter0T < 'a , REG , FI > where REG : Writable + RegisterSpec , bool : From < FI > , {
#[doc = "Toggle the field bit by passing zero"]
#[inline (always)] pub fn toggle_bit (self) -> & 'a mut W < REG > { self . w . bits &= ! (REG :: Ux :: ONE << self . o) ; self . w } }
#[doc = " This structure provides volatile access to registers."]
#[repr (transparent)] pub struct Reg < REG : RegisterSpec > { register : vcell :: VolatileCell < REG :: Ux > , _marker : marker :: PhantomData < REG > , } unsafe impl < REG : RegisterSpec > Send for Reg < REG > where REG :: Ux : Send { } impl < REG : RegisterSpec > Reg < REG > {
#[doc = " Returns the underlying memory address of register."]
#[doc = ""]
#[doc = " ```ignore"]
#[doc = " let reg_ptr = periph.reg.as_ptr();"]
#[doc = " ```"]
#[inline (always)] pub fn as_ptr (& self) -> * mut REG :: Ux { self . register . as_ptr () } } impl < REG : Readable > Reg < REG > {
#[doc = " Reads the contents of a `Readable` register."]
#[doc = ""]
#[doc = " You can read the raw contents of a register by using `bits`:"]
#[doc = " ```ignore"]
#[doc = " let bits = periph.reg.read().bits();"]
#[doc = " ```"]
#[doc = " or get the content of a particular field of a register:"]
#[doc = " ```ignore"]
#[doc = " let reader = periph.reg.read();"]
#[doc = " let bits = reader.field1().bits();"]
#[doc = " let flag = reader.field2().bit_is_set();"]
#[doc = " ```"]
#[inline (always)] pub fn read (& self) -> R < REG > { R { bits : self . register . get () , _reg : marker :: PhantomData , } } } impl < REG : Resettable + Writable > Reg < REG > {
#[doc = " Writes the reset value to `Writable` register."]
#[doc = ""]
#[doc = " Resets the register to its initial state."]
#[inline (always)] pub fn reset (& self) { self . register . set (REG :: RESET_VALUE) }
#[doc = " Writes bits to a `Writable` register."]
#[doc = ""]
#[doc = " You can write raw bits into a register:"]
#[doc = " ```ignore"]
#[doc = " periph.reg.write(|w| unsafe { w.bits(rawbits) });"]
#[doc = " ```"]
#[doc = " or write only the fields you need:"]
#[doc = " ```ignore"]
#[doc = " periph.reg.write(|w| w"]
#[doc = "     .field1().bits(newfield1bits)"]
#[doc = "     .field2().set_bit()"]
#[doc = "     .field3().variant(VARIANT)"]
#[doc = " );"]
#[doc = " ```"]
#[doc = " or an alternative way of saying the same:"]
#[doc = " ```ignore"]
#[doc = " periph.reg.write(|w| {"]
#[doc = "     w.field1().bits(newfield1bits);"]
#[doc = "     w.field2().set_bit();"]
#[doc = "     w.field3().variant(VARIANT)"]
#[doc = " });"]
#[doc = " ```"]
#[doc = " In the latter case, other fields will be set to their reset value."]
#[inline (always)] pub fn write < F > (& self , f : F) -> REG :: Ux where F : FnOnce (& mut W < REG >) -> & mut W < REG > , { let value = f (& mut W { bits : REG :: RESET_VALUE & ! REG :: ONE_TO_MODIFY_FIELDS_BITMAP | REG :: ZERO_TO_MODIFY_FIELDS_BITMAP , _reg : marker :: PhantomData , }) . bits ; self . register . set (value) ; value }
#[doc = " Writes bits to a `Writable` register and produce a value."]
#[doc = ""]
#[doc = " You can write raw bits into a register:"]
#[doc = " ```ignore"]
#[doc = " periph.reg.write_and(|w| unsafe { w.bits(rawbits); });"]
#[doc = " ```"]
#[doc = " or write only the fields you need:"]
#[doc = " ```ignore"]
#[doc = " periph.reg.write_and(|w| {"]
#[doc = "     w.field1().bits(newfield1bits)"]
#[doc = "         .field2().set_bit()"]
#[doc = "         .field3().variant(VARIANT);"]
#[doc = " });"]
#[doc = " ```"]
#[doc = " or an alternative way of saying the same:"]
#[doc = " ```ignore"]
#[doc = " periph.reg.write_and(|w| {"]
#[doc = "     w.field1().bits(newfield1bits);"]
#[doc = "     w.field2().set_bit();"]
#[doc = "     w.field3().variant(VARIANT);"]
#[doc = " });"]
#[doc = " ```"]
#[doc = " In the latter case, other fields will be set to their reset value."]
#[doc = ""]
#[doc = " Values can be returned from the closure:"]
#[doc = " ```ignore"]
#[doc = " let state = periph.reg.write_and(|w| State::set(w.field1()));"]
#[doc = " ```"]
#[inline (always)] pub fn from_write < F , T > (& self , f : F) -> T where F : FnOnce (& mut W < REG >) -> T , { let mut writer = W { bits : REG :: RESET_VALUE & ! REG :: ONE_TO_MODIFY_FIELDS_BITMAP | REG :: ZERO_TO_MODIFY_FIELDS_BITMAP , _reg : marker :: PhantomData , } ; let result = f (& mut writer) ; self . register . set (writer . bits) ; result } } impl < REG : Writable > Reg < REG > {
#[doc = " Writes 0 to a `Writable` register."]
#[doc = ""]
#[doc = " Similar to `write`, but unused bits will contain 0."]
#[doc = ""]
#[doc = " # Safety"]
#[doc = ""]
#[doc = " Unsafe to use with registers which don't allow to write 0."]
#[inline (always)] pub unsafe fn write_with_zero < F > (& self , f : F) -> REG :: Ux where F : FnOnce (& mut W < REG >) -> & mut W < REG > , { let value = f (& mut W { bits : REG :: Ux :: ZERO , _reg : marker :: PhantomData , }) . bits ; self . register . set (value) ; value }
#[doc = " Writes 0 to a `Writable` register and produces a value."]
#[doc = ""]
#[doc = " Similar to `write`, but unused bits will contain 0."]
#[doc = ""]
#[doc = " # Safety"]
#[doc = ""]
#[doc = " Unsafe to use with registers which don't allow to write 0."]
#[inline (always)] pub unsafe fn from_write_with_zero < F , T > (& self , f : F) -> T where F : FnOnce (& mut W < REG >) -> T , { let mut writer = W { bits : REG :: Ux :: ZERO , _reg : marker :: PhantomData , } ; let result = f (& mut writer) ; self . register . set (writer . bits) ; result } } impl < REG : Readable + Writable > Reg < REG > {
#[doc = " Modifies the contents of the register by reading and then writing it."]
#[doc = ""]
#[doc = " E.g. to do a read-modify-write sequence to change parts of a register:"]
#[doc = " ```ignore"]
#[doc = " periph.reg.modify(|r, w| unsafe { w.bits("]
#[doc = "    r.bits() | 3"]
#[doc = " ) });"]
#[doc = " ```"]
#[doc = " or"]
#[doc = " ```ignore"]
#[doc = " periph.reg.modify(|_, w| w"]
#[doc = "     .field1().bits(newfield1bits)"]
#[doc = "     .field2().set_bit()"]
#[doc = "     .field3().variant(VARIANT)"]
#[doc = " );"]
#[doc = " ```"]
#[doc = " or an alternative way of saying the same:"]
#[doc = " ```ignore"]
#[doc = " periph.reg.modify(|_, w| {"]
#[doc = "     w.field1().bits(newfield1bits);"]
#[doc = "     w.field2().set_bit();"]
#[doc = "     w.field3().variant(VARIANT)"]
#[doc = " });"]
#[doc = " ```"]
#[doc = " Other fields will have the value they had before the call to `modify`."]
#[inline (always)] pub fn modify < F > (& self , f : F) -> REG :: Ux where for < 'w > F : FnOnce (& R < REG > , & 'w mut W < REG >) -> & 'w mut W < REG > , { let bits = self . register . get () ; let value = f (& R { bits , _reg : marker :: PhantomData , } , & mut W { bits : bits & ! REG :: ONE_TO_MODIFY_FIELDS_BITMAP | REG :: ZERO_TO_MODIFY_FIELDS_BITMAP , _reg : marker :: PhantomData , } ,) . bits ; self . register . set (value) ; value }
#[doc = " Modifies the contents of the register by reading and then writing it"]
#[doc = " and produces a value."]
#[doc = ""]
#[doc = " E.g. to do a read-modify-write sequence to change parts of a register:"]
#[doc = " ```ignore"]
#[doc = " let bits = periph.reg.modify(|r, w| {"]
#[doc = "     let new_bits = r.bits() | 3;"]
#[doc = "     unsafe {"]
#[doc = "         w.bits(new_bits);"]
#[doc = "     }"]
#[doc = ""]
#[doc = "     new_bits"]
#[doc = " });"]
#[doc = " ```"]
#[doc = " or"]
#[doc = " ```ignore"]
#[doc = " periph.reg.modify(|_, w| {"]
#[doc = "     w.field1().bits(newfield1bits)"]
#[doc = "         .field2().set_bit()"]
#[doc = "         .field3().variant(VARIANT);"]
#[doc = " });"]
#[doc = " ```"]
#[doc = " or an alternative way of saying the same:"]
#[doc = " ```ignore"]
#[doc = " periph.reg.modify(|_, w| {"]
#[doc = "     w.field1().bits(newfield1bits);"]
#[doc = "     w.field2().set_bit();"]
#[doc = "     w.field3().variant(VARIANT);"]
#[doc = " });"]
#[doc = " ```"]
#[doc = " Other fields will have the value they had before the call to `modify`."]
#[inline (always)] pub fn from_modify < F , T > (& self , f : F) -> T where for < 'w > F : FnOnce (& R < REG > , & 'w mut W < REG >) -> T , { let bits = self . register . get () ; let mut writer = W { bits : bits & ! REG :: ONE_TO_MODIFY_FIELDS_BITMAP | REG :: ZERO_TO_MODIFY_FIELDS_BITMAP , _reg : marker :: PhantomData , } ; let result = f (& R { bits , _reg : marker :: PhantomData , } , & mut writer ,) ; self . register . set (writer . bits) ; result } } impl < REG : Readable > core :: fmt :: Debug for crate :: generic :: Reg < REG > where R < REG > : core :: fmt :: Debug , { fn fmt (& self , f : & mut core :: fmt :: Formatter < '_ >) -> core :: fmt :: Result { core :: fmt :: Debug :: fmt (& self . read () , f) } } }
#[cfg (feature = "rt")] extern "C" { fn WWDG () ; fn PVD () ; fn TAMPER () ; fn RTC () ; fn FLASH () ; fn RCC () ; fn EXTI0 () ; fn EXTI1 () ; fn EXTI2 () ; fn EXTI3 () ; fn EXTI4 () ; fn DMA1_Channel1 () ; fn DMA1_Channel2 () ; fn DMA1_Channel3 () ; fn DMA1_Channel4 () ; fn DMA1_Channel5 () ; fn DMA1_Channel6 () ; fn DMA1_Channel7 () ; fn ADC1_2 () ; fn USB_HP_CAN_TX () ; fn USB_LP_CAN_RX0 () ; fn CAN_RX1 () ; fn CAN_SCE () ; fn EXTI9_5 () ; fn TIM1_BRK () ; fn TIM1_UP () ; fn TIM1_TRG_COM () ; fn TIM1_CC () ; fn TIM2 () ; fn TIM3 () ; fn TIM4 () ; fn I2C1_EV () ; fn I2C1_ER () ; fn I2C2_EV () ; fn I2C2_ER () ; fn SPI1 () ; fn SPI2 () ; fn USART1 () ; fn USART2 () ; fn USART3 () ; fn EXTI15_10 () ; fn RTCAlarm () ; fn TIM8_BRK () ; fn TIM8_UP () ; fn TIM8_TRG_COM () ; fn TIM8_CC () ; fn ADC3 () ; fn FSMC () ; fn SDIO () ; fn TIM5 () ; fn SPI3 () ; fn UART4 () ; fn UART5 () ; fn TIM6 () ; fn TIM7 () ; fn DMA2_Channel1 () ; fn DMA2_Channel2 () ; fn DMA2_Channel3 () ; fn DMA2_Channel4_5 () ; }
#[doc (hidden)]
#[repr (C)] pub union Vector { _handler : unsafe extern "C" fn () , _reserved : u32 , }
#[cfg (feature = "rt")]
#[doc (hidden)]
#[link_section = ".vector_table.interrupts"]
#[no_mangle] pub static __INTERRUPTS : [Vector ; 60] = [Vector { _handler : WWDG } , Vector { _handler : PVD } , Vector { _handler : TAMPER } , Vector { _handler : RTC } , Vector { _handler : FLASH } , Vector { _handler : RCC } , Vector { _handler : EXTI0 } , Vector { _handler : EXTI1 } , Vector { _handler : EXTI2 } , Vector { _handler : EXTI3 } , Vector { _handler : EXTI4 } , Vector { _handler : DMA1_Channel1 } , Vector { _handler : DMA1_Channel2 } , Vector { _handler : DMA1_Channel3 } , Vector { _handler : DMA1_Channel4 } , Vector { _handler : DMA1_Channel5 } , Vector { _handler : DMA1_Channel6 } , Vector { _handler : DMA1_Channel7 } , Vector { _handler : ADC1_2 } , Vector { _handler : USB_HP_CAN_TX } , Vector { _handler : USB_LP_CAN_RX0 } , Vector { _handler : CAN_RX1 } , Vector { _handler : CAN_SCE } , Vector { _handler : EXTI9_5 } , Vector { _handler : TIM1_BRK } , Vector { _handler : TIM1_UP } , Vector { _handler : TIM1_TRG_COM } , Vector { _handler : TIM1_CC } , Vector { _handler : TIM2 } , Vector { _handler : TIM3 } , Vector { _handler : TIM4 } , Vector { _handler : I2C1_EV } , Vector { _handler : I2C1_ER } , Vector { _handler : I2C2_EV } , Vector { _handler : I2C2_ER } , Vector { _handler : SPI1 } , Vector { _handler : SPI2 } , Vector { _handler : USART1 } , Vector { _handler : USART2 } , Vector { _handler : USART3 } , Vector { _handler : EXTI15_10 } , Vector { _handler : RTCAlarm } , Vector { _reserved : 0 } , Vector { _handler : TIM8_BRK } , Vector { _handler : TIM8_UP } , Vector { _handler : TIM8_TRG_COM } , Vector { _handler : TIM8_CC } , Vector { _handler : ADC3 } , Vector { _handler : FSMC } , Vector { _handler : SDIO } , Vector { _handler : TIM5 } , Vector { _handler : SPI3 } , Vector { _handler : UART4 } , Vector { _handler : UART5 } , Vector { _handler : TIM6 } , Vector { _handler : TIM7 } , Vector { _handler : DMA2_Channel1 } , Vector { _handler : DMA2_Channel2 } , Vector { _handler : DMA2_Channel3 } , Vector { _handler : DMA2_Channel4_5 } ,] ;
#[doc = r"Enumeration of all the interrupts."]
#[derive (Copy , Clone , Debug , PartialEq , Eq)]
#[repr (u16)] pub enum Interrupt {
#[doc = "0 - Window Watchdog interrupt"] WWDG = 0 ,
#[doc = "1 - PVD through EXTI line detection interrupt"] PVD = 1 ,
#[doc = "2 - Tamper interrupt"] TAMPER = 2 ,
#[doc = "3 - RTC global interrupt"] RTC = 3 ,
#[doc = "4 - Flash global interrupt"] FLASH = 4 ,
#[doc = "5 - RCC global interrupt"] RCC = 5 ,
#[doc = "6 - EXTI Line0 interrupt"] EXTI0 = 6 ,
#[doc = "7 - EXTI Line1 interrupt"] EXTI1 = 7 ,
#[doc = "8 - EXTI Line2 interrupt"] EXTI2 = 8 ,
#[doc = "9 - EXTI Line3 interrupt"] EXTI3 = 9 ,
#[doc = "10 - EXTI Line4 interrupt"] EXTI4 = 10 ,
#[doc = "11 - DMA1 Channel1 global interrupt"] DMA1_Channel1 = 11 ,
#[doc = "12 - DMA1 Channel2 global interrupt"] DMA1_Channel2 = 12 ,
#[doc = "13 - DMA1 Channel3 global interrupt"] DMA1_Channel3 = 13 ,
#[doc = "14 - DMA1 Channel4 global interrupt"] DMA1_Channel4 = 14 ,
#[doc = "15 - DMA1 Channel5 global interrupt"] DMA1_Channel5 = 15 ,
#[doc = "16 - DMA1 Channel6 global interrupt"] DMA1_Channel6 = 16 ,
#[doc = "17 - DMA1 Channel7 global interrupt"] DMA1_Channel7 = 17 ,
#[doc = "18 - ADC1 and ADC2 global interrupt"] ADC1_2 = 18 ,
#[doc = "19 - USB High Priority or CAN TX interrupts"] USB_HP_CAN_TX = 19 ,
#[doc = "20 - USB Low Priority or CAN RX0 interrupts"] USB_LP_CAN_RX0 = 20 ,
#[doc = "21 - CAN RX1 interrupt"] CAN_RX1 = 21 ,
#[doc = "22 - CAN SCE interrupt"] CAN_SCE = 22 ,
#[doc = "23 - EXTI Line\\[9:5\\] interrupts"] EXTI9_5 = 23 ,
#[doc = "24 - TIM1 Break interrupt"] TIM1_BRK = 24 ,
#[doc = "25 - TIM1 Update interrupt"] TIM1_UP = 25 ,
#[doc = "26 - TIM1 Trigger and Commutation interrupts"] TIM1_TRG_COM = 26 ,
#[doc = "27 - TIM1 Capture Compare interrupt"] TIM1_CC = 27 ,
#[doc = "28 - TIM2 global interrupt"] TIM2 = 28 ,
#[doc = "29 - TIM3 global interrupt"] TIM3 = 29 ,
#[doc = "30 - TIM4 global interrupt"] TIM4 = 30 ,
#[doc = "31 - I2C1 event interrupt"] I2C1_EV = 31 ,
#[doc = "32 - I2C1 error interrupt"] I2C1_ER = 32 ,
#[doc = "33 - I2C2 event interrupt"] I2C2_EV = 33 ,
#[doc = "34 - I2C2 error interrupt"] I2C2_ER = 34 ,
#[doc = "35 - SPI1 global interrupt"] SPI1 = 35 ,
#[doc = "36 - SPI2 global interrupt"] SPI2 = 36 ,
#[doc = "37 - USART1 global interrupt"] USART1 = 37 ,
#[doc = "38 - USART2 global interrupt"] USART2 = 38 ,
#[doc = "39 - USART3 global interrupt"] USART3 = 39 ,
#[doc = "40 - EXTI Line\\[15:10\\] interrupts"] EXTI15_10 = 40 ,
#[doc = "41 - RTC Alarms through EXTI line interrupt"] RTCAlarm = 41 ,
#[doc = "43 - TIM8 Break interrupt"] TIM8_BRK = 43 ,
#[doc = "44 - TIM8 Update interrupt"] TIM8_UP = 44 ,
#[doc = "45 - TIM8 Trigger and Commutation interrupts"] TIM8_TRG_COM = 45 ,
#[doc = "46 - TIM8 Capture Compare interrupt"] TIM8_CC = 46 ,
#[doc = "47 - ADC3 global interrupt"] ADC3 = 47 ,
#[doc = "48 - FSMC global interrupt"] FSMC = 48 ,
#[doc = "49 - SDIO global interrupt"] SDIO = 49 ,
#[doc = "50 - TIM5 global interrupt"] TIM5 = 50 ,
#[doc = "51 - SPI3 global interrupt"] SPI3 = 51 ,
#[doc = "52 - UART4 global interrupt"] UART4 = 52 ,
#[doc = "53 - UART5 global interrupt"] UART5 = 53 ,
#[doc = "54 - TIM6 global interrupt"] TIM6 = 54 ,
#[doc = "55 - TIM7 global interrupt"] TIM7 = 55 ,
#[doc = "56 - DMA2 Channel1 global interrupt"] DMA2_Channel1 = 56 ,
#[doc = "57 - DMA2 Channel2 global interrupt"] DMA2_Channel2 = 57 ,
#[doc = "58 - DMA2 Channel3 global interrupt"] DMA2_Channel3 = 58 ,
#[doc = "59 - DMA2 Channel4 and DMA2 Channel5 global interrupt"] DMA2_Channel4_5 = 59 , } unsafe impl cortex_m :: interrupt :: InterruptNumber for Interrupt {
#[inline (always)] fn number (self) -> u16 { self as u16 } }
#[doc = "Flexible static memory controller"] pub type Fsmc = crate :: Periph < fsmc :: RegisterBlock , 0xa000_0000 > ; impl core :: fmt :: Debug for Fsmc { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Fsmc") . finish () } }
#[doc = "Flexible static memory controller"] pub mod fsmc {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { bcr1 : Bcr1 , btr1 : Btr1 , bcr2 : Bcr2 , btr2 : Btr2 , bcr3 : Bcr3 , btr3 : Btr3 , bcr4 : Bcr4 , btr4 : Btr4 , _reserved8 : [u8 ; 0x40] , pcr2 : Pcr2 , sr2 : Sr2 , pmem2 : Pmem2 , patt2 : Patt2 , _reserved12 : [u8 ; 0x04] , eccr2 : Eccr2 , _reserved13 : [u8 ; 0x08] , pcr3 : Pcr3 , sr3 : Sr3 , pmem3 : Pmem3 , patt3 : Patt3 , _reserved17 : [u8 ; 0x04] , eccr3 : Eccr3 , _reserved18 : [u8 ; 0x08] , pcr4 : Pcr4 , sr4 : Sr4 , pmem4 : Pmem4 , patt4 : Patt4 , pio4 : Pio4 , _reserved23 : [u8 ; 0x50] , bwtr1 : Bwtr1 , _reserved24 : [u8 ; 0x04] , bwtr2 : Bwtr2 , _reserved25 : [u8 ; 0x04] , bwtr3 : Bwtr3 , _reserved26 : [u8 ; 0x04] , bwtr4 : Bwtr4 , } impl RegisterBlock {
#[doc = "0x00 - SRAM/NOR-Flash chip-select control register 1"]
#[inline (always)] pub const fn bcr1 (& self) -> & Bcr1 { & self . bcr1 }
#[doc = "0x04 - SRAM/NOR-Flash chip-select timing register 1"]
#[inline (always)] pub const fn btr1 (& self) -> & Btr1 { & self . btr1 }
#[doc = "0x08 - SRAM/NOR-Flash chip-select control register 2"]
#[inline (always)] pub const fn bcr2 (& self) -> & Bcr2 { & self . bcr2 }
#[doc = "0x0c - SRAM/NOR-Flash chip-select timing register 2"]
#[inline (always)] pub const fn btr2 (& self) -> & Btr2 { & self . btr2 }
#[doc = "0x10 - SRAM/NOR-Flash chip-select control register 3"]
#[inline (always)] pub const fn bcr3 (& self) -> & Bcr3 { & self . bcr3 }
#[doc = "0x14 - SRAM/NOR-Flash chip-select timing register 3"]
#[inline (always)] pub const fn btr3 (& self) -> & Btr3 { & self . btr3 }
#[doc = "0x18 - SRAM/NOR-Flash chip-select control register 4"]
#[inline (always)] pub const fn bcr4 (& self) -> & Bcr4 { & self . bcr4 }
#[doc = "0x1c - SRAM/NOR-Flash chip-select timing register 4"]
#[inline (always)] pub const fn btr4 (& self) -> & Btr4 { & self . btr4 }
#[doc = "0x60 - PC Card/NAND Flash control register 2"]
#[inline (always)] pub const fn pcr2 (& self) -> & Pcr2 { & self . pcr2 }
#[doc = "0x64 - FIFO status and interrupt register 2"]
#[inline (always)] pub const fn sr2 (& self) -> & Sr2 { & self . sr2 }
#[doc = "0x68 - Common memory space timing register 2"]
#[inline (always)] pub const fn pmem2 (& self) -> & Pmem2 { & self . pmem2 }
#[doc = "0x6c - Attribute memory space timing register 2"]
#[inline (always)] pub const fn patt2 (& self) -> & Patt2 { & self . patt2 }
#[doc = "0x74 - ECC result register 2"]
#[inline (always)] pub const fn eccr2 (& self) -> & Eccr2 { & self . eccr2 }
#[doc = "0x80 - PC Card/NAND Flash control register 3"]
#[inline (always)] pub const fn pcr3 (& self) -> & Pcr3 { & self . pcr3 }
#[doc = "0x84 - FIFO status and interrupt register 3"]
#[inline (always)] pub const fn sr3 (& self) -> & Sr3 { & self . sr3 }
#[doc = "0x88 - Common memory space timing register 3"]
#[inline (always)] pub const fn pmem3 (& self) -> & Pmem3 { & self . pmem3 }
#[doc = "0x8c - Attribute memory space timing register 3"]
#[inline (always)] pub const fn patt3 (& self) -> & Patt3 { & self . patt3 }
#[doc = "0x94 - ECC result register 3"]
#[inline (always)] pub const fn eccr3 (& self) -> & Eccr3 { & self . eccr3 }
#[doc = "0xa0 - PC Card/NAND Flash control register 4"]
#[inline (always)] pub const fn pcr4 (& self) -> & Pcr4 { & self . pcr4 }
#[doc = "0xa4 - FIFO status and interrupt register 4"]
#[inline (always)] pub const fn sr4 (& self) -> & Sr4 { & self . sr4 }
#[doc = "0xa8 - Common memory space timing register 4"]
#[inline (always)] pub const fn pmem4 (& self) -> & Pmem4 { & self . pmem4 }
#[doc = "0xac - Attribute memory space timing register 4"]
#[inline (always)] pub const fn patt4 (& self) -> & Patt4 { & self . patt4 }
#[doc = "0xb0 - I/O space timing register 4"]
#[inline (always)] pub const fn pio4 (& self) -> & Pio4 { & self . pio4 }
#[doc = "0x104 - SRAM/NOR-Flash write timing registers 1"]
#[inline (always)] pub const fn bwtr1 (& self) -> & Bwtr1 { & self . bwtr1 }
#[doc = "0x10c - SRAM/NOR-Flash write timing registers 2"]
#[inline (always)] pub const fn bwtr2 (& self) -> & Bwtr2 { & self . bwtr2 }
#[doc = "0x114 - SRAM/NOR-Flash write timing registers 3"]
#[inline (always)] pub const fn bwtr3 (& self) -> & Bwtr3 { & self . bwtr3 }
#[doc = "0x11c - SRAM/NOR-Flash write timing registers 4"]
#[inline (always)] pub const fn bwtr4 (& self) -> & Bwtr4 { & self . bwtr4 } }
#[doc = "BCR1 (rw) register accessor: SRAM/NOR-Flash chip-select control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`bcr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bcr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bcr1`] module"]
#[doc (alias = "BCR1")] pub type Bcr1 = crate :: Reg < bcr1 :: Bcr1Spec > ;
#[doc = "SRAM/NOR-Flash chip-select control register 1"] pub mod bcr1 {
#[doc = "Register `BCR1` reader"] pub type R = crate :: R < Bcr1Spec > ;
#[doc = "Register `BCR1` writer"] pub type W = crate :: W < Bcr1Spec > ;
#[doc = "Field `MBKEN` reader - MBKEN"] pub type MbkenR = crate :: BitReader ;
#[doc = "Field `MBKEN` writer - MBKEN"] pub type MbkenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MUXEN` reader - MUXEN"] pub type MuxenR = crate :: BitReader ;
#[doc = "Field `MUXEN` writer - MUXEN"] pub type MuxenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MTYP` reader - MTYP"] pub type MtypR = crate :: FieldReader ;
#[doc = "Field `MTYP` writer - MTYP"] pub type MtypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MWID` reader - MWID"] pub type MwidR = crate :: FieldReader ;
#[doc = "Field `MWID` writer - MWID"] pub type MwidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `FACCEN` reader - FACCEN"] pub type FaccenR = crate :: BitReader ;
#[doc = "Field `FACCEN` writer - FACCEN"] pub type FaccenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BURSTEN` reader - BURSTEN"] pub type BurstenR = crate :: BitReader ;
#[doc = "Field `BURSTEN` writer - BURSTEN"] pub type BurstenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAITPOL` reader - WAITPOL"] pub type WaitpolR = crate :: BitReader ;
#[doc = "Field `WAITPOL` writer - WAITPOL"] pub type WaitpolW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAITCFG` reader - WAITCFG"] pub type WaitcfgR = crate :: BitReader ;
#[doc = "Field `WAITCFG` writer - WAITCFG"] pub type WaitcfgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WREN` reader - WREN"] pub type WrenR = crate :: BitReader ;
#[doc = "Field `WREN` writer - WREN"] pub type WrenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAITEN` reader - WAITEN"] pub type WaitenR = crate :: BitReader ;
#[doc = "Field `WAITEN` writer - WAITEN"] pub type WaitenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EXTMOD` reader - EXTMOD"] pub type ExtmodR = crate :: BitReader ;
#[doc = "Field `EXTMOD` writer - EXTMOD"] pub type ExtmodW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ASYNCWAIT` reader - ASYNCWAIT"] pub type AsyncwaitR = crate :: BitReader ;
#[doc = "Field `ASYNCWAIT` writer - ASYNCWAIT"] pub type AsyncwaitW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CBURSTRW` reader - CBURSTRW"] pub type CburstrwR = crate :: BitReader ;
#[doc = "Field `CBURSTRW` writer - CBURSTRW"] pub type CburstrwW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - MBKEN"]
#[inline (always)] pub fn mbken (& self) -> MbkenR { MbkenR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - MUXEN"]
#[inline (always)] pub fn muxen (& self) -> MuxenR { MuxenR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bits 2:3 - MTYP"]
#[inline (always)] pub fn mtyp (& self) -> MtypR { MtypR :: new (((self . bits >> 2) & 3) as u8) }
#[doc = "Bits 4:5 - MWID"]
#[inline (always)] pub fn mwid (& self) -> MwidR { MwidR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - FACCEN"]
#[inline (always)] pub fn faccen (& self) -> FaccenR { FaccenR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 8 - BURSTEN"]
#[inline (always)] pub fn bursten (& self) -> BurstenR { BurstenR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - WAITPOL"]
#[inline (always)] pub fn waitpol (& self) -> WaitpolR { WaitpolR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 11 - WAITCFG"]
#[inline (always)] pub fn waitcfg (& self) -> WaitcfgR { WaitcfgR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - WREN"]
#[inline (always)] pub fn wren (& self) -> WrenR { WrenR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - WAITEN"]
#[inline (always)] pub fn waiten (& self) -> WaitenR { WaitenR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - EXTMOD"]
#[inline (always)] pub fn extmod (& self) -> ExtmodR { ExtmodR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - ASYNCWAIT"]
#[inline (always)] pub fn asyncwait (& self) -> AsyncwaitR { AsyncwaitR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 19 - CBURSTRW"]
#[inline (always)] pub fn cburstrw (& self) -> CburstrwR { CburstrwR :: new (((self . bits >> 19) & 1) != 0) } } impl W {
#[doc = "Bit 0 - MBKEN"]
#[inline (always)] pub fn mbken (& mut self) -> MbkenW < '_ , Bcr1Spec > { MbkenW :: new (self , 0) }
#[doc = "Bit 1 - MUXEN"]
#[inline (always)] pub fn muxen (& mut self) -> MuxenW < '_ , Bcr1Spec > { MuxenW :: new (self , 1) }
#[doc = "Bits 2:3 - MTYP"]
#[inline (always)] pub fn mtyp (& mut self) -> MtypW < '_ , Bcr1Spec > { MtypW :: new (self , 2) }
#[doc = "Bits 4:5 - MWID"]
#[inline (always)] pub fn mwid (& mut self) -> MwidW < '_ , Bcr1Spec > { MwidW :: new (self , 4) }
#[doc = "Bit 6 - FACCEN"]
#[inline (always)] pub fn faccen (& mut self) -> FaccenW < '_ , Bcr1Spec > { FaccenW :: new (self , 6) }
#[doc = "Bit 8 - BURSTEN"]
#[inline (always)] pub fn bursten (& mut self) -> BurstenW < '_ , Bcr1Spec > { BurstenW :: new (self , 8) }
#[doc = "Bit 9 - WAITPOL"]
#[inline (always)] pub fn waitpol (& mut self) -> WaitpolW < '_ , Bcr1Spec > { WaitpolW :: new (self , 9) }
#[doc = "Bit 11 - WAITCFG"]
#[inline (always)] pub fn waitcfg (& mut self) -> WaitcfgW < '_ , Bcr1Spec > { WaitcfgW :: new (self , 11) }
#[doc = "Bit 12 - WREN"]
#[inline (always)] pub fn wren (& mut self) -> WrenW < '_ , Bcr1Spec > { WrenW :: new (self , 12) }
#[doc = "Bit 13 - WAITEN"]
#[inline (always)] pub fn waiten (& mut self) -> WaitenW < '_ , Bcr1Spec > { WaitenW :: new (self , 13) }
#[doc = "Bit 14 - EXTMOD"]
#[inline (always)] pub fn extmod (& mut self) -> ExtmodW < '_ , Bcr1Spec > { ExtmodW :: new (self , 14) }
#[doc = "Bit 15 - ASYNCWAIT"]
#[inline (always)] pub fn asyncwait (& mut self) -> AsyncwaitW < '_ , Bcr1Spec > { AsyncwaitW :: new (self , 15) }
#[doc = "Bit 19 - CBURSTRW"]
#[inline (always)] pub fn cburstrw (& mut self) -> CburstrwW < '_ , Bcr1Spec > { CburstrwW :: new (self , 19) } }
#[doc = "SRAM/NOR-Flash chip-select control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`bcr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bcr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Bcr1Spec ; impl crate :: RegisterSpec for Bcr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`bcr1::R`](R) reader structure"] impl crate :: Readable for Bcr1Spec { }
#[doc = "`write(|w| ..)` method takes [`bcr1::W`](W) writer structure"] impl crate :: Writable for Bcr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BCR1 to value 0x30d0"] impl crate :: Resettable for Bcr1Spec { const RESET_VALUE : u32 = 0x30d0 ; } }
#[doc = "BTR1 (rw) register accessor: SRAM/NOR-Flash chip-select timing register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`btr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`btr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@btr1`] module"]
#[doc (alias = "BTR1")] pub type Btr1 = crate :: Reg < btr1 :: Btr1Spec > ;
#[doc = "SRAM/NOR-Flash chip-select timing register 1"] pub mod btr1 {
#[doc = "Register `BTR1` reader"] pub type R = crate :: R < Btr1Spec > ;
#[doc = "Register `BTR1` writer"] pub type W = crate :: W < Btr1Spec > ;
#[doc = "Field `ADDSET` reader - ADDSET"] pub type AddsetR = crate :: FieldReader ;
#[doc = "Field `ADDSET` writer - ADDSET"] pub type AddsetW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ADDHLD` reader - ADDHLD"] pub type AddhldR = crate :: FieldReader ;
#[doc = "Field `ADDHLD` writer - ADDHLD"] pub type AddhldW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATAST` reader - DATAST"] pub type DatastR = crate :: FieldReader ;
#[doc = "Field `DATAST` writer - DATAST"] pub type DatastW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `BUSTURN` reader - BUSTURN"] pub type BusturnR = crate :: FieldReader ;
#[doc = "Field `BUSTURN` writer - BUSTURN"] pub type BusturnW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `CLKDIV` reader - CLKDIV"] pub type ClkdivR = crate :: FieldReader ;
#[doc = "Field `CLKDIV` writer - CLKDIV"] pub type ClkdivW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATLAT` reader - DATLAT"] pub type DatlatR = crate :: FieldReader ;
#[doc = "Field `DATLAT` writer - DATLAT"] pub type DatlatW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ACCMOD` reader - ACCMOD"] pub type AccmodR = crate :: FieldReader ;
#[doc = "Field `ACCMOD` writer - ACCMOD"] pub type AccmodW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& self) -> AddsetR { AddsetR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& self) -> AddhldR { AddhldR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& self) -> DatastR { DatastR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:19 - BUSTURN"]
#[inline (always)] pub fn busturn (& self) -> BusturnR { BusturnR :: new (((self . bits >> 16) & 0x0f) as u8) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& self) -> ClkdivR { ClkdivR :: new (((self . bits >> 20) & 0x0f) as u8) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& self) -> DatlatR { DatlatR :: new (((self . bits >> 24) & 0x0f) as u8) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& self) -> AccmodR { AccmodR :: new (((self . bits >> 28) & 3) as u8) } } impl W {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& mut self) -> AddsetW < '_ , Btr1Spec > { AddsetW :: new (self , 0) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& mut self) -> AddhldW < '_ , Btr1Spec > { AddhldW :: new (self , 4) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& mut self) -> DatastW < '_ , Btr1Spec > { DatastW :: new (self , 8) }
#[doc = "Bits 16:19 - BUSTURN"]
#[inline (always)] pub fn busturn (& mut self) -> BusturnW < '_ , Btr1Spec > { BusturnW :: new (self , 16) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& mut self) -> ClkdivW < '_ , Btr1Spec > { ClkdivW :: new (self , 20) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& mut self) -> DatlatW < '_ , Btr1Spec > { DatlatW :: new (self , 24) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& mut self) -> AccmodW < '_ , Btr1Spec > { AccmodW :: new (self , 28) } }
#[doc = "SRAM/NOR-Flash chip-select timing register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`btr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`btr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Btr1Spec ; impl crate :: RegisterSpec for Btr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`btr1::R`](R) reader structure"] impl crate :: Readable for Btr1Spec { }
#[doc = "`write(|w| ..)` method takes [`btr1::W`](W) writer structure"] impl crate :: Writable for Btr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BTR1 to value 0xffff_ffff"] impl crate :: Resettable for Btr1Spec { const RESET_VALUE : u32 = 0xffff_ffff ; } }
#[doc = "BCR2 (rw) register accessor: SRAM/NOR-Flash chip-select control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`bcr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bcr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bcr2`] module"]
#[doc (alias = "BCR2")] pub type Bcr2 = crate :: Reg < bcr2 :: Bcr2Spec > ;
#[doc = "SRAM/NOR-Flash chip-select control register 2"] pub mod bcr2 {
#[doc = "Register `BCR2` reader"] pub type R = crate :: R < Bcr2Spec > ;
#[doc = "Register `BCR2` writer"] pub type W = crate :: W < Bcr2Spec > ;
#[doc = "Field `MBKEN` reader - MBKEN"] pub type MbkenR = crate :: BitReader ;
#[doc = "Field `MBKEN` writer - MBKEN"] pub type MbkenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MUXEN` reader - MUXEN"] pub type MuxenR = crate :: BitReader ;
#[doc = "Field `MUXEN` writer - MUXEN"] pub type MuxenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MTYP` reader - MTYP"] pub type MtypR = crate :: FieldReader ;
#[doc = "Field `MTYP` writer - MTYP"] pub type MtypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MWID` reader - MWID"] pub type MwidR = crate :: FieldReader ;
#[doc = "Field `MWID` writer - MWID"] pub type MwidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `FACCEN` reader - FACCEN"] pub type FaccenR = crate :: BitReader ;
#[doc = "Field `FACCEN` writer - FACCEN"] pub type FaccenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BURSTEN` reader - BURSTEN"] pub type BurstenR = crate :: BitReader ;
#[doc = "Field `BURSTEN` writer - BURSTEN"] pub type BurstenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAITPOL` reader - WAITPOL"] pub type WaitpolR = crate :: BitReader ;
#[doc = "Field `WAITPOL` writer - WAITPOL"] pub type WaitpolW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WRAPMOD` reader - WRAPMOD"] pub type WrapmodR = crate :: BitReader ;
#[doc = "Field `WRAPMOD` writer - WRAPMOD"] pub type WrapmodW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAITCFG` reader - WAITCFG"] pub type WaitcfgR = crate :: BitReader ;
#[doc = "Field `WAITCFG` writer - WAITCFG"] pub type WaitcfgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WREN` reader - WREN"] pub type WrenR = crate :: BitReader ;
#[doc = "Field `WREN` writer - WREN"] pub type WrenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAITEN` reader - WAITEN"] pub type WaitenR = crate :: BitReader ;
#[doc = "Field `WAITEN` writer - WAITEN"] pub type WaitenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EXTMOD` reader - EXTMOD"] pub type ExtmodR = crate :: BitReader ;
#[doc = "Field `EXTMOD` writer - EXTMOD"] pub type ExtmodW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ASYNCWAIT` reader - ASYNCWAIT"] pub type AsyncwaitR = crate :: BitReader ;
#[doc = "Field `ASYNCWAIT` writer - ASYNCWAIT"] pub type AsyncwaitW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CBURSTRW` reader - CBURSTRW"] pub type CburstrwR = crate :: BitReader ;
#[doc = "Field `CBURSTRW` writer - CBURSTRW"] pub type CburstrwW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - MBKEN"]
#[inline (always)] pub fn mbken (& self) -> MbkenR { MbkenR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - MUXEN"]
#[inline (always)] pub fn muxen (& self) -> MuxenR { MuxenR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bits 2:3 - MTYP"]
#[inline (always)] pub fn mtyp (& self) -> MtypR { MtypR :: new (((self . bits >> 2) & 3) as u8) }
#[doc = "Bits 4:5 - MWID"]
#[inline (always)] pub fn mwid (& self) -> MwidR { MwidR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - FACCEN"]
#[inline (always)] pub fn faccen (& self) -> FaccenR { FaccenR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 8 - BURSTEN"]
#[inline (always)] pub fn bursten (& self) -> BurstenR { BurstenR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - WAITPOL"]
#[inline (always)] pub fn waitpol (& self) -> WaitpolR { WaitpolR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - WRAPMOD"]
#[inline (always)] pub fn wrapmod (& self) -> WrapmodR { WrapmodR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - WAITCFG"]
#[inline (always)] pub fn waitcfg (& self) -> WaitcfgR { WaitcfgR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - WREN"]
#[inline (always)] pub fn wren (& self) -> WrenR { WrenR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - WAITEN"]
#[inline (always)] pub fn waiten (& self) -> WaitenR { WaitenR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - EXTMOD"]
#[inline (always)] pub fn extmod (& self) -> ExtmodR { ExtmodR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - ASYNCWAIT"]
#[inline (always)] pub fn asyncwait (& self) -> AsyncwaitR { AsyncwaitR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 19 - CBURSTRW"]
#[inline (always)] pub fn cburstrw (& self) -> CburstrwR { CburstrwR :: new (((self . bits >> 19) & 1) != 0) } } impl W {
#[doc = "Bit 0 - MBKEN"]
#[inline (always)] pub fn mbken (& mut self) -> MbkenW < '_ , Bcr2Spec > { MbkenW :: new (self , 0) }
#[doc = "Bit 1 - MUXEN"]
#[inline (always)] pub fn muxen (& mut self) -> MuxenW < '_ , Bcr2Spec > { MuxenW :: new (self , 1) }
#[doc = "Bits 2:3 - MTYP"]
#[inline (always)] pub fn mtyp (& mut self) -> MtypW < '_ , Bcr2Spec > { MtypW :: new (self , 2) }
#[doc = "Bits 4:5 - MWID"]
#[inline (always)] pub fn mwid (& mut self) -> MwidW < '_ , Bcr2Spec > { MwidW :: new (self , 4) }
#[doc = "Bit 6 - FACCEN"]
#[inline (always)] pub fn faccen (& mut self) -> FaccenW < '_ , Bcr2Spec > { FaccenW :: new (self , 6) }
#[doc = "Bit 8 - BURSTEN"]
#[inline (always)] pub fn bursten (& mut self) -> BurstenW < '_ , Bcr2Spec > { BurstenW :: new (self , 8) }
#[doc = "Bit 9 - WAITPOL"]
#[inline (always)] pub fn waitpol (& mut self) -> WaitpolW < '_ , Bcr2Spec > { WaitpolW :: new (self , 9) }
#[doc = "Bit 10 - WRAPMOD"]
#[inline (always)] pub fn wrapmod (& mut self) -> WrapmodW < '_ , Bcr2Spec > { WrapmodW :: new (self , 10) }
#[doc = "Bit 11 - WAITCFG"]
#[inline (always)] pub fn waitcfg (& mut self) -> WaitcfgW < '_ , Bcr2Spec > { WaitcfgW :: new (self , 11) }
#[doc = "Bit 12 - WREN"]
#[inline (always)] pub fn wren (& mut self) -> WrenW < '_ , Bcr2Spec > { WrenW :: new (self , 12) }
#[doc = "Bit 13 - WAITEN"]
#[inline (always)] pub fn waiten (& mut self) -> WaitenW < '_ , Bcr2Spec > { WaitenW :: new (self , 13) }
#[doc = "Bit 14 - EXTMOD"]
#[inline (always)] pub fn extmod (& mut self) -> ExtmodW < '_ , Bcr2Spec > { ExtmodW :: new (self , 14) }
#[doc = "Bit 15 - ASYNCWAIT"]
#[inline (always)] pub fn asyncwait (& mut self) -> AsyncwaitW < '_ , Bcr2Spec > { AsyncwaitW :: new (self , 15) }
#[doc = "Bit 19 - CBURSTRW"]
#[inline (always)] pub fn cburstrw (& mut self) -> CburstrwW < '_ , Bcr2Spec > { CburstrwW :: new (self , 19) } }
#[doc = "SRAM/NOR-Flash chip-select control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`bcr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bcr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Bcr2Spec ; impl crate :: RegisterSpec for Bcr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`bcr2::R`](R) reader structure"] impl crate :: Readable for Bcr2Spec { }
#[doc = "`write(|w| ..)` method takes [`bcr2::W`](W) writer structure"] impl crate :: Writable for Bcr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BCR2 to value 0x30d0"] impl crate :: Resettable for Bcr2Spec { const RESET_VALUE : u32 = 0x30d0 ; } }
#[doc = "BTR2 (rw) register accessor: SRAM/NOR-Flash chip-select timing register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`btr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`btr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@btr2`] module"]
#[doc (alias = "BTR2")] pub type Btr2 = crate :: Reg < btr2 :: Btr2Spec > ;
#[doc = "SRAM/NOR-Flash chip-select timing register 2"] pub mod btr2 {
#[doc = "Register `BTR2` reader"] pub type R = crate :: R < Btr2Spec > ;
#[doc = "Register `BTR2` writer"] pub type W = crate :: W < Btr2Spec > ;
#[doc = "Field `ADDSET` reader - ADDSET"] pub type AddsetR = crate :: FieldReader ;
#[doc = "Field `ADDSET` writer - ADDSET"] pub type AddsetW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ADDHLD` reader - ADDHLD"] pub type AddhldR = crate :: FieldReader ;
#[doc = "Field `ADDHLD` writer - ADDHLD"] pub type AddhldW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATAST` reader - DATAST"] pub type DatastR = crate :: FieldReader ;
#[doc = "Field `DATAST` writer - DATAST"] pub type DatastW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `BUSTURN` reader - BUSTURN"] pub type BusturnR = crate :: FieldReader ;
#[doc = "Field `BUSTURN` writer - BUSTURN"] pub type BusturnW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `CLKDIV` reader - CLKDIV"] pub type ClkdivR = crate :: FieldReader ;
#[doc = "Field `CLKDIV` writer - CLKDIV"] pub type ClkdivW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATLAT` reader - DATLAT"] pub type DatlatR = crate :: FieldReader ;
#[doc = "Field `DATLAT` writer - DATLAT"] pub type DatlatW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ACCMOD` reader - ACCMOD"] pub type AccmodR = crate :: FieldReader ;
#[doc = "Field `ACCMOD` writer - ACCMOD"] pub type AccmodW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& self) -> AddsetR { AddsetR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& self) -> AddhldR { AddhldR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& self) -> DatastR { DatastR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:19 - BUSTURN"]
#[inline (always)] pub fn busturn (& self) -> BusturnR { BusturnR :: new (((self . bits >> 16) & 0x0f) as u8) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& self) -> ClkdivR { ClkdivR :: new (((self . bits >> 20) & 0x0f) as u8) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& self) -> DatlatR { DatlatR :: new (((self . bits >> 24) & 0x0f) as u8) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& self) -> AccmodR { AccmodR :: new (((self . bits >> 28) & 3) as u8) } } impl W {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& mut self) -> AddsetW < '_ , Btr2Spec > { AddsetW :: new (self , 0) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& mut self) -> AddhldW < '_ , Btr2Spec > { AddhldW :: new (self , 4) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& mut self) -> DatastW < '_ , Btr2Spec > { DatastW :: new (self , 8) }
#[doc = "Bits 16:19 - BUSTURN"]
#[inline (always)] pub fn busturn (& mut self) -> BusturnW < '_ , Btr2Spec > { BusturnW :: new (self , 16) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& mut self) -> ClkdivW < '_ , Btr2Spec > { ClkdivW :: new (self , 20) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& mut self) -> DatlatW < '_ , Btr2Spec > { DatlatW :: new (self , 24) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& mut self) -> AccmodW < '_ , Btr2Spec > { AccmodW :: new (self , 28) } }
#[doc = "SRAM/NOR-Flash chip-select timing register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`btr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`btr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Btr2Spec ; impl crate :: RegisterSpec for Btr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`btr2::R`](R) reader structure"] impl crate :: Readable for Btr2Spec { }
#[doc = "`write(|w| ..)` method takes [`btr2::W`](W) writer structure"] impl crate :: Writable for Btr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BTR2 to value 0xffff_ffff"] impl crate :: Resettable for Btr2Spec { const RESET_VALUE : u32 = 0xffff_ffff ; } }
#[doc = "BCR3 (rw) register accessor: SRAM/NOR-Flash chip-select control register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`bcr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bcr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bcr3`] module"]
#[doc (alias = "BCR3")] pub type Bcr3 = crate :: Reg < bcr3 :: Bcr3Spec > ;
#[doc = "SRAM/NOR-Flash chip-select control register 3"] pub mod bcr3 {
#[doc = "Register `BCR3` reader"] pub type R = crate :: R < Bcr3Spec > ;
#[doc = "Register `BCR3` writer"] pub type W = crate :: W < Bcr3Spec > ;
#[doc = "Field `MBKEN` reader - MBKEN"] pub type MbkenR = crate :: BitReader ;
#[doc = "Field `MBKEN` writer - MBKEN"] pub type MbkenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MUXEN` reader - MUXEN"] pub type MuxenR = crate :: BitReader ;
#[doc = "Field `MUXEN` writer - MUXEN"] pub type MuxenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MTYP` reader - MTYP"] pub type MtypR = crate :: FieldReader ;
#[doc = "Field `MTYP` writer - MTYP"] pub type MtypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MWID` reader - MWID"] pub type MwidR = crate :: FieldReader ;
#[doc = "Field `MWID` writer - MWID"] pub type MwidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `FACCEN` reader - FACCEN"] pub type FaccenR = crate :: BitReader ;
#[doc = "Field `FACCEN` writer - FACCEN"] pub type FaccenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BURSTEN` reader - BURSTEN"] pub type BurstenR = crate :: BitReader ;
#[doc = "Field `BURSTEN` writer - BURSTEN"] pub type BurstenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAITPOL` reader - WAITPOL"] pub type WaitpolR = crate :: BitReader ;
#[doc = "Field `WAITPOL` writer - WAITPOL"] pub type WaitpolW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WRAPMOD` reader - WRAPMOD"] pub type WrapmodR = crate :: BitReader ;
#[doc = "Field `WRAPMOD` writer - WRAPMOD"] pub type WrapmodW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAITCFG` reader - WAITCFG"] pub type WaitcfgR = crate :: BitReader ;
#[doc = "Field `WAITCFG` writer - WAITCFG"] pub type WaitcfgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WREN` reader - WREN"] pub type WrenR = crate :: BitReader ;
#[doc = "Field `WREN` writer - WREN"] pub type WrenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAITEN` reader - WAITEN"] pub type WaitenR = crate :: BitReader ;
#[doc = "Field `WAITEN` writer - WAITEN"] pub type WaitenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EXTMOD` reader - EXTMOD"] pub type ExtmodR = crate :: BitReader ;
#[doc = "Field `EXTMOD` writer - EXTMOD"] pub type ExtmodW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ASYNCWAIT` reader - ASYNCWAIT"] pub type AsyncwaitR = crate :: BitReader ;
#[doc = "Field `ASYNCWAIT` writer - ASYNCWAIT"] pub type AsyncwaitW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CBURSTRW` reader - CBURSTRW"] pub type CburstrwR = crate :: BitReader ;
#[doc = "Field `CBURSTRW` writer - CBURSTRW"] pub type CburstrwW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - MBKEN"]
#[inline (always)] pub fn mbken (& self) -> MbkenR { MbkenR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - MUXEN"]
#[inline (always)] pub fn muxen (& self) -> MuxenR { MuxenR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bits 2:3 - MTYP"]
#[inline (always)] pub fn mtyp (& self) -> MtypR { MtypR :: new (((self . bits >> 2) & 3) as u8) }
#[doc = "Bits 4:5 - MWID"]
#[inline (always)] pub fn mwid (& self) -> MwidR { MwidR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - FACCEN"]
#[inline (always)] pub fn faccen (& self) -> FaccenR { FaccenR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 8 - BURSTEN"]
#[inline (always)] pub fn bursten (& self) -> BurstenR { BurstenR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - WAITPOL"]
#[inline (always)] pub fn waitpol (& self) -> WaitpolR { WaitpolR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - WRAPMOD"]
#[inline (always)] pub fn wrapmod (& self) -> WrapmodR { WrapmodR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - WAITCFG"]
#[inline (always)] pub fn waitcfg (& self) -> WaitcfgR { WaitcfgR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - WREN"]
#[inline (always)] pub fn wren (& self) -> WrenR { WrenR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - WAITEN"]
#[inline (always)] pub fn waiten (& self) -> WaitenR { WaitenR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - EXTMOD"]
#[inline (always)] pub fn extmod (& self) -> ExtmodR { ExtmodR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - ASYNCWAIT"]
#[inline (always)] pub fn asyncwait (& self) -> AsyncwaitR { AsyncwaitR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 19 - CBURSTRW"]
#[inline (always)] pub fn cburstrw (& self) -> CburstrwR { CburstrwR :: new (((self . bits >> 19) & 1) != 0) } } impl W {
#[doc = "Bit 0 - MBKEN"]
#[inline (always)] pub fn mbken (& mut self) -> MbkenW < '_ , Bcr3Spec > { MbkenW :: new (self , 0) }
#[doc = "Bit 1 - MUXEN"]
#[inline (always)] pub fn muxen (& mut self) -> MuxenW < '_ , Bcr3Spec > { MuxenW :: new (self , 1) }
#[doc = "Bits 2:3 - MTYP"]
#[inline (always)] pub fn mtyp (& mut self) -> MtypW < '_ , Bcr3Spec > { MtypW :: new (self , 2) }
#[doc = "Bits 4:5 - MWID"]
#[inline (always)] pub fn mwid (& mut self) -> MwidW < '_ , Bcr3Spec > { MwidW :: new (self , 4) }
#[doc = "Bit 6 - FACCEN"]
#[inline (always)] pub fn faccen (& mut self) -> FaccenW < '_ , Bcr3Spec > { FaccenW :: new (self , 6) }
#[doc = "Bit 8 - BURSTEN"]
#[inline (always)] pub fn bursten (& mut self) -> BurstenW < '_ , Bcr3Spec > { BurstenW :: new (self , 8) }
#[doc = "Bit 9 - WAITPOL"]
#[inline (always)] pub fn waitpol (& mut self) -> WaitpolW < '_ , Bcr3Spec > { WaitpolW :: new (self , 9) }
#[doc = "Bit 10 - WRAPMOD"]
#[inline (always)] pub fn wrapmod (& mut self) -> WrapmodW < '_ , Bcr3Spec > { WrapmodW :: new (self , 10) }
#[doc = "Bit 11 - WAITCFG"]
#[inline (always)] pub fn waitcfg (& mut self) -> WaitcfgW < '_ , Bcr3Spec > { WaitcfgW :: new (self , 11) }
#[doc = "Bit 12 - WREN"]
#[inline (always)] pub fn wren (& mut self) -> WrenW < '_ , Bcr3Spec > { WrenW :: new (self , 12) }
#[doc = "Bit 13 - WAITEN"]
#[inline (always)] pub fn waiten (& mut self) -> WaitenW < '_ , Bcr3Spec > { WaitenW :: new (self , 13) }
#[doc = "Bit 14 - EXTMOD"]
#[inline (always)] pub fn extmod (& mut self) -> ExtmodW < '_ , Bcr3Spec > { ExtmodW :: new (self , 14) }
#[doc = "Bit 15 - ASYNCWAIT"]
#[inline (always)] pub fn asyncwait (& mut self) -> AsyncwaitW < '_ , Bcr3Spec > { AsyncwaitW :: new (self , 15) }
#[doc = "Bit 19 - CBURSTRW"]
#[inline (always)] pub fn cburstrw (& mut self) -> CburstrwW < '_ , Bcr3Spec > { CburstrwW :: new (self , 19) } }
#[doc = "SRAM/NOR-Flash chip-select control register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`bcr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bcr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Bcr3Spec ; impl crate :: RegisterSpec for Bcr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`bcr3::R`](R) reader structure"] impl crate :: Readable for Bcr3Spec { }
#[doc = "`write(|w| ..)` method takes [`bcr3::W`](W) writer structure"] impl crate :: Writable for Bcr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BCR3 to value 0x30d0"] impl crate :: Resettable for Bcr3Spec { const RESET_VALUE : u32 = 0x30d0 ; } }
#[doc = "BTR3 (rw) register accessor: SRAM/NOR-Flash chip-select timing register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`btr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`btr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@btr3`] module"]
#[doc (alias = "BTR3")] pub type Btr3 = crate :: Reg < btr3 :: Btr3Spec > ;
#[doc = "SRAM/NOR-Flash chip-select timing register 3"] pub mod btr3 {
#[doc = "Register `BTR3` reader"] pub type R = crate :: R < Btr3Spec > ;
#[doc = "Register `BTR3` writer"] pub type W = crate :: W < Btr3Spec > ;
#[doc = "Field `ADDSET` reader - ADDSET"] pub type AddsetR = crate :: FieldReader ;
#[doc = "Field `ADDSET` writer - ADDSET"] pub type AddsetW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ADDHLD` reader - ADDHLD"] pub type AddhldR = crate :: FieldReader ;
#[doc = "Field `ADDHLD` writer - ADDHLD"] pub type AddhldW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATAST` reader - DATAST"] pub type DatastR = crate :: FieldReader ;
#[doc = "Field `DATAST` writer - DATAST"] pub type DatastW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `BUSTURN` reader - BUSTURN"] pub type BusturnR = crate :: FieldReader ;
#[doc = "Field `BUSTURN` writer - BUSTURN"] pub type BusturnW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `CLKDIV` reader - CLKDIV"] pub type ClkdivR = crate :: FieldReader ;
#[doc = "Field `CLKDIV` writer - CLKDIV"] pub type ClkdivW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATLAT` reader - DATLAT"] pub type DatlatR = crate :: FieldReader ;
#[doc = "Field `DATLAT` writer - DATLAT"] pub type DatlatW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ACCMOD` reader - ACCMOD"] pub type AccmodR = crate :: FieldReader ;
#[doc = "Field `ACCMOD` writer - ACCMOD"] pub type AccmodW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& self) -> AddsetR { AddsetR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& self) -> AddhldR { AddhldR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& self) -> DatastR { DatastR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:19 - BUSTURN"]
#[inline (always)] pub fn busturn (& self) -> BusturnR { BusturnR :: new (((self . bits >> 16) & 0x0f) as u8) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& self) -> ClkdivR { ClkdivR :: new (((self . bits >> 20) & 0x0f) as u8) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& self) -> DatlatR { DatlatR :: new (((self . bits >> 24) & 0x0f) as u8) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& self) -> AccmodR { AccmodR :: new (((self . bits >> 28) & 3) as u8) } } impl W {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& mut self) -> AddsetW < '_ , Btr3Spec > { AddsetW :: new (self , 0) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& mut self) -> AddhldW < '_ , Btr3Spec > { AddhldW :: new (self , 4) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& mut self) -> DatastW < '_ , Btr3Spec > { DatastW :: new (self , 8) }
#[doc = "Bits 16:19 - BUSTURN"]
#[inline (always)] pub fn busturn (& mut self) -> BusturnW < '_ , Btr3Spec > { BusturnW :: new (self , 16) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& mut self) -> ClkdivW < '_ , Btr3Spec > { ClkdivW :: new (self , 20) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& mut self) -> DatlatW < '_ , Btr3Spec > { DatlatW :: new (self , 24) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& mut self) -> AccmodW < '_ , Btr3Spec > { AccmodW :: new (self , 28) } }
#[doc = "SRAM/NOR-Flash chip-select timing register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`btr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`btr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Btr3Spec ; impl crate :: RegisterSpec for Btr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`btr3::R`](R) reader structure"] impl crate :: Readable for Btr3Spec { }
#[doc = "`write(|w| ..)` method takes [`btr3::W`](W) writer structure"] impl crate :: Writable for Btr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BTR3 to value 0xffff_ffff"] impl crate :: Resettable for Btr3Spec { const RESET_VALUE : u32 = 0xffff_ffff ; } }
#[doc = "BCR4 (rw) register accessor: SRAM/NOR-Flash chip-select control register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`bcr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bcr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bcr4`] module"]
#[doc (alias = "BCR4")] pub type Bcr4 = crate :: Reg < bcr4 :: Bcr4Spec > ;
#[doc = "SRAM/NOR-Flash chip-select control register 4"] pub mod bcr4 {
#[doc = "Register `BCR4` reader"] pub type R = crate :: R < Bcr4Spec > ;
#[doc = "Register `BCR4` writer"] pub type W = crate :: W < Bcr4Spec > ;
#[doc = "Field `MBKEN` reader - MBKEN"] pub type MbkenR = crate :: BitReader ;
#[doc = "Field `MBKEN` writer - MBKEN"] pub type MbkenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MUXEN` reader - MUXEN"] pub type MuxenR = crate :: BitReader ;
#[doc = "Field `MUXEN` writer - MUXEN"] pub type MuxenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MTYP` reader - MTYP"] pub type MtypR = crate :: FieldReader ;
#[doc = "Field `MTYP` writer - MTYP"] pub type MtypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MWID` reader - MWID"] pub type MwidR = crate :: FieldReader ;
#[doc = "Field `MWID` writer - MWID"] pub type MwidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `FACCEN` reader - FACCEN"] pub type FaccenR = crate :: BitReader ;
#[doc = "Field `FACCEN` writer - FACCEN"] pub type FaccenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BURSTEN` reader - BURSTEN"] pub type BurstenR = crate :: BitReader ;
#[doc = "Field `BURSTEN` writer - BURSTEN"] pub type BurstenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAITPOL` reader - WAITPOL"] pub type WaitpolR = crate :: BitReader ;
#[doc = "Field `WAITPOL` writer - WAITPOL"] pub type WaitpolW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WRAPMOD` reader - WRAPMOD"] pub type WrapmodR = crate :: BitReader ;
#[doc = "Field `WRAPMOD` writer - WRAPMOD"] pub type WrapmodW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAITCFG` reader - WAITCFG"] pub type WaitcfgR = crate :: BitReader ;
#[doc = "Field `WAITCFG` writer - WAITCFG"] pub type WaitcfgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WREN` reader - WREN"] pub type WrenR = crate :: BitReader ;
#[doc = "Field `WREN` writer - WREN"] pub type WrenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAITEN` reader - WAITEN"] pub type WaitenR = crate :: BitReader ;
#[doc = "Field `WAITEN` writer - WAITEN"] pub type WaitenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EXTMOD` reader - EXTMOD"] pub type ExtmodR = crate :: BitReader ;
#[doc = "Field `EXTMOD` writer - EXTMOD"] pub type ExtmodW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ASYNCWAIT` reader - ASYNCWAIT"] pub type AsyncwaitR = crate :: BitReader ;
#[doc = "Field `ASYNCWAIT` writer - ASYNCWAIT"] pub type AsyncwaitW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CBURSTRW` reader - CBURSTRW"] pub type CburstrwR = crate :: BitReader ;
#[doc = "Field `CBURSTRW` writer - CBURSTRW"] pub type CburstrwW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - MBKEN"]
#[inline (always)] pub fn mbken (& self) -> MbkenR { MbkenR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - MUXEN"]
#[inline (always)] pub fn muxen (& self) -> MuxenR { MuxenR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bits 2:3 - MTYP"]
#[inline (always)] pub fn mtyp (& self) -> MtypR { MtypR :: new (((self . bits >> 2) & 3) as u8) }
#[doc = "Bits 4:5 - MWID"]
#[inline (always)] pub fn mwid (& self) -> MwidR { MwidR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - FACCEN"]
#[inline (always)] pub fn faccen (& self) -> FaccenR { FaccenR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 8 - BURSTEN"]
#[inline (always)] pub fn bursten (& self) -> BurstenR { BurstenR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - WAITPOL"]
#[inline (always)] pub fn waitpol (& self) -> WaitpolR { WaitpolR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - WRAPMOD"]
#[inline (always)] pub fn wrapmod (& self) -> WrapmodR { WrapmodR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - WAITCFG"]
#[inline (always)] pub fn waitcfg (& self) -> WaitcfgR { WaitcfgR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - WREN"]
#[inline (always)] pub fn wren (& self) -> WrenR { WrenR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - WAITEN"]
#[inline (always)] pub fn waiten (& self) -> WaitenR { WaitenR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - EXTMOD"]
#[inline (always)] pub fn extmod (& self) -> ExtmodR { ExtmodR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - ASYNCWAIT"]
#[inline (always)] pub fn asyncwait (& self) -> AsyncwaitR { AsyncwaitR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 19 - CBURSTRW"]
#[inline (always)] pub fn cburstrw (& self) -> CburstrwR { CburstrwR :: new (((self . bits >> 19) & 1) != 0) } } impl W {
#[doc = "Bit 0 - MBKEN"]
#[inline (always)] pub fn mbken (& mut self) -> MbkenW < '_ , Bcr4Spec > { MbkenW :: new (self , 0) }
#[doc = "Bit 1 - MUXEN"]
#[inline (always)] pub fn muxen (& mut self) -> MuxenW < '_ , Bcr4Spec > { MuxenW :: new (self , 1) }
#[doc = "Bits 2:3 - MTYP"]
#[inline (always)] pub fn mtyp (& mut self) -> MtypW < '_ , Bcr4Spec > { MtypW :: new (self , 2) }
#[doc = "Bits 4:5 - MWID"]
#[inline (always)] pub fn mwid (& mut self) -> MwidW < '_ , Bcr4Spec > { MwidW :: new (self , 4) }
#[doc = "Bit 6 - FACCEN"]
#[inline (always)] pub fn faccen (& mut self) -> FaccenW < '_ , Bcr4Spec > { FaccenW :: new (self , 6) }
#[doc = "Bit 8 - BURSTEN"]
#[inline (always)] pub fn bursten (& mut self) -> BurstenW < '_ , Bcr4Spec > { BurstenW :: new (self , 8) }
#[doc = "Bit 9 - WAITPOL"]
#[inline (always)] pub fn waitpol (& mut self) -> WaitpolW < '_ , Bcr4Spec > { WaitpolW :: new (self , 9) }
#[doc = "Bit 10 - WRAPMOD"]
#[inline (always)] pub fn wrapmod (& mut self) -> WrapmodW < '_ , Bcr4Spec > { WrapmodW :: new (self , 10) }
#[doc = "Bit 11 - WAITCFG"]
#[inline (always)] pub fn waitcfg (& mut self) -> WaitcfgW < '_ , Bcr4Spec > { WaitcfgW :: new (self , 11) }
#[doc = "Bit 12 - WREN"]
#[inline (always)] pub fn wren (& mut self) -> WrenW < '_ , Bcr4Spec > { WrenW :: new (self , 12) }
#[doc = "Bit 13 - WAITEN"]
#[inline (always)] pub fn waiten (& mut self) -> WaitenW < '_ , Bcr4Spec > { WaitenW :: new (self , 13) }
#[doc = "Bit 14 - EXTMOD"]
#[inline (always)] pub fn extmod (& mut self) -> ExtmodW < '_ , Bcr4Spec > { ExtmodW :: new (self , 14) }
#[doc = "Bit 15 - ASYNCWAIT"]
#[inline (always)] pub fn asyncwait (& mut self) -> AsyncwaitW < '_ , Bcr4Spec > { AsyncwaitW :: new (self , 15) }
#[doc = "Bit 19 - CBURSTRW"]
#[inline (always)] pub fn cburstrw (& mut self) -> CburstrwW < '_ , Bcr4Spec > { CburstrwW :: new (self , 19) } }
#[doc = "SRAM/NOR-Flash chip-select control register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`bcr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bcr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Bcr4Spec ; impl crate :: RegisterSpec for Bcr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`bcr4::R`](R) reader structure"] impl crate :: Readable for Bcr4Spec { }
#[doc = "`write(|w| ..)` method takes [`bcr4::W`](W) writer structure"] impl crate :: Writable for Bcr4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BCR4 to value 0x30d0"] impl crate :: Resettable for Bcr4Spec { const RESET_VALUE : u32 = 0x30d0 ; } }
#[doc = "BTR4 (rw) register accessor: SRAM/NOR-Flash chip-select timing register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`btr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`btr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@btr4`] module"]
#[doc (alias = "BTR4")] pub type Btr4 = crate :: Reg < btr4 :: Btr4Spec > ;
#[doc = "SRAM/NOR-Flash chip-select timing register 4"] pub mod btr4 {
#[doc = "Register `BTR4` reader"] pub type R = crate :: R < Btr4Spec > ;
#[doc = "Register `BTR4` writer"] pub type W = crate :: W < Btr4Spec > ;
#[doc = "Field `ADDSET` reader - ADDSET"] pub type AddsetR = crate :: FieldReader ;
#[doc = "Field `ADDSET` writer - ADDSET"] pub type AddsetW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ADDHLD` reader - ADDHLD"] pub type AddhldR = crate :: FieldReader ;
#[doc = "Field `ADDHLD` writer - ADDHLD"] pub type AddhldW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATAST` reader - DATAST"] pub type DatastR = crate :: FieldReader ;
#[doc = "Field `DATAST` writer - DATAST"] pub type DatastW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `BUSTURN` reader - BUSTURN"] pub type BusturnR = crate :: FieldReader ;
#[doc = "Field `BUSTURN` writer - BUSTURN"] pub type BusturnW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `CLKDIV` reader - CLKDIV"] pub type ClkdivR = crate :: FieldReader ;
#[doc = "Field `CLKDIV` writer - CLKDIV"] pub type ClkdivW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATLAT` reader - DATLAT"] pub type DatlatR = crate :: FieldReader ;
#[doc = "Field `DATLAT` writer - DATLAT"] pub type DatlatW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ACCMOD` reader - ACCMOD"] pub type AccmodR = crate :: FieldReader ;
#[doc = "Field `ACCMOD` writer - ACCMOD"] pub type AccmodW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& self) -> AddsetR { AddsetR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& self) -> AddhldR { AddhldR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& self) -> DatastR { DatastR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:19 - BUSTURN"]
#[inline (always)] pub fn busturn (& self) -> BusturnR { BusturnR :: new (((self . bits >> 16) & 0x0f) as u8) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& self) -> ClkdivR { ClkdivR :: new (((self . bits >> 20) & 0x0f) as u8) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& self) -> DatlatR { DatlatR :: new (((self . bits >> 24) & 0x0f) as u8) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& self) -> AccmodR { AccmodR :: new (((self . bits >> 28) & 3) as u8) } } impl W {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& mut self) -> AddsetW < '_ , Btr4Spec > { AddsetW :: new (self , 0) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& mut self) -> AddhldW < '_ , Btr4Spec > { AddhldW :: new (self , 4) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& mut self) -> DatastW < '_ , Btr4Spec > { DatastW :: new (self , 8) }
#[doc = "Bits 16:19 - BUSTURN"]
#[inline (always)] pub fn busturn (& mut self) -> BusturnW < '_ , Btr4Spec > { BusturnW :: new (self , 16) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& mut self) -> ClkdivW < '_ , Btr4Spec > { ClkdivW :: new (self , 20) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& mut self) -> DatlatW < '_ , Btr4Spec > { DatlatW :: new (self , 24) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& mut self) -> AccmodW < '_ , Btr4Spec > { AccmodW :: new (self , 28) } }
#[doc = "SRAM/NOR-Flash chip-select timing register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`btr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`btr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Btr4Spec ; impl crate :: RegisterSpec for Btr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`btr4::R`](R) reader structure"] impl crate :: Readable for Btr4Spec { }
#[doc = "`write(|w| ..)` method takes [`btr4::W`](W) writer structure"] impl crate :: Writable for Btr4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BTR4 to value 0xffff_ffff"] impl crate :: Resettable for Btr4Spec { const RESET_VALUE : u32 = 0xffff_ffff ; } }
#[doc = "PCR2 (rw) register accessor: PC Card/NAND Flash control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`pcr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pcr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pcr2`] module"]
#[doc (alias = "PCR2")] pub type Pcr2 = crate :: Reg < pcr2 :: Pcr2Spec > ;
#[doc = "PC Card/NAND Flash control register 2"] pub mod pcr2 {
#[doc = "Register `PCR2` reader"] pub type R = crate :: R < Pcr2Spec > ;
#[doc = "Register `PCR2` writer"] pub type W = crate :: W < Pcr2Spec > ;
#[doc = "Field `PWAITEN` reader - PWAITEN"] pub type PwaitenR = crate :: BitReader ;
#[doc = "Field `PWAITEN` writer - PWAITEN"] pub type PwaitenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PBKEN` reader - PBKEN"] pub type PbkenR = crate :: BitReader ;
#[doc = "Field `PBKEN` writer - PBKEN"] pub type PbkenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PTYP` reader - PTYP"] pub type PtypR = crate :: BitReader ;
#[doc = "Field `PTYP` writer - PTYP"] pub type PtypW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PWID` reader - PWID"] pub type PwidR = crate :: FieldReader ;
#[doc = "Field `PWID` writer - PWID"] pub type PwidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `ECCEN` reader - ECCEN"] pub type EccenR = crate :: BitReader ;
#[doc = "Field `ECCEN` writer - ECCEN"] pub type EccenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TCLR` reader - TCLR"] pub type TclrR = crate :: FieldReader ;
#[doc = "Field `TCLR` writer - TCLR"] pub type TclrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `TAR` reader - TAR"] pub type TarR = crate :: FieldReader ;
#[doc = "Field `TAR` writer - TAR"] pub type TarW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ECCPS` reader - ECCPS"] pub type EccpsR = crate :: FieldReader ;
#[doc = "Field `ECCPS` writer - ECCPS"] pub type EccpsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bit 1 - PWAITEN"]
#[inline (always)] pub fn pwaiten (& self) -> PwaitenR { PwaitenR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - PBKEN"]
#[inline (always)] pub fn pbken (& self) -> PbkenR { PbkenR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - PTYP"]
#[inline (always)] pub fn ptyp (& self) -> PtypR { PtypR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:5 - PWID"]
#[inline (always)] pub fn pwid (& self) -> PwidR { PwidR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - ECCEN"]
#[inline (always)] pub fn eccen (& self) -> EccenR { EccenR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bits 9:12 - TCLR"]
#[inline (always)] pub fn tclr (& self) -> TclrR { TclrR :: new (((self . bits >> 9) & 0x0f) as u8) }
#[doc = "Bits 13:16 - TAR"]
#[inline (always)] pub fn tar (& self) -> TarR { TarR :: new (((self . bits >> 13) & 0x0f) as u8) }
#[doc = "Bits 17:19 - ECCPS"]
#[inline (always)] pub fn eccps (& self) -> EccpsR { EccpsR :: new (((self . bits >> 17) & 7) as u8) } } impl W {
#[doc = "Bit 1 - PWAITEN"]
#[inline (always)] pub fn pwaiten (& mut self) -> PwaitenW < '_ , Pcr2Spec > { PwaitenW :: new (self , 1) }
#[doc = "Bit 2 - PBKEN"]
#[inline (always)] pub fn pbken (& mut self) -> PbkenW < '_ , Pcr2Spec > { PbkenW :: new (self , 2) }
#[doc = "Bit 3 - PTYP"]
#[inline (always)] pub fn ptyp (& mut self) -> PtypW < '_ , Pcr2Spec > { PtypW :: new (self , 3) }
#[doc = "Bits 4:5 - PWID"]
#[inline (always)] pub fn pwid (& mut self) -> PwidW < '_ , Pcr2Spec > { PwidW :: new (self , 4) }
#[doc = "Bit 6 - ECCEN"]
#[inline (always)] pub fn eccen (& mut self) -> EccenW < '_ , Pcr2Spec > { EccenW :: new (self , 6) }
#[doc = "Bits 9:12 - TCLR"]
#[inline (always)] pub fn tclr (& mut self) -> TclrW < '_ , Pcr2Spec > { TclrW :: new (self , 9) }
#[doc = "Bits 13:16 - TAR"]
#[inline (always)] pub fn tar (& mut self) -> TarW < '_ , Pcr2Spec > { TarW :: new (self , 13) }
#[doc = "Bits 17:19 - ECCPS"]
#[inline (always)] pub fn eccps (& mut self) -> EccpsW < '_ , Pcr2Spec > { EccpsW :: new (self , 17) } }
#[doc = "PC Card/NAND Flash control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`pcr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pcr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Pcr2Spec ; impl crate :: RegisterSpec for Pcr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`pcr2::R`](R) reader structure"] impl crate :: Readable for Pcr2Spec { }
#[doc = "`write(|w| ..)` method takes [`pcr2::W`](W) writer structure"] impl crate :: Writable for Pcr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PCR2 to value 0x18"] impl crate :: Resettable for Pcr2Spec { const RESET_VALUE : u32 = 0x18 ; } }
#[doc = "SR2 (rw) register accessor: FIFO status and interrupt register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`sr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr2`] module"]
#[doc (alias = "SR2")] pub type Sr2 = crate :: Reg < sr2 :: Sr2Spec > ;
#[doc = "FIFO status and interrupt register 2"] pub mod sr2 {
#[doc = "Register `SR2` reader"] pub type R = crate :: R < Sr2Spec > ;
#[doc = "Register `SR2` writer"] pub type W = crate :: W < Sr2Spec > ;
#[doc = "Field `IRS` reader - IRS"] pub type IrsR = crate :: BitReader ;
#[doc = "Field `IRS` writer - IRS"] pub type IrsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ILS` reader - ILS"] pub type IlsR = crate :: BitReader ;
#[doc = "Field `ILS` writer - ILS"] pub type IlsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IFS` reader - IFS"] pub type IfsR = crate :: BitReader ;
#[doc = "Field `IFS` writer - IFS"] pub type IfsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IREN` reader - IREN"] pub type IrenR = crate :: BitReader ;
#[doc = "Field `IREN` writer - IREN"] pub type IrenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ILEN` reader - ILEN"] pub type IlenR = crate :: BitReader ;
#[doc = "Field `ILEN` writer - ILEN"] pub type IlenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IFEN` reader - IFEN"] pub type IfenR = crate :: BitReader ;
#[doc = "Field `IFEN` writer - IFEN"] pub type IfenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FEMPT` reader - FEMPT"] pub type FemptR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - IRS"]
#[inline (always)] pub fn irs (& self) -> IrsR { IrsR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - ILS"]
#[inline (always)] pub fn ils (& self) -> IlsR { IlsR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - IFS"]
#[inline (always)] pub fn ifs (& self) -> IfsR { IfsR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - IREN"]
#[inline (always)] pub fn iren (& self) -> IrenR { IrenR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - ILEN"]
#[inline (always)] pub fn ilen (& self) -> IlenR { IlenR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - IFEN"]
#[inline (always)] pub fn ifen (& self) -> IfenR { IfenR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - FEMPT"]
#[inline (always)] pub fn fempt (& self) -> FemptR { FemptR :: new (((self . bits >> 6) & 1) != 0) } } impl W {
#[doc = "Bit 0 - IRS"]
#[inline (always)] pub fn irs (& mut self) -> IrsW < '_ , Sr2Spec > { IrsW :: new (self , 0) }
#[doc = "Bit 1 - ILS"]
#[inline (always)] pub fn ils (& mut self) -> IlsW < '_ , Sr2Spec > { IlsW :: new (self , 1) }
#[doc = "Bit 2 - IFS"]
#[inline (always)] pub fn ifs (& mut self) -> IfsW < '_ , Sr2Spec > { IfsW :: new (self , 2) }
#[doc = "Bit 3 - IREN"]
#[inline (always)] pub fn iren (& mut self) -> IrenW < '_ , Sr2Spec > { IrenW :: new (self , 3) }
#[doc = "Bit 4 - ILEN"]
#[inline (always)] pub fn ilen (& mut self) -> IlenW < '_ , Sr2Spec > { IlenW :: new (self , 4) }
#[doc = "Bit 5 - IFEN"]
#[inline (always)] pub fn ifen (& mut self) -> IfenW < '_ , Sr2Spec > { IfenW :: new (self , 5) } }
#[doc = "FIFO status and interrupt register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`sr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Sr2Spec ; impl crate :: RegisterSpec for Sr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr2::R`](R) reader structure"] impl crate :: Readable for Sr2Spec { }
#[doc = "`write(|w| ..)` method takes [`sr2::W`](W) writer structure"] impl crate :: Writable for Sr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR2 to value 0x40"] impl crate :: Resettable for Sr2Spec { const RESET_VALUE : u32 = 0x40 ; } }
#[doc = "PMEM2 (rw) register accessor: Common memory space timing register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`pmem2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pmem2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pmem2`] module"]
#[doc (alias = "PMEM2")] pub type Pmem2 = crate :: Reg < pmem2 :: Pmem2Spec > ;
#[doc = "Common memory space timing register 2"] pub mod pmem2 {
#[doc = "Register `PMEM2` reader"] pub type R = crate :: R < Pmem2Spec > ;
#[doc = "Register `PMEM2` writer"] pub type W = crate :: W < Pmem2Spec > ;
#[doc = "Field `MEMSETx` reader - MEMSETx"] pub type MemsetxR = crate :: FieldReader ;
#[doc = "Field `MEMSETx` writer - MEMSETx"] pub type MemsetxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `MEMWAITx` reader - MEMWAITx"] pub type MemwaitxR = crate :: FieldReader ;
#[doc = "Field `MEMWAITx` writer - MEMWAITx"] pub type MemwaitxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `MEMHOLDx` reader - MEMHOLDx"] pub type MemholdxR = crate :: FieldReader ;
#[doc = "Field `MEMHOLDx` writer - MEMHOLDx"] pub type MemholdxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `MEMHIZx` reader - MEMHIZx"] pub type MemhizxR = crate :: FieldReader ;
#[doc = "Field `MEMHIZx` writer - MEMHIZx"] pub type MemhizxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - MEMSETx"]
#[inline (always)] pub fn memsetx (& self) -> MemsetxR { MemsetxR :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - MEMWAITx"]
#[inline (always)] pub fn memwaitx (& self) -> MemwaitxR { MemwaitxR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - MEMHOLDx"]
#[inline (always)] pub fn memholdx (& self) -> MemholdxR { MemholdxR :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - MEMHIZx"]
#[inline (always)] pub fn memhizx (& self) -> MemhizxR { MemhizxR :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - MEMSETx"]
#[inline (always)] pub fn memsetx (& mut self) -> MemsetxW < '_ , Pmem2Spec > { MemsetxW :: new (self , 0) }
#[doc = "Bits 8:15 - MEMWAITx"]
#[inline (always)] pub fn memwaitx (& mut self) -> MemwaitxW < '_ , Pmem2Spec > { MemwaitxW :: new (self , 8) }
#[doc = "Bits 16:23 - MEMHOLDx"]
#[inline (always)] pub fn memholdx (& mut self) -> MemholdxW < '_ , Pmem2Spec > { MemholdxW :: new (self , 16) }
#[doc = "Bits 24:31 - MEMHIZx"]
#[inline (always)] pub fn memhizx (& mut self) -> MemhizxW < '_ , Pmem2Spec > { MemhizxW :: new (self , 24) } }
#[doc = "Common memory space timing register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`pmem2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pmem2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Pmem2Spec ; impl crate :: RegisterSpec for Pmem2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`pmem2::R`](R) reader structure"] impl crate :: Readable for Pmem2Spec { }
#[doc = "`write(|w| ..)` method takes [`pmem2::W`](W) writer structure"] impl crate :: Writable for Pmem2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PMEM2 to value 0xfcfc_fcfc"] impl crate :: Resettable for Pmem2Spec { const RESET_VALUE : u32 = 0xfcfc_fcfc ; } }
#[doc = "PATT2 (rw) register accessor: Attribute memory space timing register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`patt2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`patt2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@patt2`] module"]
#[doc (alias = "PATT2")] pub type Patt2 = crate :: Reg < patt2 :: Patt2Spec > ;
#[doc = "Attribute memory space timing register 2"] pub mod patt2 {
#[doc = "Register `PATT2` reader"] pub type R = crate :: R < Patt2Spec > ;
#[doc = "Register `PATT2` writer"] pub type W = crate :: W < Patt2Spec > ;
#[doc = "Field `ATTSETx` reader - Attribute memory x setup time"] pub type AttsetxR = crate :: FieldReader ;
#[doc = "Field `ATTSETx` writer - Attribute memory x setup time"] pub type AttsetxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `ATTWAITx` reader - Attribute memory x wait time"] pub type AttwaitxR = crate :: FieldReader ;
#[doc = "Field `ATTWAITx` writer - Attribute memory x wait time"] pub type AttwaitxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `ATTHOLDx` reader - Attribute memory x hold time"] pub type AttholdxR = crate :: FieldReader ;
#[doc = "Field `ATTHOLDx` writer - Attribute memory x hold time"] pub type AttholdxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `ATTHIZx` reader - Attribute memory x databus HiZ time"] pub type AtthizxR = crate :: FieldReader ;
#[doc = "Field `ATTHIZx` writer - Attribute memory x databus HiZ time"] pub type AtthizxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - Attribute memory x setup time"]
#[inline (always)] pub fn attsetx (& self) -> AttsetxR { AttsetxR :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - Attribute memory x wait time"]
#[inline (always)] pub fn attwaitx (& self) -> AttwaitxR { AttwaitxR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - Attribute memory x hold time"]
#[inline (always)] pub fn attholdx (& self) -> AttholdxR { AttholdxR :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - Attribute memory x databus HiZ time"]
#[inline (always)] pub fn atthizx (& self) -> AtthizxR { AtthizxR :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - Attribute memory x setup time"]
#[inline (always)] pub fn attsetx (& mut self) -> AttsetxW < '_ , Patt2Spec > { AttsetxW :: new (self , 0) }
#[doc = "Bits 8:15 - Attribute memory x wait time"]
#[inline (always)] pub fn attwaitx (& mut self) -> AttwaitxW < '_ , Patt2Spec > { AttwaitxW :: new (self , 8) }
#[doc = "Bits 16:23 - Attribute memory x hold time"]
#[inline (always)] pub fn attholdx (& mut self) -> AttholdxW < '_ , Patt2Spec > { AttholdxW :: new (self , 16) }
#[doc = "Bits 24:31 - Attribute memory x databus HiZ time"]
#[inline (always)] pub fn atthizx (& mut self) -> AtthizxW < '_ , Patt2Spec > { AtthizxW :: new (self , 24) } }
#[doc = "Attribute memory space timing register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`patt2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`patt2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Patt2Spec ; impl crate :: RegisterSpec for Patt2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`patt2::R`](R) reader structure"] impl crate :: Readable for Patt2Spec { }
#[doc = "`write(|w| ..)` method takes [`patt2::W`](W) writer structure"] impl crate :: Writable for Patt2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PATT2 to value 0xfcfc_fcfc"] impl crate :: Resettable for Patt2Spec { const RESET_VALUE : u32 = 0xfcfc_fcfc ; } }
#[doc = "ECCR2 (r) register accessor: ECC result register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`eccr2::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@eccr2`] module"]
#[doc (alias = "ECCR2")] pub type Eccr2 = crate :: Reg < eccr2 :: Eccr2Spec > ;
#[doc = "ECC result register 2"] pub mod eccr2 {
#[doc = "Register `ECCR2` reader"] pub type R = crate :: R < Eccr2Spec > ;
#[doc = "Field `ECCx` reader - ECC result"] pub type EccxR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - ECC result"]
#[inline (always)] pub fn eccx (& self) -> EccxR { EccxR :: new (self . bits) } }
#[doc = "ECC result register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`eccr2::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Eccr2Spec ; impl crate :: RegisterSpec for Eccr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`eccr2::R`](R) reader structure"] impl crate :: Readable for Eccr2Spec { }
#[doc = "`reset()` method sets ECCR2 to value 0"] impl crate :: Resettable for Eccr2Spec { } }
#[doc = "PCR3 (rw) register accessor: PC Card/NAND Flash control register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`pcr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pcr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pcr3`] module"]
#[doc (alias = "PCR3")] pub type Pcr3 = crate :: Reg < pcr3 :: Pcr3Spec > ;
#[doc = "PC Card/NAND Flash control register 3"] pub mod pcr3 {
#[doc = "Register `PCR3` reader"] pub type R = crate :: R < Pcr3Spec > ;
#[doc = "Register `PCR3` writer"] pub type W = crate :: W < Pcr3Spec > ;
#[doc = "Field `PWAITEN` reader - PWAITEN"] pub type PwaitenR = crate :: BitReader ;
#[doc = "Field `PWAITEN` writer - PWAITEN"] pub type PwaitenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PBKEN` reader - PBKEN"] pub type PbkenR = crate :: BitReader ;
#[doc = "Field `PBKEN` writer - PBKEN"] pub type PbkenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PTYP` reader - PTYP"] pub type PtypR = crate :: BitReader ;
#[doc = "Field `PTYP` writer - PTYP"] pub type PtypW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PWID` reader - PWID"] pub type PwidR = crate :: FieldReader ;
#[doc = "Field `PWID` writer - PWID"] pub type PwidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `ECCEN` reader - ECCEN"] pub type EccenR = crate :: BitReader ;
#[doc = "Field `ECCEN` writer - ECCEN"] pub type EccenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TCLR` reader - TCLR"] pub type TclrR = crate :: FieldReader ;
#[doc = "Field `TCLR` writer - TCLR"] pub type TclrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `TAR` reader - TAR"] pub type TarR = crate :: FieldReader ;
#[doc = "Field `TAR` writer - TAR"] pub type TarW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ECCPS` reader - ECCPS"] pub type EccpsR = crate :: FieldReader ;
#[doc = "Field `ECCPS` writer - ECCPS"] pub type EccpsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bit 1 - PWAITEN"]
#[inline (always)] pub fn pwaiten (& self) -> PwaitenR { PwaitenR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - PBKEN"]
#[inline (always)] pub fn pbken (& self) -> PbkenR { PbkenR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - PTYP"]
#[inline (always)] pub fn ptyp (& self) -> PtypR { PtypR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:5 - PWID"]
#[inline (always)] pub fn pwid (& self) -> PwidR { PwidR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - ECCEN"]
#[inline (always)] pub fn eccen (& self) -> EccenR { EccenR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bits 9:12 - TCLR"]
#[inline (always)] pub fn tclr (& self) -> TclrR { TclrR :: new (((self . bits >> 9) & 0x0f) as u8) }
#[doc = "Bits 13:16 - TAR"]
#[inline (always)] pub fn tar (& self) -> TarR { TarR :: new (((self . bits >> 13) & 0x0f) as u8) }
#[doc = "Bits 17:19 - ECCPS"]
#[inline (always)] pub fn eccps (& self) -> EccpsR { EccpsR :: new (((self . bits >> 17) & 7) as u8) } } impl W {
#[doc = "Bit 1 - PWAITEN"]
#[inline (always)] pub fn pwaiten (& mut self) -> PwaitenW < '_ , Pcr3Spec > { PwaitenW :: new (self , 1) }
#[doc = "Bit 2 - PBKEN"]
#[inline (always)] pub fn pbken (& mut self) -> PbkenW < '_ , Pcr3Spec > { PbkenW :: new (self , 2) }
#[doc = "Bit 3 - PTYP"]
#[inline (always)] pub fn ptyp (& mut self) -> PtypW < '_ , Pcr3Spec > { PtypW :: new (self , 3) }
#[doc = "Bits 4:5 - PWID"]
#[inline (always)] pub fn pwid (& mut self) -> PwidW < '_ , Pcr3Spec > { PwidW :: new (self , 4) }
#[doc = "Bit 6 - ECCEN"]
#[inline (always)] pub fn eccen (& mut self) -> EccenW < '_ , Pcr3Spec > { EccenW :: new (self , 6) }
#[doc = "Bits 9:12 - TCLR"]
#[inline (always)] pub fn tclr (& mut self) -> TclrW < '_ , Pcr3Spec > { TclrW :: new (self , 9) }
#[doc = "Bits 13:16 - TAR"]
#[inline (always)] pub fn tar (& mut self) -> TarW < '_ , Pcr3Spec > { TarW :: new (self , 13) }
#[doc = "Bits 17:19 - ECCPS"]
#[inline (always)] pub fn eccps (& mut self) -> EccpsW < '_ , Pcr3Spec > { EccpsW :: new (self , 17) } }
#[doc = "PC Card/NAND Flash control register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`pcr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pcr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Pcr3Spec ; impl crate :: RegisterSpec for Pcr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`pcr3::R`](R) reader structure"] impl crate :: Readable for Pcr3Spec { }
#[doc = "`write(|w| ..)` method takes [`pcr3::W`](W) writer structure"] impl crate :: Writable for Pcr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PCR3 to value 0x18"] impl crate :: Resettable for Pcr3Spec { const RESET_VALUE : u32 = 0x18 ; } }
#[doc = "SR3 (rw) register accessor: FIFO status and interrupt register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`sr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr3`] module"]
#[doc (alias = "SR3")] pub type Sr3 = crate :: Reg < sr3 :: Sr3Spec > ;
#[doc = "FIFO status and interrupt register 3"] pub mod sr3 {
#[doc = "Register `SR3` reader"] pub type R = crate :: R < Sr3Spec > ;
#[doc = "Register `SR3` writer"] pub type W = crate :: W < Sr3Spec > ;
#[doc = "Field `IRS` reader - IRS"] pub type IrsR = crate :: BitReader ;
#[doc = "Field `IRS` writer - IRS"] pub type IrsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ILS` reader - ILS"] pub type IlsR = crate :: BitReader ;
#[doc = "Field `ILS` writer - ILS"] pub type IlsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IFS` reader - IFS"] pub type IfsR = crate :: BitReader ;
#[doc = "Field `IFS` writer - IFS"] pub type IfsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IREN` reader - IREN"] pub type IrenR = crate :: BitReader ;
#[doc = "Field `IREN` writer - IREN"] pub type IrenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ILEN` reader - ILEN"] pub type IlenR = crate :: BitReader ;
#[doc = "Field `ILEN` writer - ILEN"] pub type IlenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IFEN` reader - IFEN"] pub type IfenR = crate :: BitReader ;
#[doc = "Field `IFEN` writer - IFEN"] pub type IfenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FEMPT` reader - FEMPT"] pub type FemptR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - IRS"]
#[inline (always)] pub fn irs (& self) -> IrsR { IrsR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - ILS"]
#[inline (always)] pub fn ils (& self) -> IlsR { IlsR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - IFS"]
#[inline (always)] pub fn ifs (& self) -> IfsR { IfsR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - IREN"]
#[inline (always)] pub fn iren (& self) -> IrenR { IrenR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - ILEN"]
#[inline (always)] pub fn ilen (& self) -> IlenR { IlenR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - IFEN"]
#[inline (always)] pub fn ifen (& self) -> IfenR { IfenR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - FEMPT"]
#[inline (always)] pub fn fempt (& self) -> FemptR { FemptR :: new (((self . bits >> 6) & 1) != 0) } } impl W {
#[doc = "Bit 0 - IRS"]
#[inline (always)] pub fn irs (& mut self) -> IrsW < '_ , Sr3Spec > { IrsW :: new (self , 0) }
#[doc = "Bit 1 - ILS"]
#[inline (always)] pub fn ils (& mut self) -> IlsW < '_ , Sr3Spec > { IlsW :: new (self , 1) }
#[doc = "Bit 2 - IFS"]
#[inline (always)] pub fn ifs (& mut self) -> IfsW < '_ , Sr3Spec > { IfsW :: new (self , 2) }
#[doc = "Bit 3 - IREN"]
#[inline (always)] pub fn iren (& mut self) -> IrenW < '_ , Sr3Spec > { IrenW :: new (self , 3) }
#[doc = "Bit 4 - ILEN"]
#[inline (always)] pub fn ilen (& mut self) -> IlenW < '_ , Sr3Spec > { IlenW :: new (self , 4) }
#[doc = "Bit 5 - IFEN"]
#[inline (always)] pub fn ifen (& mut self) -> IfenW < '_ , Sr3Spec > { IfenW :: new (self , 5) } }
#[doc = "FIFO status and interrupt register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`sr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Sr3Spec ; impl crate :: RegisterSpec for Sr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr3::R`](R) reader structure"] impl crate :: Readable for Sr3Spec { }
#[doc = "`write(|w| ..)` method takes [`sr3::W`](W) writer structure"] impl crate :: Writable for Sr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR3 to value 0x40"] impl crate :: Resettable for Sr3Spec { const RESET_VALUE : u32 = 0x40 ; } }
#[doc = "PMEM3 (rw) register accessor: Common memory space timing register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`pmem3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pmem3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pmem3`] module"]
#[doc (alias = "PMEM3")] pub type Pmem3 = crate :: Reg < pmem3 :: Pmem3Spec > ;
#[doc = "Common memory space timing register 3"] pub mod pmem3 {
#[doc = "Register `PMEM3` reader"] pub type R = crate :: R < Pmem3Spec > ;
#[doc = "Register `PMEM3` writer"] pub type W = crate :: W < Pmem3Spec > ;
#[doc = "Field `MEMSETx` reader - MEMSETx"] pub type MemsetxR = crate :: FieldReader ;
#[doc = "Field `MEMSETx` writer - MEMSETx"] pub type MemsetxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `MEMWAITx` reader - MEMWAITx"] pub type MemwaitxR = crate :: FieldReader ;
#[doc = "Field `MEMWAITx` writer - MEMWAITx"] pub type MemwaitxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `MEMHOLDx` reader - MEMHOLDx"] pub type MemholdxR = crate :: FieldReader ;
#[doc = "Field `MEMHOLDx` writer - MEMHOLDx"] pub type MemholdxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `MEMHIZx` reader - MEMHIZx"] pub type MemhizxR = crate :: FieldReader ;
#[doc = "Field `MEMHIZx` writer - MEMHIZx"] pub type MemhizxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - MEMSETx"]
#[inline (always)] pub fn memsetx (& self) -> MemsetxR { MemsetxR :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - MEMWAITx"]
#[inline (always)] pub fn memwaitx (& self) -> MemwaitxR { MemwaitxR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - MEMHOLDx"]
#[inline (always)] pub fn memholdx (& self) -> MemholdxR { MemholdxR :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - MEMHIZx"]
#[inline (always)] pub fn memhizx (& self) -> MemhizxR { MemhizxR :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - MEMSETx"]
#[inline (always)] pub fn memsetx (& mut self) -> MemsetxW < '_ , Pmem3Spec > { MemsetxW :: new (self , 0) }
#[doc = "Bits 8:15 - MEMWAITx"]
#[inline (always)] pub fn memwaitx (& mut self) -> MemwaitxW < '_ , Pmem3Spec > { MemwaitxW :: new (self , 8) }
#[doc = "Bits 16:23 - MEMHOLDx"]
#[inline (always)] pub fn memholdx (& mut self) -> MemholdxW < '_ , Pmem3Spec > { MemholdxW :: new (self , 16) }
#[doc = "Bits 24:31 - MEMHIZx"]
#[inline (always)] pub fn memhizx (& mut self) -> MemhizxW < '_ , Pmem3Spec > { MemhizxW :: new (self , 24) } }
#[doc = "Common memory space timing register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`pmem3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pmem3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Pmem3Spec ; impl crate :: RegisterSpec for Pmem3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`pmem3::R`](R) reader structure"] impl crate :: Readable for Pmem3Spec { }
#[doc = "`write(|w| ..)` method takes [`pmem3::W`](W) writer structure"] impl crate :: Writable for Pmem3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PMEM3 to value 0xfcfc_fcfc"] impl crate :: Resettable for Pmem3Spec { const RESET_VALUE : u32 = 0xfcfc_fcfc ; } }
#[doc = "PATT3 (rw) register accessor: Attribute memory space timing register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`patt3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`patt3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@patt3`] module"]
#[doc (alias = "PATT3")] pub type Patt3 = crate :: Reg < patt3 :: Patt3Spec > ;
#[doc = "Attribute memory space timing register 3"] pub mod patt3 {
#[doc = "Register `PATT3` reader"] pub type R = crate :: R < Patt3Spec > ;
#[doc = "Register `PATT3` writer"] pub type W = crate :: W < Patt3Spec > ;
#[doc = "Field `ATTSETx` reader - ATTSETx"] pub type AttsetxR = crate :: FieldReader ;
#[doc = "Field `ATTSETx` writer - ATTSETx"] pub type AttsetxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `ATTWAITx` reader - ATTWAITx"] pub type AttwaitxR = crate :: FieldReader ;
#[doc = "Field `ATTWAITx` writer - ATTWAITx"] pub type AttwaitxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `ATTHOLDx` reader - ATTHOLDx"] pub type AttholdxR = crate :: FieldReader ;
#[doc = "Field `ATTHOLDx` writer - ATTHOLDx"] pub type AttholdxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `ATTHIZx` reader - ATTHIZx"] pub type AtthizxR = crate :: FieldReader ;
#[doc = "Field `ATTHIZx` writer - ATTHIZx"] pub type AtthizxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - ATTSETx"]
#[inline (always)] pub fn attsetx (& self) -> AttsetxR { AttsetxR :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - ATTWAITx"]
#[inline (always)] pub fn attwaitx (& self) -> AttwaitxR { AttwaitxR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - ATTHOLDx"]
#[inline (always)] pub fn attholdx (& self) -> AttholdxR { AttholdxR :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - ATTHIZx"]
#[inline (always)] pub fn atthizx (& self) -> AtthizxR { AtthizxR :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - ATTSETx"]
#[inline (always)] pub fn attsetx (& mut self) -> AttsetxW < '_ , Patt3Spec > { AttsetxW :: new (self , 0) }
#[doc = "Bits 8:15 - ATTWAITx"]
#[inline (always)] pub fn attwaitx (& mut self) -> AttwaitxW < '_ , Patt3Spec > { AttwaitxW :: new (self , 8) }
#[doc = "Bits 16:23 - ATTHOLDx"]
#[inline (always)] pub fn attholdx (& mut self) -> AttholdxW < '_ , Patt3Spec > { AttholdxW :: new (self , 16) }
#[doc = "Bits 24:31 - ATTHIZx"]
#[inline (always)] pub fn atthizx (& mut self) -> AtthizxW < '_ , Patt3Spec > { AtthizxW :: new (self , 24) } }
#[doc = "Attribute memory space timing register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`patt3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`patt3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Patt3Spec ; impl crate :: RegisterSpec for Patt3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`patt3::R`](R) reader structure"] impl crate :: Readable for Patt3Spec { }
#[doc = "`write(|w| ..)` method takes [`patt3::W`](W) writer structure"] impl crate :: Writable for Patt3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PATT3 to value 0xfcfc_fcfc"] impl crate :: Resettable for Patt3Spec { const RESET_VALUE : u32 = 0xfcfc_fcfc ; } }
#[doc = "ECCR3 (r) register accessor: ECC result register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`eccr3::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@eccr3`] module"]
#[doc (alias = "ECCR3")] pub type Eccr3 = crate :: Reg < eccr3 :: Eccr3Spec > ;
#[doc = "ECC result register 3"] pub mod eccr3 {
#[doc = "Register `ECCR3` reader"] pub type R = crate :: R < Eccr3Spec > ;
#[doc = "Field `ECCx` reader - ECCx"] pub type EccxR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - ECCx"]
#[inline (always)] pub fn eccx (& self) -> EccxR { EccxR :: new (self . bits) } }
#[doc = "ECC result register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`eccr3::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Eccr3Spec ; impl crate :: RegisterSpec for Eccr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`eccr3::R`](R) reader structure"] impl crate :: Readable for Eccr3Spec { }
#[doc = "`reset()` method sets ECCR3 to value 0"] impl crate :: Resettable for Eccr3Spec { } }
#[doc = "PCR4 (rw) register accessor: PC Card/NAND Flash control register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`pcr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pcr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pcr4`] module"]
#[doc (alias = "PCR4")] pub type Pcr4 = crate :: Reg < pcr4 :: Pcr4Spec > ;
#[doc = "PC Card/NAND Flash control register 4"] pub mod pcr4 {
#[doc = "Register `PCR4` reader"] pub type R = crate :: R < Pcr4Spec > ;
#[doc = "Register `PCR4` writer"] pub type W = crate :: W < Pcr4Spec > ;
#[doc = "Field `PWAITEN` reader - PWAITEN"] pub type PwaitenR = crate :: BitReader ;
#[doc = "Field `PWAITEN` writer - PWAITEN"] pub type PwaitenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PBKEN` reader - PBKEN"] pub type PbkenR = crate :: BitReader ;
#[doc = "Field `PBKEN` writer - PBKEN"] pub type PbkenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PTYP` reader - PTYP"] pub type PtypR = crate :: BitReader ;
#[doc = "Field `PTYP` writer - PTYP"] pub type PtypW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PWID` reader - PWID"] pub type PwidR = crate :: FieldReader ;
#[doc = "Field `PWID` writer - PWID"] pub type PwidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `ECCEN` reader - ECCEN"] pub type EccenR = crate :: BitReader ;
#[doc = "Field `ECCEN` writer - ECCEN"] pub type EccenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TCLR` reader - TCLR"] pub type TclrR = crate :: FieldReader ;
#[doc = "Field `TCLR` writer - TCLR"] pub type TclrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `TAR` reader - TAR"] pub type TarR = crate :: FieldReader ;
#[doc = "Field `TAR` writer - TAR"] pub type TarW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ECCPS` reader - ECCPS"] pub type EccpsR = crate :: FieldReader ;
#[doc = "Field `ECCPS` writer - ECCPS"] pub type EccpsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bit 1 - PWAITEN"]
#[inline (always)] pub fn pwaiten (& self) -> PwaitenR { PwaitenR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - PBKEN"]
#[inline (always)] pub fn pbken (& self) -> PbkenR { PbkenR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - PTYP"]
#[inline (always)] pub fn ptyp (& self) -> PtypR { PtypR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:5 - PWID"]
#[inline (always)] pub fn pwid (& self) -> PwidR { PwidR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - ECCEN"]
#[inline (always)] pub fn eccen (& self) -> EccenR { EccenR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bits 9:12 - TCLR"]
#[inline (always)] pub fn tclr (& self) -> TclrR { TclrR :: new (((self . bits >> 9) & 0x0f) as u8) }
#[doc = "Bits 13:16 - TAR"]
#[inline (always)] pub fn tar (& self) -> TarR { TarR :: new (((self . bits >> 13) & 0x0f) as u8) }
#[doc = "Bits 17:19 - ECCPS"]
#[inline (always)] pub fn eccps (& self) -> EccpsR { EccpsR :: new (((self . bits >> 17) & 7) as u8) } } impl W {
#[doc = "Bit 1 - PWAITEN"]
#[inline (always)] pub fn pwaiten (& mut self) -> PwaitenW < '_ , Pcr4Spec > { PwaitenW :: new (self , 1) }
#[doc = "Bit 2 - PBKEN"]
#[inline (always)] pub fn pbken (& mut self) -> PbkenW < '_ , Pcr4Spec > { PbkenW :: new (self , 2) }
#[doc = "Bit 3 - PTYP"]
#[inline (always)] pub fn ptyp (& mut self) -> PtypW < '_ , Pcr4Spec > { PtypW :: new (self , 3) }
#[doc = "Bits 4:5 - PWID"]
#[inline (always)] pub fn pwid (& mut self) -> PwidW < '_ , Pcr4Spec > { PwidW :: new (self , 4) }
#[doc = "Bit 6 - ECCEN"]
#[inline (always)] pub fn eccen (& mut self) -> EccenW < '_ , Pcr4Spec > { EccenW :: new (self , 6) }
#[doc = "Bits 9:12 - TCLR"]
#[inline (always)] pub fn tclr (& mut self) -> TclrW < '_ , Pcr4Spec > { TclrW :: new (self , 9) }
#[doc = "Bits 13:16 - TAR"]
#[inline (always)] pub fn tar (& mut self) -> TarW < '_ , Pcr4Spec > { TarW :: new (self , 13) }
#[doc = "Bits 17:19 - ECCPS"]
#[inline (always)] pub fn eccps (& mut self) -> EccpsW < '_ , Pcr4Spec > { EccpsW :: new (self , 17) } }
#[doc = "PC Card/NAND Flash control register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`pcr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pcr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Pcr4Spec ; impl crate :: RegisterSpec for Pcr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`pcr4::R`](R) reader structure"] impl crate :: Readable for Pcr4Spec { }
#[doc = "`write(|w| ..)` method takes [`pcr4::W`](W) writer structure"] impl crate :: Writable for Pcr4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PCR4 to value 0x18"] impl crate :: Resettable for Pcr4Spec { const RESET_VALUE : u32 = 0x18 ; } }
#[doc = "SR4 (rw) register accessor: FIFO status and interrupt register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`sr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr4`] module"]
#[doc (alias = "SR4")] pub type Sr4 = crate :: Reg < sr4 :: Sr4Spec > ;
#[doc = "FIFO status and interrupt register 4"] pub mod sr4 {
#[doc = "Register `SR4` reader"] pub type R = crate :: R < Sr4Spec > ;
#[doc = "Register `SR4` writer"] pub type W = crate :: W < Sr4Spec > ;
#[doc = "Field `IRS` reader - IRS"] pub type IrsR = crate :: BitReader ;
#[doc = "Field `IRS` writer - IRS"] pub type IrsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ILS` reader - ILS"] pub type IlsR = crate :: BitReader ;
#[doc = "Field `ILS` writer - ILS"] pub type IlsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IFS` reader - IFS"] pub type IfsR = crate :: BitReader ;
#[doc = "Field `IFS` writer - IFS"] pub type IfsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IREN` reader - IREN"] pub type IrenR = crate :: BitReader ;
#[doc = "Field `IREN` writer - IREN"] pub type IrenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ILEN` reader - ILEN"] pub type IlenR = crate :: BitReader ;
#[doc = "Field `ILEN` writer - ILEN"] pub type IlenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IFEN` reader - IFEN"] pub type IfenR = crate :: BitReader ;
#[doc = "Field `IFEN` writer - IFEN"] pub type IfenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FEMPT` reader - FEMPT"] pub type FemptR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - IRS"]
#[inline (always)] pub fn irs (& self) -> IrsR { IrsR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - ILS"]
#[inline (always)] pub fn ils (& self) -> IlsR { IlsR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - IFS"]
#[inline (always)] pub fn ifs (& self) -> IfsR { IfsR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - IREN"]
#[inline (always)] pub fn iren (& self) -> IrenR { IrenR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - ILEN"]
#[inline (always)] pub fn ilen (& self) -> IlenR { IlenR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - IFEN"]
#[inline (always)] pub fn ifen (& self) -> IfenR { IfenR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - FEMPT"]
#[inline (always)] pub fn fempt (& self) -> FemptR { FemptR :: new (((self . bits >> 6) & 1) != 0) } } impl W {
#[doc = "Bit 0 - IRS"]
#[inline (always)] pub fn irs (& mut self) -> IrsW < '_ , Sr4Spec > { IrsW :: new (self , 0) }
#[doc = "Bit 1 - ILS"]
#[inline (always)] pub fn ils (& mut self) -> IlsW < '_ , Sr4Spec > { IlsW :: new (self , 1) }
#[doc = "Bit 2 - IFS"]
#[inline (always)] pub fn ifs (& mut self) -> IfsW < '_ , Sr4Spec > { IfsW :: new (self , 2) }
#[doc = "Bit 3 - IREN"]
#[inline (always)] pub fn iren (& mut self) -> IrenW < '_ , Sr4Spec > { IrenW :: new (self , 3) }
#[doc = "Bit 4 - ILEN"]
#[inline (always)] pub fn ilen (& mut self) -> IlenW < '_ , Sr4Spec > { IlenW :: new (self , 4) }
#[doc = "Bit 5 - IFEN"]
#[inline (always)] pub fn ifen (& mut self) -> IfenW < '_ , Sr4Spec > { IfenW :: new (self , 5) } }
#[doc = "FIFO status and interrupt register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`sr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Sr4Spec ; impl crate :: RegisterSpec for Sr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr4::R`](R) reader structure"] impl crate :: Readable for Sr4Spec { }
#[doc = "`write(|w| ..)` method takes [`sr4::W`](W) writer structure"] impl crate :: Writable for Sr4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR4 to value 0x40"] impl crate :: Resettable for Sr4Spec { const RESET_VALUE : u32 = 0x40 ; } }
#[doc = "PMEM4 (rw) register accessor: Common memory space timing register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`pmem4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pmem4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pmem4`] module"]
#[doc (alias = "PMEM4")] pub type Pmem4 = crate :: Reg < pmem4 :: Pmem4Spec > ;
#[doc = "Common memory space timing register 4"] pub mod pmem4 {
#[doc = "Register `PMEM4` reader"] pub type R = crate :: R < Pmem4Spec > ;
#[doc = "Register `PMEM4` writer"] pub type W = crate :: W < Pmem4Spec > ;
#[doc = "Field `MEMSETx` reader - MEMSETx"] pub type MemsetxR = crate :: FieldReader ;
#[doc = "Field `MEMSETx` writer - MEMSETx"] pub type MemsetxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `MEMWAITx` reader - MEMWAITx"] pub type MemwaitxR = crate :: FieldReader ;
#[doc = "Field `MEMWAITx` writer - MEMWAITx"] pub type MemwaitxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `MEMHOLDx` reader - MEMHOLDx"] pub type MemholdxR = crate :: FieldReader ;
#[doc = "Field `MEMHOLDx` writer - MEMHOLDx"] pub type MemholdxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `MEMHIZx` reader - MEMHIZx"] pub type MemhizxR = crate :: FieldReader ;
#[doc = "Field `MEMHIZx` writer - MEMHIZx"] pub type MemhizxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - MEMSETx"]
#[inline (always)] pub fn memsetx (& self) -> MemsetxR { MemsetxR :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - MEMWAITx"]
#[inline (always)] pub fn memwaitx (& self) -> MemwaitxR { MemwaitxR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - MEMHOLDx"]
#[inline (always)] pub fn memholdx (& self) -> MemholdxR { MemholdxR :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - MEMHIZx"]
#[inline (always)] pub fn memhizx (& self) -> MemhizxR { MemhizxR :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - MEMSETx"]
#[inline (always)] pub fn memsetx (& mut self) -> MemsetxW < '_ , Pmem4Spec > { MemsetxW :: new (self , 0) }
#[doc = "Bits 8:15 - MEMWAITx"]
#[inline (always)] pub fn memwaitx (& mut self) -> MemwaitxW < '_ , Pmem4Spec > { MemwaitxW :: new (self , 8) }
#[doc = "Bits 16:23 - MEMHOLDx"]
#[inline (always)] pub fn memholdx (& mut self) -> MemholdxW < '_ , Pmem4Spec > { MemholdxW :: new (self , 16) }
#[doc = "Bits 24:31 - MEMHIZx"]
#[inline (always)] pub fn memhizx (& mut self) -> MemhizxW < '_ , Pmem4Spec > { MemhizxW :: new (self , 24) } }
#[doc = "Common memory space timing register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`pmem4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pmem4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Pmem4Spec ; impl crate :: RegisterSpec for Pmem4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`pmem4::R`](R) reader structure"] impl crate :: Readable for Pmem4Spec { }
#[doc = "`write(|w| ..)` method takes [`pmem4::W`](W) writer structure"] impl crate :: Writable for Pmem4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PMEM4 to value 0xfcfc_fcfc"] impl crate :: Resettable for Pmem4Spec { const RESET_VALUE : u32 = 0xfcfc_fcfc ; } }
#[doc = "PATT4 (rw) register accessor: Attribute memory space timing register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`patt4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`patt4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@patt4`] module"]
#[doc (alias = "PATT4")] pub type Patt4 = crate :: Reg < patt4 :: Patt4Spec > ;
#[doc = "Attribute memory space timing register 4"] pub mod patt4 {
#[doc = "Register `PATT4` reader"] pub type R = crate :: R < Patt4Spec > ;
#[doc = "Register `PATT4` writer"] pub type W = crate :: W < Patt4Spec > ;
#[doc = "Field `ATTSETx` reader - ATTSETx"] pub type AttsetxR = crate :: FieldReader ;
#[doc = "Field `ATTSETx` writer - ATTSETx"] pub type AttsetxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `ATTWAITx` reader - ATTWAITx"] pub type AttwaitxR = crate :: FieldReader ;
#[doc = "Field `ATTWAITx` writer - ATTWAITx"] pub type AttwaitxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `ATTHOLDx` reader - ATTHOLDx"] pub type AttholdxR = crate :: FieldReader ;
#[doc = "Field `ATTHOLDx` writer - ATTHOLDx"] pub type AttholdxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `ATTHIZx` reader - ATTHIZx"] pub type AtthizxR = crate :: FieldReader ;
#[doc = "Field `ATTHIZx` writer - ATTHIZx"] pub type AtthizxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - ATTSETx"]
#[inline (always)] pub fn attsetx (& self) -> AttsetxR { AttsetxR :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - ATTWAITx"]
#[inline (always)] pub fn attwaitx (& self) -> AttwaitxR { AttwaitxR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - ATTHOLDx"]
#[inline (always)] pub fn attholdx (& self) -> AttholdxR { AttholdxR :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - ATTHIZx"]
#[inline (always)] pub fn atthizx (& self) -> AtthizxR { AtthizxR :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - ATTSETx"]
#[inline (always)] pub fn attsetx (& mut self) -> AttsetxW < '_ , Patt4Spec > { AttsetxW :: new (self , 0) }
#[doc = "Bits 8:15 - ATTWAITx"]
#[inline (always)] pub fn attwaitx (& mut self) -> AttwaitxW < '_ , Patt4Spec > { AttwaitxW :: new (self , 8) }
#[doc = "Bits 16:23 - ATTHOLDx"]
#[inline (always)] pub fn attholdx (& mut self) -> AttholdxW < '_ , Patt4Spec > { AttholdxW :: new (self , 16) }
#[doc = "Bits 24:31 - ATTHIZx"]
#[inline (always)] pub fn atthizx (& mut self) -> AtthizxW < '_ , Patt4Spec > { AtthizxW :: new (self , 24) } }
#[doc = "Attribute memory space timing register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`patt4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`patt4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Patt4Spec ; impl crate :: RegisterSpec for Patt4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`patt4::R`](R) reader structure"] impl crate :: Readable for Patt4Spec { }
#[doc = "`write(|w| ..)` method takes [`patt4::W`](W) writer structure"] impl crate :: Writable for Patt4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PATT4 to value 0xfcfc_fcfc"] impl crate :: Resettable for Patt4Spec { const RESET_VALUE : u32 = 0xfcfc_fcfc ; } }
#[doc = "PIO4 (rw) register accessor: I/O space timing register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`pio4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pio4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pio4`] module"]
#[doc (alias = "PIO4")] pub type Pio4 = crate :: Reg < pio4 :: Pio4Spec > ;
#[doc = "I/O space timing register 4"] pub mod pio4 {
#[doc = "Register `PIO4` reader"] pub type R = crate :: R < Pio4Spec > ;
#[doc = "Register `PIO4` writer"] pub type W = crate :: W < Pio4Spec > ;
#[doc = "Field `IOSETx` reader - IOSETx"] pub type IosetxR = crate :: FieldReader ;
#[doc = "Field `IOSETx` writer - IOSETx"] pub type IosetxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `IOWAITx` reader - IOWAITx"] pub type IowaitxR = crate :: FieldReader ;
#[doc = "Field `IOWAITx` writer - IOWAITx"] pub type IowaitxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `IOHOLDx` reader - IOHOLDx"] pub type IoholdxR = crate :: FieldReader ;
#[doc = "Field `IOHOLDx` writer - IOHOLDx"] pub type IoholdxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `IOHIZx` reader - IOHIZx"] pub type IohizxR = crate :: FieldReader ;
#[doc = "Field `IOHIZx` writer - IOHIZx"] pub type IohizxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - IOSETx"]
#[inline (always)] pub fn iosetx (& self) -> IosetxR { IosetxR :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - IOWAITx"]
#[inline (always)] pub fn iowaitx (& self) -> IowaitxR { IowaitxR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - IOHOLDx"]
#[inline (always)] pub fn ioholdx (& self) -> IoholdxR { IoholdxR :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - IOHIZx"]
#[inline (always)] pub fn iohizx (& self) -> IohizxR { IohizxR :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - IOSETx"]
#[inline (always)] pub fn iosetx (& mut self) -> IosetxW < '_ , Pio4Spec > { IosetxW :: new (self , 0) }
#[doc = "Bits 8:15 - IOWAITx"]
#[inline (always)] pub fn iowaitx (& mut self) -> IowaitxW < '_ , Pio4Spec > { IowaitxW :: new (self , 8) }
#[doc = "Bits 16:23 - IOHOLDx"]
#[inline (always)] pub fn ioholdx (& mut self) -> IoholdxW < '_ , Pio4Spec > { IoholdxW :: new (self , 16) }
#[doc = "Bits 24:31 - IOHIZx"]
#[inline (always)] pub fn iohizx (& mut self) -> IohizxW < '_ , Pio4Spec > { IohizxW :: new (self , 24) } }
#[doc = "I/O space timing register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`pio4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pio4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Pio4Spec ; impl crate :: RegisterSpec for Pio4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`pio4::R`](R) reader structure"] impl crate :: Readable for Pio4Spec { }
#[doc = "`write(|w| ..)` method takes [`pio4::W`](W) writer structure"] impl crate :: Writable for Pio4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PIO4 to value 0xfcfc_fcfc"] impl crate :: Resettable for Pio4Spec { const RESET_VALUE : u32 = 0xfcfc_fcfc ; } }
#[doc = "BWTR1 (rw) register accessor: SRAM/NOR-Flash write timing registers 1\n\nYou can [`read`](crate::Reg::read) this register and get [`bwtr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bwtr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bwtr1`] module"]
#[doc (alias = "BWTR1")] pub type Bwtr1 = crate :: Reg < bwtr1 :: Bwtr1Spec > ;
#[doc = "SRAM/NOR-Flash write timing registers 1"] pub mod bwtr1 {
#[doc = "Register `BWTR1` reader"] pub type R = crate :: R < Bwtr1Spec > ;
#[doc = "Register `BWTR1` writer"] pub type W = crate :: W < Bwtr1Spec > ;
#[doc = "Field `ADDSET` reader - ADDSET"] pub type AddsetR = crate :: FieldReader ;
#[doc = "Field `ADDSET` writer - ADDSET"] pub type AddsetW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ADDHLD` reader - ADDHLD"] pub type AddhldR = crate :: FieldReader ;
#[doc = "Field `ADDHLD` writer - ADDHLD"] pub type AddhldW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATAST` reader - DATAST"] pub type DatastR = crate :: FieldReader ;
#[doc = "Field `DATAST` writer - DATAST"] pub type DatastW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `CLKDIV` reader - CLKDIV"] pub type ClkdivR = crate :: FieldReader ;
#[doc = "Field `CLKDIV` writer - CLKDIV"] pub type ClkdivW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATLAT` reader - DATLAT"] pub type DatlatR = crate :: FieldReader ;
#[doc = "Field `DATLAT` writer - DATLAT"] pub type DatlatW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ACCMOD` reader - ACCMOD"] pub type AccmodR = crate :: FieldReader ;
#[doc = "Field `ACCMOD` writer - ACCMOD"] pub type AccmodW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& self) -> AddsetR { AddsetR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& self) -> AddhldR { AddhldR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& self) -> DatastR { DatastR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& self) -> ClkdivR { ClkdivR :: new (((self . bits >> 20) & 0x0f) as u8) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& self) -> DatlatR { DatlatR :: new (((self . bits >> 24) & 0x0f) as u8) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& self) -> AccmodR { AccmodR :: new (((self . bits >> 28) & 3) as u8) } } impl W {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& mut self) -> AddsetW < '_ , Bwtr1Spec > { AddsetW :: new (self , 0) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& mut self) -> AddhldW < '_ , Bwtr1Spec > { AddhldW :: new (self , 4) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& mut self) -> DatastW < '_ , Bwtr1Spec > { DatastW :: new (self , 8) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& mut self) -> ClkdivW < '_ , Bwtr1Spec > { ClkdivW :: new (self , 20) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& mut self) -> DatlatW < '_ , Bwtr1Spec > { DatlatW :: new (self , 24) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& mut self) -> AccmodW < '_ , Bwtr1Spec > { AccmodW :: new (self , 28) } }
#[doc = "SRAM/NOR-Flash write timing registers 1\n\nYou can [`read`](crate::Reg::read) this register and get [`bwtr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bwtr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Bwtr1Spec ; impl crate :: RegisterSpec for Bwtr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`bwtr1::R`](R) reader structure"] impl crate :: Readable for Bwtr1Spec { }
#[doc = "`write(|w| ..)` method takes [`bwtr1::W`](W) writer structure"] impl crate :: Writable for Bwtr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BWTR1 to value 0x0fff_ffff"] impl crate :: Resettable for Bwtr1Spec { const RESET_VALUE : u32 = 0x0fff_ffff ; } }
#[doc = "BWTR2 (rw) register accessor: SRAM/NOR-Flash write timing registers 2\n\nYou can [`read`](crate::Reg::read) this register and get [`bwtr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bwtr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bwtr2`] module"]
#[doc (alias = "BWTR2")] pub type Bwtr2 = crate :: Reg < bwtr2 :: Bwtr2Spec > ;
#[doc = "SRAM/NOR-Flash write timing registers 2"] pub mod bwtr2 {
#[doc = "Register `BWTR2` reader"] pub type R = crate :: R < Bwtr2Spec > ;
#[doc = "Register `BWTR2` writer"] pub type W = crate :: W < Bwtr2Spec > ;
#[doc = "Field `ADDSET` reader - ADDSET"] pub type AddsetR = crate :: FieldReader ;
#[doc = "Field `ADDSET` writer - ADDSET"] pub type AddsetW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ADDHLD` reader - ADDHLD"] pub type AddhldR = crate :: FieldReader ;
#[doc = "Field `ADDHLD` writer - ADDHLD"] pub type AddhldW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATAST` reader - DATAST"] pub type DatastR = crate :: FieldReader ;
#[doc = "Field `DATAST` writer - DATAST"] pub type DatastW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `CLKDIV` reader - CLKDIV"] pub type ClkdivR = crate :: FieldReader ;
#[doc = "Field `CLKDIV` writer - CLKDIV"] pub type ClkdivW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATLAT` reader - DATLAT"] pub type DatlatR = crate :: FieldReader ;
#[doc = "Field `DATLAT` writer - DATLAT"] pub type DatlatW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ACCMOD` reader - ACCMOD"] pub type AccmodR = crate :: FieldReader ;
#[doc = "Field `ACCMOD` writer - ACCMOD"] pub type AccmodW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& self) -> AddsetR { AddsetR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& self) -> AddhldR { AddhldR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& self) -> DatastR { DatastR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& self) -> ClkdivR { ClkdivR :: new (((self . bits >> 20) & 0x0f) as u8) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& self) -> DatlatR { DatlatR :: new (((self . bits >> 24) & 0x0f) as u8) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& self) -> AccmodR { AccmodR :: new (((self . bits >> 28) & 3) as u8) } } impl W {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& mut self) -> AddsetW < '_ , Bwtr2Spec > { AddsetW :: new (self , 0) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& mut self) -> AddhldW < '_ , Bwtr2Spec > { AddhldW :: new (self , 4) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& mut self) -> DatastW < '_ , Bwtr2Spec > { DatastW :: new (self , 8) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& mut self) -> ClkdivW < '_ , Bwtr2Spec > { ClkdivW :: new (self , 20) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& mut self) -> DatlatW < '_ , Bwtr2Spec > { DatlatW :: new (self , 24) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& mut self) -> AccmodW < '_ , Bwtr2Spec > { AccmodW :: new (self , 28) } }
#[doc = "SRAM/NOR-Flash write timing registers 2\n\nYou can [`read`](crate::Reg::read) this register and get [`bwtr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bwtr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Bwtr2Spec ; impl crate :: RegisterSpec for Bwtr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`bwtr2::R`](R) reader structure"] impl crate :: Readable for Bwtr2Spec { }
#[doc = "`write(|w| ..)` method takes [`bwtr2::W`](W) writer structure"] impl crate :: Writable for Bwtr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BWTR2 to value 0x0fff_ffff"] impl crate :: Resettable for Bwtr2Spec { const RESET_VALUE : u32 = 0x0fff_ffff ; } }
#[doc = "BWTR3 (rw) register accessor: SRAM/NOR-Flash write timing registers 3\n\nYou can [`read`](crate::Reg::read) this register and get [`bwtr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bwtr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bwtr3`] module"]
#[doc (alias = "BWTR3")] pub type Bwtr3 = crate :: Reg < bwtr3 :: Bwtr3Spec > ;
#[doc = "SRAM/NOR-Flash write timing registers 3"] pub mod bwtr3 {
#[doc = "Register `BWTR3` reader"] pub type R = crate :: R < Bwtr3Spec > ;
#[doc = "Register `BWTR3` writer"] pub type W = crate :: W < Bwtr3Spec > ;
#[doc = "Field `ADDSET` reader - ADDSET"] pub type AddsetR = crate :: FieldReader ;
#[doc = "Field `ADDSET` writer - ADDSET"] pub type AddsetW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ADDHLD` reader - ADDHLD"] pub type AddhldR = crate :: FieldReader ;
#[doc = "Field `ADDHLD` writer - ADDHLD"] pub type AddhldW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATAST` reader - DATAST"] pub type DatastR = crate :: FieldReader ;
#[doc = "Field `DATAST` writer - DATAST"] pub type DatastW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `CLKDIV` reader - CLKDIV"] pub type ClkdivR = crate :: FieldReader ;
#[doc = "Field `CLKDIV` writer - CLKDIV"] pub type ClkdivW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATLAT` reader - DATLAT"] pub type DatlatR = crate :: FieldReader ;
#[doc = "Field `DATLAT` writer - DATLAT"] pub type DatlatW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ACCMOD` reader - ACCMOD"] pub type AccmodR = crate :: FieldReader ;
#[doc = "Field `ACCMOD` writer - ACCMOD"] pub type AccmodW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& self) -> AddsetR { AddsetR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& self) -> AddhldR { AddhldR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& self) -> DatastR { DatastR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& self) -> ClkdivR { ClkdivR :: new (((self . bits >> 20) & 0x0f) as u8) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& self) -> DatlatR { DatlatR :: new (((self . bits >> 24) & 0x0f) as u8) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& self) -> AccmodR { AccmodR :: new (((self . bits >> 28) & 3) as u8) } } impl W {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& mut self) -> AddsetW < '_ , Bwtr3Spec > { AddsetW :: new (self , 0) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& mut self) -> AddhldW < '_ , Bwtr3Spec > { AddhldW :: new (self , 4) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& mut self) -> DatastW < '_ , Bwtr3Spec > { DatastW :: new (self , 8) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& mut self) -> ClkdivW < '_ , Bwtr3Spec > { ClkdivW :: new (self , 20) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& mut self) -> DatlatW < '_ , Bwtr3Spec > { DatlatW :: new (self , 24) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& mut self) -> AccmodW < '_ , Bwtr3Spec > { AccmodW :: new (self , 28) } }
#[doc = "SRAM/NOR-Flash write timing registers 3\n\nYou can [`read`](crate::Reg::read) this register and get [`bwtr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bwtr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Bwtr3Spec ; impl crate :: RegisterSpec for Bwtr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`bwtr3::R`](R) reader structure"] impl crate :: Readable for Bwtr3Spec { }
#[doc = "`write(|w| ..)` method takes [`bwtr3::W`](W) writer structure"] impl crate :: Writable for Bwtr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BWTR3 to value 0x0fff_ffff"] impl crate :: Resettable for Bwtr3Spec { const RESET_VALUE : u32 = 0x0fff_ffff ; } }
#[doc = "BWTR4 (rw) register accessor: SRAM/NOR-Flash write timing registers 4\n\nYou can [`read`](crate::Reg::read) this register and get [`bwtr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bwtr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bwtr4`] module"]
#[doc (alias = "BWTR4")] pub type Bwtr4 = crate :: Reg < bwtr4 :: Bwtr4Spec > ;
#[doc = "SRAM/NOR-Flash write timing registers 4"] pub mod bwtr4 {
#[doc = "Register `BWTR4` reader"] pub type R = crate :: R < Bwtr4Spec > ;
#[doc = "Register `BWTR4` writer"] pub type W = crate :: W < Bwtr4Spec > ;
#[doc = "Field `ADDSET` reader - ADDSET"] pub type AddsetR = crate :: FieldReader ;
#[doc = "Field `ADDSET` writer - ADDSET"] pub type AddsetW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ADDHLD` reader - ADDHLD"] pub type AddhldR = crate :: FieldReader ;
#[doc = "Field `ADDHLD` writer - ADDHLD"] pub type AddhldW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATAST` reader - DATAST"] pub type DatastR = crate :: FieldReader ;
#[doc = "Field `DATAST` writer - DATAST"] pub type DatastW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `CLKDIV` reader - CLKDIV"] pub type ClkdivR = crate :: FieldReader ;
#[doc = "Field `CLKDIV` writer - CLKDIV"] pub type ClkdivW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DATLAT` reader - DATLAT"] pub type DatlatR = crate :: FieldReader ;
#[doc = "Field `DATLAT` writer - DATLAT"] pub type DatlatW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ACCMOD` reader - ACCMOD"] pub type AccmodR = crate :: FieldReader ;
#[doc = "Field `ACCMOD` writer - ACCMOD"] pub type AccmodW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& self) -> AddsetR { AddsetR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& self) -> AddhldR { AddhldR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& self) -> DatastR { DatastR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& self) -> ClkdivR { ClkdivR :: new (((self . bits >> 20) & 0x0f) as u8) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& self) -> DatlatR { DatlatR :: new (((self . bits >> 24) & 0x0f) as u8) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& self) -> AccmodR { AccmodR :: new (((self . bits >> 28) & 3) as u8) } } impl W {
#[doc = "Bits 0:3 - ADDSET"]
#[inline (always)] pub fn addset (& mut self) -> AddsetW < '_ , Bwtr4Spec > { AddsetW :: new (self , 0) }
#[doc = "Bits 4:7 - ADDHLD"]
#[inline (always)] pub fn addhld (& mut self) -> AddhldW < '_ , Bwtr4Spec > { AddhldW :: new (self , 4) }
#[doc = "Bits 8:15 - DATAST"]
#[inline (always)] pub fn datast (& mut self) -> DatastW < '_ , Bwtr4Spec > { DatastW :: new (self , 8) }
#[doc = "Bits 20:23 - CLKDIV"]
#[inline (always)] pub fn clkdiv (& mut self) -> ClkdivW < '_ , Bwtr4Spec > { ClkdivW :: new (self , 20) }
#[doc = "Bits 24:27 - DATLAT"]
#[inline (always)] pub fn datlat (& mut self) -> DatlatW < '_ , Bwtr4Spec > { DatlatW :: new (self , 24) }
#[doc = "Bits 28:29 - ACCMOD"]
#[inline (always)] pub fn accmod (& mut self) -> AccmodW < '_ , Bwtr4Spec > { AccmodW :: new (self , 28) } }
#[doc = "SRAM/NOR-Flash write timing registers 4\n\nYou can [`read`](crate::Reg::read) this register and get [`bwtr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bwtr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Bwtr4Spec ; impl crate :: RegisterSpec for Bwtr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`bwtr4::R`](R) reader structure"] impl crate :: Readable for Bwtr4Spec { }
#[doc = "`write(|w| ..)` method takes [`bwtr4::W`](W) writer structure"] impl crate :: Writable for Bwtr4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BWTR4 to value 0x0fff_ffff"] impl crate :: Resettable for Bwtr4Spec { const RESET_VALUE : u32 = 0x0fff_ffff ; } } }
#[doc = "Power control"] pub type Pwr = crate :: Periph < pwr :: RegisterBlock , 0x4000_7000 > ; impl core :: fmt :: Debug for Pwr { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Pwr") . finish () } }
#[doc = "Power control"] pub mod pwr {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { cr : Cr , csr : Csr , } impl RegisterBlock {
#[doc = "0x00 - Power control register (PWR_CR)"]
#[inline (always)] pub const fn cr (& self) -> & Cr { & self . cr }
#[doc = "0x04 - Power control register (PWR_CR)"]
#[inline (always)] pub const fn csr (& self) -> & Csr { & self . csr } }
#[doc = "CR (rw) register accessor: Power control register (PWR_CR)\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr`] module"]
#[doc (alias = "CR")] pub type Cr = crate :: Reg < cr :: CrSpec > ;
#[doc = "Power control register (PWR_CR)"] pub mod cr {
#[doc = "Register `CR` reader"] pub type R = crate :: R < CrSpec > ;
#[doc = "Register `CR` writer"] pub type W = crate :: W < CrSpec > ;
#[doc = "Field `LPDS` reader - Low Power Deep Sleep"] pub type LpdsR = crate :: BitReader ;
#[doc = "Field `LPDS` writer - Low Power Deep Sleep"] pub type LpdsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PDDS` reader - Power Down Deep Sleep"] pub type PddsR = crate :: BitReader ;
#[doc = "Field `PDDS` writer - Power Down Deep Sleep"] pub type PddsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CWUF` reader - Clear Wake-up Flag"] pub type CwufR = crate :: BitReader ;
#[doc = "Field `CWUF` writer - Clear Wake-up Flag"] pub type CwufW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CSBF` reader - Clear STANDBY Flag"] pub type CsbfR = crate :: BitReader ;
#[doc = "Field `CSBF` writer - Clear STANDBY Flag"] pub type CsbfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PVDE` reader - Power Voltage Detector Enable"] pub type PvdeR = crate :: BitReader ;
#[doc = "Field `PVDE` writer - Power Voltage Detector Enable"] pub type PvdeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PLS` reader - PVD Level Selection"] pub type PlsR = crate :: FieldReader ;
#[doc = "Field `PLS` writer - PVD Level Selection"] pub type PlsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `DBP` reader - Disable Backup Domain write protection"] pub type DbpR = crate :: BitReader ;
#[doc = "Field `DBP` writer - Disable Backup Domain write protection"] pub type DbpW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Low Power Deep Sleep"]
#[inline (always)] pub fn lpds (& self) -> LpdsR { LpdsR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Power Down Deep Sleep"]
#[inline (always)] pub fn pdds (& self) -> PddsR { PddsR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Clear Wake-up Flag"]
#[inline (always)] pub fn cwuf (& self) -> CwufR { CwufR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Clear STANDBY Flag"]
#[inline (always)] pub fn csbf (& self) -> CsbfR { CsbfR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Power Voltage Detector Enable"]
#[inline (always)] pub fn pvde (& self) -> PvdeR { PvdeR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bits 5:7 - PVD Level Selection"]
#[inline (always)] pub fn pls (& self) -> PlsR { PlsR :: new (((self . bits >> 5) & 7) as u8) }
#[doc = "Bit 8 - Disable Backup Domain write protection"]
#[inline (always)] pub fn dbp (& self) -> DbpR { DbpR :: new (((self . bits >> 8) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Low Power Deep Sleep"]
#[inline (always)] pub fn lpds (& mut self) -> LpdsW < '_ , CrSpec > { LpdsW :: new (self , 0) }
#[doc = "Bit 1 - Power Down Deep Sleep"]
#[inline (always)] pub fn pdds (& mut self) -> PddsW < '_ , CrSpec > { PddsW :: new (self , 1) }
#[doc = "Bit 2 - Clear Wake-up Flag"]
#[inline (always)] pub fn cwuf (& mut self) -> CwufW < '_ , CrSpec > { CwufW :: new (self , 2) }
#[doc = "Bit 3 - Clear STANDBY Flag"]
#[inline (always)] pub fn csbf (& mut self) -> CsbfW < '_ , CrSpec > { CsbfW :: new (self , 3) }
#[doc = "Bit 4 - Power Voltage Detector Enable"]
#[inline (always)] pub fn pvde (& mut self) -> PvdeW < '_ , CrSpec > { PvdeW :: new (self , 4) }
#[doc = "Bits 5:7 - PVD Level Selection"]
#[inline (always)] pub fn pls (& mut self) -> PlsW < '_ , CrSpec > { PlsW :: new (self , 5) }
#[doc = "Bit 8 - Disable Backup Domain write protection"]
#[inline (always)] pub fn dbp (& mut self) -> DbpW < '_ , CrSpec > { DbpW :: new (self , 8) } }
#[doc = "Power control register (PWR_CR)\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CrSpec ; impl crate :: RegisterSpec for CrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr::R`](R) reader structure"] impl crate :: Readable for CrSpec { }
#[doc = "`write(|w| ..)` method takes [`cr::W`](W) writer structure"] impl crate :: Writable for CrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR to value 0"] impl crate :: Resettable for CrSpec { } }
#[doc = "CSR (rw) register accessor: Power control register (PWR_CR)\n\nYou can [`read`](crate::Reg::read) this register and get [`csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`csr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@csr`] module"]
#[doc (alias = "CSR")] pub type Csr = crate :: Reg < csr :: CsrSpec > ;
#[doc = "Power control register (PWR_CR)"] pub mod csr {
#[doc = "Register `CSR` reader"] pub type R = crate :: R < CsrSpec > ;
#[doc = "Register `CSR` writer"] pub type W = crate :: W < CsrSpec > ;
#[doc = "Field `WUF` reader - Wake-Up Flag"] pub type WufR = crate :: BitReader ;
#[doc = "Field `SBF` reader - STANDBY Flag"] pub type SbfR = crate :: BitReader ;
#[doc = "Field `PVDO` reader - PVD Output"] pub type PvdoR = crate :: BitReader ;
#[doc = "Field `EWUP` reader - Enable WKUP pin"] pub type EwupR = crate :: BitReader ;
#[doc = "Field `EWUP` writer - Enable WKUP pin"] pub type EwupW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Wake-Up Flag"]
#[inline (always)] pub fn wuf (& self) -> WufR { WufR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - STANDBY Flag"]
#[inline (always)] pub fn sbf (& self) -> SbfR { SbfR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - PVD Output"]
#[inline (always)] pub fn pvdo (& self) -> PvdoR { PvdoR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 8 - Enable WKUP pin"]
#[inline (always)] pub fn ewup (& self) -> EwupR { EwupR :: new (((self . bits >> 8) & 1) != 0) } } impl W {
#[doc = "Bit 8 - Enable WKUP pin"]
#[inline (always)] pub fn ewup (& mut self) -> EwupW < '_ , CsrSpec > { EwupW :: new (self , 8) } }
#[doc = "Power control register (PWR_CR)\n\nYou can [`read`](crate::Reg::read) this register and get [`csr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`csr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CsrSpec ; impl crate :: RegisterSpec for CsrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`csr::R`](R) reader structure"] impl crate :: Readable for CsrSpec { }
#[doc = "`write(|w| ..)` method takes [`csr::W`](W) writer structure"] impl crate :: Writable for CsrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CSR to value 0"] impl crate :: Resettable for CsrSpec { } } }
#[doc = "Reset and clock control"] pub type Rcc = crate :: Periph < rcc :: RegisterBlock , 0x4002_1000 > ; impl core :: fmt :: Debug for Rcc { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Rcc") . finish () } }
#[doc = "Reset and clock control"] pub mod rcc {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { cr : Cr , cfgr : Cfgr , cir : Cir , apb2rstr : Apb2rstr , apb1rstr : Apb1rstr , ahbenr : Ahbenr , apb2enr : Apb2enr , apb1enr : Apb1enr , bdcr : Bdcr , csr : Csr , } impl RegisterBlock {
#[doc = "0x00 - Clock control register"]
#[inline (always)] pub const fn cr (& self) -> & Cr { & self . cr }
#[doc = "0x04 - Clock configuration register (RCC_CFGR)"]
#[inline (always)] pub const fn cfgr (& self) -> & Cfgr { & self . cfgr }
#[doc = "0x08 - Clock interrupt register (RCC_CIR)"]
#[inline (always)] pub const fn cir (& self) -> & Cir { & self . cir }
#[doc = "0x0c - APB2 peripheral reset register (RCC_APB2RSTR)"]
#[inline (always)] pub const fn apb2rstr (& self) -> & Apb2rstr { & self . apb2rstr }
#[doc = "0x10 - APB1 peripheral reset register (RCC_APB1RSTR)"]
#[inline (always)] pub const fn apb1rstr (& self) -> & Apb1rstr { & self . apb1rstr }
#[doc = "0x14 - AHB Peripheral Clock enable register (RCC_AHBENR)"]
#[inline (always)] pub const fn ahbenr (& self) -> & Ahbenr { & self . ahbenr }
#[doc = "0x18 - APB2 peripheral clock enable register (RCC_APB2ENR)"]
#[inline (always)] pub const fn apb2enr (& self) -> & Apb2enr { & self . apb2enr }
#[doc = "0x1c - APB1 peripheral clock enable register (RCC_APB1ENR)"]
#[inline (always)] pub const fn apb1enr (& self) -> & Apb1enr { & self . apb1enr }
#[doc = "0x20 - Backup domain control register (RCC_BDCR)"]
#[inline (always)] pub const fn bdcr (& self) -> & Bdcr { & self . bdcr }
#[doc = "0x24 - Control/status register (RCC_CSR)"]
#[inline (always)] pub const fn csr (& self) -> & Csr { & self . csr } }
#[doc = "CR (rw) register accessor: Clock control register\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr`] module"]
#[doc (alias = "CR")] pub type Cr = crate :: Reg < cr :: CrSpec > ;
#[doc = "Clock control register"] pub mod cr {
#[doc = "Register `CR` reader"] pub type R = crate :: R < CrSpec > ;
#[doc = "Register `CR` writer"] pub type W = crate :: W < CrSpec > ;
#[doc = "Field `HSION` reader - Internal High Speed clock enable"] pub type HsionR = crate :: BitReader ;
#[doc = "Field `HSION` writer - Internal High Speed clock enable"] pub type HsionW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HSIRDY` reader - Internal High Speed clock ready flag"] pub type HsirdyR = crate :: BitReader ;
#[doc = "Field `HSITRIM` reader - Internal High Speed clock trimming"] pub type HsitrimR = crate :: FieldReader ;
#[doc = "Field `HSITRIM` writer - Internal High Speed clock trimming"] pub type HsitrimW < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `HSICAL` reader - Internal High Speed clock Calibration"] pub type HsicalR = crate :: FieldReader ;
#[doc = "Field `HSEON` reader - External High Speed clock enable"] pub type HseonR = crate :: BitReader ;
#[doc = "Field `HSEON` writer - External High Speed clock enable"] pub type HseonW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HSERDY` reader - External High Speed clock ready flag"] pub type HserdyR = crate :: BitReader ;
#[doc = "Field `HSEBYP` reader - External High Speed clock Bypass"] pub type HsebypR = crate :: BitReader ;
#[doc = "Field `HSEBYP` writer - External High Speed clock Bypass"] pub type HsebypW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CSSON` reader - Clock Security System enable"] pub type CssonR = crate :: BitReader ;
#[doc = "Field `CSSON` writer - Clock Security System enable"] pub type CssonW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PLLON` reader - PLL enable"] pub type PllonR = crate :: BitReader ;
#[doc = "Field `PLLON` writer - PLL enable"] pub type PllonW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PLLRDY` reader - PLL clock ready flag"] pub type PllrdyR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - Internal High Speed clock enable"]
#[inline (always)] pub fn hsion (& self) -> HsionR { HsionR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Internal High Speed clock ready flag"]
#[inline (always)] pub fn hsirdy (& self) -> HsirdyR { HsirdyR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bits 3:7 - Internal High Speed clock trimming"]
#[inline (always)] pub fn hsitrim (& self) -> HsitrimR { HsitrimR :: new (((self . bits >> 3) & 0x1f) as u8) }
#[doc = "Bits 8:15 - Internal High Speed clock Calibration"]
#[inline (always)] pub fn hsical (& self) -> HsicalR { HsicalR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bit 16 - External High Speed clock enable"]
#[inline (always)] pub fn hseon (& self) -> HseonR { HseonR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - External High Speed clock ready flag"]
#[inline (always)] pub fn hserdy (& self) -> HserdyR { HserdyR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - External High Speed clock Bypass"]
#[inline (always)] pub fn hsebyp (& self) -> HsebypR { HsebypR :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Clock Security System enable"]
#[inline (always)] pub fn csson (& self) -> CssonR { CssonR :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 24 - PLL enable"]
#[inline (always)] pub fn pllon (& self) -> PllonR { PllonR :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - PLL clock ready flag"]
#[inline (always)] pub fn pllrdy (& self) -> PllrdyR { PllrdyR :: new (((self . bits >> 25) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Internal High Speed clock enable"]
#[inline (always)] pub fn hsion (& mut self) -> HsionW < '_ , CrSpec > { HsionW :: new (self , 0) }
#[doc = "Bits 3:7 - Internal High Speed clock trimming"]
#[inline (always)] pub fn hsitrim (& mut self) -> HsitrimW < '_ , CrSpec > { HsitrimW :: new (self , 3) }
#[doc = "Bit 16 - External High Speed clock enable"]
#[inline (always)] pub fn hseon (& mut self) -> HseonW < '_ , CrSpec > { HseonW :: new (self , 16) }
#[doc = "Bit 18 - External High Speed clock Bypass"]
#[inline (always)] pub fn hsebyp (& mut self) -> HsebypW < '_ , CrSpec > { HsebypW :: new (self , 18) }
#[doc = "Bit 19 - Clock Security System enable"]
#[inline (always)] pub fn csson (& mut self) -> CssonW < '_ , CrSpec > { CssonW :: new (self , 19) }
#[doc = "Bit 24 - PLL enable"]
#[inline (always)] pub fn pllon (& mut self) -> PllonW < '_ , CrSpec > { PllonW :: new (self , 24) } }
#[doc = "Clock control register\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CrSpec ; impl crate :: RegisterSpec for CrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr::R`](R) reader structure"] impl crate :: Readable for CrSpec { }
#[doc = "`write(|w| ..)` method takes [`cr::W`](W) writer structure"] impl crate :: Writable for CrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR to value 0x83"] impl crate :: Resettable for CrSpec { const RESET_VALUE : u32 = 0x83 ; } }
#[doc = "CFGR (rw) register accessor: Clock configuration register (RCC_CFGR)\n\nYou can [`read`](crate::Reg::read) this register and get [`cfgr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cfgr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cfgr`] module"]
#[doc (alias = "CFGR")] pub type Cfgr = crate :: Reg < cfgr :: CfgrSpec > ;
#[doc = "Clock configuration register (RCC_CFGR)"] pub mod cfgr {
#[doc = "Register `CFGR` reader"] pub type R = crate :: R < CfgrSpec > ;
#[doc = "Register `CFGR` writer"] pub type W = crate :: W < CfgrSpec > ;
#[doc = "Field `SW` reader - System clock Switch"] pub type SwR = crate :: FieldReader ;
#[doc = "Field `SW` writer - System clock Switch"] pub type SwW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `SWS` reader - System Clock Switch Status"] pub type SwsR = crate :: FieldReader ;
#[doc = "Field `HPRE` reader - AHB prescaler"] pub type HpreR = crate :: FieldReader ;
#[doc = "Field `HPRE` writer - AHB prescaler"] pub type HpreW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `PPRE1` reader - APB Low speed prescaler (APB1)"] pub type Ppre1R = crate :: FieldReader ;
#[doc = "Field `PPRE1` writer - APB Low speed prescaler (APB1)"] pub type Ppre1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `PPRE2` reader - APB High speed prescaler (APB2)"] pub type Ppre2R = crate :: FieldReader ;
#[doc = "Field `PPRE2` writer - APB High speed prescaler (APB2)"] pub type Ppre2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `ADCPRE` reader - ADC prescaler"] pub type AdcpreR = crate :: FieldReader ;
#[doc = "Field `ADCPRE` writer - ADC prescaler"] pub type AdcpreW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `PLLSRC` reader - PLL entry clock source"] pub type PllsrcR = crate :: BitReader ;
#[doc = "Field `PLLSRC` writer - PLL entry clock source"] pub type PllsrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PLLXTPRE` reader - HSE divider for PLL entry"] pub type PllxtpreR = crate :: BitReader ;
#[doc = "Field `PLLXTPRE` writer - HSE divider for PLL entry"] pub type PllxtpreW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PLLMUL` reader - PLL Multiplication Factor"] pub type PllmulR = crate :: FieldReader ;
#[doc = "Field `PLLMUL` writer - PLL Multiplication Factor"] pub type PllmulW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `OTGFSPRE` reader - USB OTG FS prescaler"] pub type OtgfspreR = crate :: BitReader ;
#[doc = "Field `OTGFSPRE` writer - USB OTG FS prescaler"] pub type OtgfspreW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MCO` reader - Microcontroller clock output"] pub type McoR = crate :: FieldReader ;
#[doc = "Field `MCO` writer - Microcontroller clock output"] pub type McoW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bits 0:1 - System clock Switch"]
#[inline (always)] pub fn sw (& self) -> SwR { SwR :: new ((self . bits & 3) as u8) }
#[doc = "Bits 2:3 - System Clock Switch Status"]
#[inline (always)] pub fn sws (& self) -> SwsR { SwsR :: new (((self . bits >> 2) & 3) as u8) }
#[doc = "Bits 4:7 - AHB prescaler"]
#[inline (always)] pub fn hpre (& self) -> HpreR { HpreR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:10 - APB Low speed prescaler (APB1)"]
#[inline (always)] pub fn ppre1 (& self) -> Ppre1R { Ppre1R :: new (((self . bits >> 8) & 7) as u8) }
#[doc = "Bits 11:13 - APB High speed prescaler (APB2)"]
#[inline (always)] pub fn ppre2 (& self) -> Ppre2R { Ppre2R :: new (((self . bits >> 11) & 7) as u8) }
#[doc = "Bits 14:15 - ADC prescaler"]
#[inline (always)] pub fn adcpre (& self) -> AdcpreR { AdcpreR :: new (((self . bits >> 14) & 3) as u8) }
#[doc = "Bit 16 - PLL entry clock source"]
#[inline (always)] pub fn pllsrc (& self) -> PllsrcR { PllsrcR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - HSE divider for PLL entry"]
#[inline (always)] pub fn pllxtpre (& self) -> PllxtpreR { PllxtpreR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:21 - PLL Multiplication Factor"]
#[inline (always)] pub fn pllmul (& self) -> PllmulR { PllmulR :: new (((self . bits >> 18) & 0x0f) as u8) }
#[doc = "Bit 22 - USB OTG FS prescaler"]
#[inline (always)] pub fn otgfspre (& self) -> OtgfspreR { OtgfspreR :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bits 24:26 - Microcontroller clock output"]
#[inline (always)] pub fn mco (& self) -> McoR { McoR :: new (((self . bits >> 24) & 7) as u8) } } impl W {
#[doc = "Bits 0:1 - System clock Switch"]
#[inline (always)] pub fn sw (& mut self) -> SwW < '_ , CfgrSpec > { SwW :: new (self , 0) }
#[doc = "Bits 4:7 - AHB prescaler"]
#[inline (always)] pub fn hpre (& mut self) -> HpreW < '_ , CfgrSpec > { HpreW :: new (self , 4) }
#[doc = "Bits 8:10 - APB Low speed prescaler (APB1)"]
#[inline (always)] pub fn ppre1 (& mut self) -> Ppre1W < '_ , CfgrSpec > { Ppre1W :: new (self , 8) }
#[doc = "Bits 11:13 - APB High speed prescaler (APB2)"]
#[inline (always)] pub fn ppre2 (& mut self) -> Ppre2W < '_ , CfgrSpec > { Ppre2W :: new (self , 11) }
#[doc = "Bits 14:15 - ADC prescaler"]
#[inline (always)] pub fn adcpre (& mut self) -> AdcpreW < '_ , CfgrSpec > { AdcpreW :: new (self , 14) }
#[doc = "Bit 16 - PLL entry clock source"]
#[inline (always)] pub fn pllsrc (& mut self) -> PllsrcW < '_ , CfgrSpec > { PllsrcW :: new (self , 16) }
#[doc = "Bit 17 - HSE divider for PLL entry"]
#[inline (always)] pub fn pllxtpre (& mut self) -> PllxtpreW < '_ , CfgrSpec > { PllxtpreW :: new (self , 17) }
#[doc = "Bits 18:21 - PLL Multiplication Factor"]
#[inline (always)] pub fn pllmul (& mut self) -> PllmulW < '_ , CfgrSpec > { PllmulW :: new (self , 18) }
#[doc = "Bit 22 - USB OTG FS prescaler"]
#[inline (always)] pub fn otgfspre (& mut self) -> OtgfspreW < '_ , CfgrSpec > { OtgfspreW :: new (self , 22) }
#[doc = "Bits 24:26 - Microcontroller clock output"]
#[inline (always)] pub fn mco (& mut self) -> McoW < '_ , CfgrSpec > { McoW :: new (self , 24) } }
#[doc = "Clock configuration register (RCC_CFGR)\n\nYou can [`read`](crate::Reg::read) this register and get [`cfgr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cfgr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CfgrSpec ; impl crate :: RegisterSpec for CfgrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cfgr::R`](R) reader structure"] impl crate :: Readable for CfgrSpec { }
#[doc = "`write(|w| ..)` method takes [`cfgr::W`](W) writer structure"] impl crate :: Writable for CfgrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CFGR to value 0"] impl crate :: Resettable for CfgrSpec { } }
#[doc = "CIR (rw) register accessor: Clock interrupt register (RCC_CIR)\n\nYou can [`read`](crate::Reg::read) this register and get [`cir::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cir::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cir`] module"]
#[doc (alias = "CIR")] pub type Cir = crate :: Reg < cir :: CirSpec > ;
#[doc = "Clock interrupt register (RCC_CIR)"] pub mod cir {
#[doc = "Register `CIR` reader"] pub type R = crate :: R < CirSpec > ;
#[doc = "Register `CIR` writer"] pub type W = crate :: W < CirSpec > ;
#[doc = "Field `LSIRDYF` reader - LSI Ready Interrupt flag"] pub type LsirdyfR = crate :: BitReader ;
#[doc = "Field `LSERDYF` reader - LSE Ready Interrupt flag"] pub type LserdyfR = crate :: BitReader ;
#[doc = "Field `HSIRDYF` reader - HSI Ready Interrupt flag"] pub type HsirdyfR = crate :: BitReader ;
#[doc = "Field `HSERDYF` reader - HSE Ready Interrupt flag"] pub type HserdyfR = crate :: BitReader ;
#[doc = "Field `PLLRDYF` reader - PLL Ready Interrupt flag"] pub type PllrdyfR = crate :: BitReader ;
#[doc = "Field `CSSF` reader - Clock Security System Interrupt flag"] pub type CssfR = crate :: BitReader ;
#[doc = "Field `LSIRDYIE` reader - LSI Ready Interrupt Enable"] pub type LsirdyieR = crate :: BitReader ;
#[doc = "Field `LSIRDYIE` writer - LSI Ready Interrupt Enable"] pub type LsirdyieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LSERDYIE` reader - LSE Ready Interrupt Enable"] pub type LserdyieR = crate :: BitReader ;
#[doc = "Field `LSERDYIE` writer - LSE Ready Interrupt Enable"] pub type LserdyieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HSIRDYIE` reader - HSI Ready Interrupt Enable"] pub type HsirdyieR = crate :: BitReader ;
#[doc = "Field `HSIRDYIE` writer - HSI Ready Interrupt Enable"] pub type HsirdyieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HSERDYIE` reader - HSE Ready Interrupt Enable"] pub type HserdyieR = crate :: BitReader ;
#[doc = "Field `HSERDYIE` writer - HSE Ready Interrupt Enable"] pub type HserdyieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PLLRDYIE` reader - PLL Ready Interrupt Enable"] pub type PllrdyieR = crate :: BitReader ;
#[doc = "Field `PLLRDYIE` writer - PLL Ready Interrupt Enable"] pub type PllrdyieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LSIRDYC` writer - LSI Ready Interrupt Clear"] pub type LsirdycW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LSERDYC` writer - LSE Ready Interrupt Clear"] pub type LserdycW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HSIRDYC` writer - HSI Ready Interrupt Clear"] pub type HsirdycW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HSERDYC` writer - HSE Ready Interrupt Clear"] pub type HserdycW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PLLRDYC` writer - PLL Ready Interrupt Clear"] pub type PllrdycW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CSSC` writer - Clock security system interrupt clear"] pub type CsscW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - LSI Ready Interrupt flag"]
#[inline (always)] pub fn lsirdyf (& self) -> LsirdyfR { LsirdyfR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - LSE Ready Interrupt flag"]
#[inline (always)] pub fn lserdyf (& self) -> LserdyfR { LserdyfR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - HSI Ready Interrupt flag"]
#[inline (always)] pub fn hsirdyf (& self) -> HsirdyfR { HsirdyfR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - HSE Ready Interrupt flag"]
#[inline (always)] pub fn hserdyf (& self) -> HserdyfR { HserdyfR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - PLL Ready Interrupt flag"]
#[inline (always)] pub fn pllrdyf (& self) -> PllrdyfR { PllrdyfR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 7 - Clock Security System Interrupt flag"]
#[inline (always)] pub fn cssf (& self) -> CssfR { CssfR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - LSI Ready Interrupt Enable"]
#[inline (always)] pub fn lsirdyie (& self) -> LsirdyieR { LsirdyieR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - LSE Ready Interrupt Enable"]
#[inline (always)] pub fn lserdyie (& self) -> LserdyieR { LserdyieR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - HSI Ready Interrupt Enable"]
#[inline (always)] pub fn hsirdyie (& self) -> HsirdyieR { HsirdyieR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - HSE Ready Interrupt Enable"]
#[inline (always)] pub fn hserdyie (& self) -> HserdyieR { HserdyieR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - PLL Ready Interrupt Enable"]
#[inline (always)] pub fn pllrdyie (& self) -> PllrdyieR { PllrdyieR :: new (((self . bits >> 12) & 1) != 0) } } impl W {
#[doc = "Bit 8 - LSI Ready Interrupt Enable"]
#[inline (always)] pub fn lsirdyie (& mut self) -> LsirdyieW < '_ , CirSpec > { LsirdyieW :: new (self , 8) }
#[doc = "Bit 9 - LSE Ready Interrupt Enable"]
#[inline (always)] pub fn lserdyie (& mut self) -> LserdyieW < '_ , CirSpec > { LserdyieW :: new (self , 9) }
#[doc = "Bit 10 - HSI Ready Interrupt Enable"]
#[inline (always)] pub fn hsirdyie (& mut self) -> HsirdyieW < '_ , CirSpec > { HsirdyieW :: new (self , 10) }
#[doc = "Bit 11 - HSE Ready Interrupt Enable"]
#[inline (always)] pub fn hserdyie (& mut self) -> HserdyieW < '_ , CirSpec > { HserdyieW :: new (self , 11) }
#[doc = "Bit 12 - PLL Ready Interrupt Enable"]
#[inline (always)] pub fn pllrdyie (& mut self) -> PllrdyieW < '_ , CirSpec > { PllrdyieW :: new (self , 12) }
#[doc = "Bit 16 - LSI Ready Interrupt Clear"]
#[inline (always)] pub fn lsirdyc (& mut self) -> LsirdycW < '_ , CirSpec > { LsirdycW :: new (self , 16) }
#[doc = "Bit 17 - LSE Ready Interrupt Clear"]
#[inline (always)] pub fn lserdyc (& mut self) -> LserdycW < '_ , CirSpec > { LserdycW :: new (self , 17) }
#[doc = "Bit 18 - HSI Ready Interrupt Clear"]
#[inline (always)] pub fn hsirdyc (& mut self) -> HsirdycW < '_ , CirSpec > { HsirdycW :: new (self , 18) }
#[doc = "Bit 19 - HSE Ready Interrupt Clear"]
#[inline (always)] pub fn hserdyc (& mut self) -> HserdycW < '_ , CirSpec > { HserdycW :: new (self , 19) }
#[doc = "Bit 20 - PLL Ready Interrupt Clear"]
#[inline (always)] pub fn pllrdyc (& mut self) -> PllrdycW < '_ , CirSpec > { PllrdycW :: new (self , 20) }
#[doc = "Bit 23 - Clock security system interrupt clear"]
#[inline (always)] pub fn cssc (& mut self) -> CsscW < '_ , CirSpec > { CsscW :: new (self , 23) } }
#[doc = "Clock interrupt register (RCC_CIR)\n\nYou can [`read`](crate::Reg::read) this register and get [`cir::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cir::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CirSpec ; impl crate :: RegisterSpec for CirSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cir::R`](R) reader structure"] impl crate :: Readable for CirSpec { }
#[doc = "`write(|w| ..)` method takes [`cir::W`](W) writer structure"] impl crate :: Writable for CirSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CIR to value 0"] impl crate :: Resettable for CirSpec { } }
#[doc = "APB2RSTR (rw) register accessor: APB2 peripheral reset register (RCC_APB2RSTR)\n\nYou can [`read`](crate::Reg::read) this register and get [`apb2rstr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apb2rstr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@apb2rstr`] module"]
#[doc (alias = "APB2RSTR")] pub type Apb2rstr = crate :: Reg < apb2rstr :: Apb2rstrSpec > ;
#[doc = "APB2 peripheral reset register (RCC_APB2RSTR)"] pub mod apb2rstr {
#[doc = "Register `APB2RSTR` reader"] pub type R = crate :: R < Apb2rstrSpec > ;
#[doc = "Register `APB2RSTR` writer"] pub type W = crate :: W < Apb2rstrSpec > ;
#[doc = "Field `AFIORST` reader - Alternate function I/O reset"] pub type AfiorstR = crate :: BitReader ;
#[doc = "Field `AFIORST` writer - Alternate function I/O reset"] pub type AfiorstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IOPARST` reader - IO port A reset"] pub type IoparstR = crate :: BitReader ;
#[doc = "Field `IOPARST` writer - IO port A reset"] pub type IoparstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IOPBRST` reader - IO port B reset"] pub type IopbrstR = crate :: BitReader ;
#[doc = "Field `IOPBRST` writer - IO port B reset"] pub type IopbrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IOPCRST` reader - IO port C reset"] pub type IopcrstR = crate :: BitReader ;
#[doc = "Field `IOPCRST` writer - IO port C reset"] pub type IopcrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IOPDRST` reader - IO port D reset"] pub type IopdrstR = crate :: BitReader ;
#[doc = "Field `IOPDRST` writer - IO port D reset"] pub type IopdrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IOPERST` reader - IO port E reset"] pub type IoperstR = crate :: BitReader ;
#[doc = "Field `IOPERST` writer - IO port E reset"] pub type IoperstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IOPFRST` reader - IO port F reset"] pub type IopfrstR = crate :: BitReader ;
#[doc = "Field `IOPFRST` writer - IO port F reset"] pub type IopfrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IOPGRST` reader - IO port G reset"] pub type IopgrstR = crate :: BitReader ;
#[doc = "Field `IOPGRST` writer - IO port G reset"] pub type IopgrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ADC1RST` reader - ADC 1 interface reset"] pub type Adc1rstR = crate :: BitReader ;
#[doc = "Field `ADC1RST` writer - ADC 1 interface reset"] pub type Adc1rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ADC2RST` reader - ADC 2 interface reset"] pub type Adc2rstR = crate :: BitReader ;
#[doc = "Field `ADC2RST` writer - ADC 2 interface reset"] pub type Adc2rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM1RST` reader - TIM1 timer reset"] pub type Tim1rstR = crate :: BitReader ;
#[doc = "Field `TIM1RST` writer - TIM1 timer reset"] pub type Tim1rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SPI1RST` reader - SPI 1 reset"] pub type Spi1rstR = crate :: BitReader ;
#[doc = "Field `SPI1RST` writer - SPI 1 reset"] pub type Spi1rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM8RST` reader - TIM8 timer reset"] pub type Tim8rstR = crate :: BitReader ;
#[doc = "Field `TIM8RST` writer - TIM8 timer reset"] pub type Tim8rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USART1RST` reader - USART1 reset"] pub type Usart1rstR = crate :: BitReader ;
#[doc = "Field `USART1RST` writer - USART1 reset"] pub type Usart1rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ADC3RST` reader - ADC 3 interface reset"] pub type Adc3rstR = crate :: BitReader ;
#[doc = "Field `ADC3RST` writer - ADC 3 interface reset"] pub type Adc3rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM9RST` reader - TIM9 timer reset"] pub type Tim9rstR = crate :: BitReader ;
#[doc = "Field `TIM9RST` writer - TIM9 timer reset"] pub type Tim9rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM10RST` reader - TIM10 timer reset"] pub type Tim10rstR = crate :: BitReader ;
#[doc = "Field `TIM10RST` writer - TIM10 timer reset"] pub type Tim10rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM11RST` reader - TIM11 timer reset"] pub type Tim11rstR = crate :: BitReader ;
#[doc = "Field `TIM11RST` writer - TIM11 timer reset"] pub type Tim11rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Alternate function I/O reset"]
#[inline (always)] pub fn afiorst (& self) -> AfiorstR { AfiorstR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 2 - IO port A reset"]
#[inline (always)] pub fn ioparst (& self) -> IoparstR { IoparstR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - IO port B reset"]
#[inline (always)] pub fn iopbrst (& self) -> IopbrstR { IopbrstR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - IO port C reset"]
#[inline (always)] pub fn iopcrst (& self) -> IopcrstR { IopcrstR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - IO port D reset"]
#[inline (always)] pub fn iopdrst (& self) -> IopdrstR { IopdrstR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - IO port E reset"]
#[inline (always)] pub fn ioperst (& self) -> IoperstR { IoperstR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - IO port F reset"]
#[inline (always)] pub fn iopfrst (& self) -> IopfrstR { IopfrstR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - IO port G reset"]
#[inline (always)] pub fn iopgrst (& self) -> IopgrstR { IopgrstR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - ADC 1 interface reset"]
#[inline (always)] pub fn adc1rst (& self) -> Adc1rstR { Adc1rstR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - ADC 2 interface reset"]
#[inline (always)] pub fn adc2rst (& self) -> Adc2rstR { Adc2rstR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - TIM1 timer reset"]
#[inline (always)] pub fn tim1rst (& self) -> Tim1rstR { Tim1rstR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - SPI 1 reset"]
#[inline (always)] pub fn spi1rst (& self) -> Spi1rstR { Spi1rstR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - TIM8 timer reset"]
#[inline (always)] pub fn tim8rst (& self) -> Tim8rstR { Tim8rstR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - USART1 reset"]
#[inline (always)] pub fn usart1rst (& self) -> Usart1rstR { Usart1rstR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - ADC 3 interface reset"]
#[inline (always)] pub fn adc3rst (& self) -> Adc3rstR { Adc3rstR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 19 - TIM9 timer reset"]
#[inline (always)] pub fn tim9rst (& self) -> Tim9rstR { Tim9rstR :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - TIM10 timer reset"]
#[inline (always)] pub fn tim10rst (& self) -> Tim10rstR { Tim10rstR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - TIM11 timer reset"]
#[inline (always)] pub fn tim11rst (& self) -> Tim11rstR { Tim11rstR :: new (((self . bits >> 21) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Alternate function I/O reset"]
#[inline (always)] pub fn afiorst (& mut self) -> AfiorstW < '_ , Apb2rstrSpec > { AfiorstW :: new (self , 0) }
#[doc = "Bit 2 - IO port A reset"]
#[inline (always)] pub fn ioparst (& mut self) -> IoparstW < '_ , Apb2rstrSpec > { IoparstW :: new (self , 2) }
#[doc = "Bit 3 - IO port B reset"]
#[inline (always)] pub fn iopbrst (& mut self) -> IopbrstW < '_ , Apb2rstrSpec > { IopbrstW :: new (self , 3) }
#[doc = "Bit 4 - IO port C reset"]
#[inline (always)] pub fn iopcrst (& mut self) -> IopcrstW < '_ , Apb2rstrSpec > { IopcrstW :: new (self , 4) }
#[doc = "Bit 5 - IO port D reset"]
#[inline (always)] pub fn iopdrst (& mut self) -> IopdrstW < '_ , Apb2rstrSpec > { IopdrstW :: new (self , 5) }
#[doc = "Bit 6 - IO port E reset"]
#[inline (always)] pub fn ioperst (& mut self) -> IoperstW < '_ , Apb2rstrSpec > { IoperstW :: new (self , 6) }
#[doc = "Bit 7 - IO port F reset"]
#[inline (always)] pub fn iopfrst (& mut self) -> IopfrstW < '_ , Apb2rstrSpec > { IopfrstW :: new (self , 7) }
#[doc = "Bit 8 - IO port G reset"]
#[inline (always)] pub fn iopgrst (& mut self) -> IopgrstW < '_ , Apb2rstrSpec > { IopgrstW :: new (self , 8) }
#[doc = "Bit 9 - ADC 1 interface reset"]
#[inline (always)] pub fn adc1rst (& mut self) -> Adc1rstW < '_ , Apb2rstrSpec > { Adc1rstW :: new (self , 9) }
#[doc = "Bit 10 - ADC 2 interface reset"]
#[inline (always)] pub fn adc2rst (& mut self) -> Adc2rstW < '_ , Apb2rstrSpec > { Adc2rstW :: new (self , 10) }
#[doc = "Bit 11 - TIM1 timer reset"]
#[inline (always)] pub fn tim1rst (& mut self) -> Tim1rstW < '_ , Apb2rstrSpec > { Tim1rstW :: new (self , 11) }
#[doc = "Bit 12 - SPI 1 reset"]
#[inline (always)] pub fn spi1rst (& mut self) -> Spi1rstW < '_ , Apb2rstrSpec > { Spi1rstW :: new (self , 12) }
#[doc = "Bit 13 - TIM8 timer reset"]
#[inline (always)] pub fn tim8rst (& mut self) -> Tim8rstW < '_ , Apb2rstrSpec > { Tim8rstW :: new (self , 13) }
#[doc = "Bit 14 - USART1 reset"]
#[inline (always)] pub fn usart1rst (& mut self) -> Usart1rstW < '_ , Apb2rstrSpec > { Usart1rstW :: new (self , 14) }
#[doc = "Bit 15 - ADC 3 interface reset"]
#[inline (always)] pub fn adc3rst (& mut self) -> Adc3rstW < '_ , Apb2rstrSpec > { Adc3rstW :: new (self , 15) }
#[doc = "Bit 19 - TIM9 timer reset"]
#[inline (always)] pub fn tim9rst (& mut self) -> Tim9rstW < '_ , Apb2rstrSpec > { Tim9rstW :: new (self , 19) }
#[doc = "Bit 20 - TIM10 timer reset"]
#[inline (always)] pub fn tim10rst (& mut self) -> Tim10rstW < '_ , Apb2rstrSpec > { Tim10rstW :: new (self , 20) }
#[doc = "Bit 21 - TIM11 timer reset"]
#[inline (always)] pub fn tim11rst (& mut self) -> Tim11rstW < '_ , Apb2rstrSpec > { Tim11rstW :: new (self , 21) } }
#[doc = "APB2 peripheral reset register (RCC_APB2RSTR)\n\nYou can [`read`](crate::Reg::read) this register and get [`apb2rstr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apb2rstr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Apb2rstrSpec ; impl crate :: RegisterSpec for Apb2rstrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`apb2rstr::R`](R) reader structure"] impl crate :: Readable for Apb2rstrSpec { }
#[doc = "`write(|w| ..)` method takes [`apb2rstr::W`](W) writer structure"] impl crate :: Writable for Apb2rstrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets APB2RSTR to value 0"] impl crate :: Resettable for Apb2rstrSpec { } }
#[doc = "APB1RSTR (rw) register accessor: APB1 peripheral reset register (RCC_APB1RSTR)\n\nYou can [`read`](crate::Reg::read) this register and get [`apb1rstr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apb1rstr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@apb1rstr`] module"]
#[doc (alias = "APB1RSTR")] pub type Apb1rstr = crate :: Reg < apb1rstr :: Apb1rstrSpec > ;
#[doc = "APB1 peripheral reset register (RCC_APB1RSTR)"] pub mod apb1rstr {
#[doc = "Register `APB1RSTR` reader"] pub type R = crate :: R < Apb1rstrSpec > ;
#[doc = "Register `APB1RSTR` writer"] pub type W = crate :: W < Apb1rstrSpec > ;
#[doc = "Field `TIM2RST` reader - Timer 2 reset"] pub type Tim2rstR = crate :: BitReader ;
#[doc = "Field `TIM2RST` writer - Timer 2 reset"] pub type Tim2rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM3RST` reader - Timer 3 reset"] pub type Tim3rstR = crate :: BitReader ;
#[doc = "Field `TIM3RST` writer - Timer 3 reset"] pub type Tim3rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM4RST` reader - Timer 4 reset"] pub type Tim4rstR = crate :: BitReader ;
#[doc = "Field `TIM4RST` writer - Timer 4 reset"] pub type Tim4rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM5RST` reader - Timer 5 reset"] pub type Tim5rstR = crate :: BitReader ;
#[doc = "Field `TIM5RST` writer - Timer 5 reset"] pub type Tim5rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM6RST` reader - Timer 6 reset"] pub type Tim6rstR = crate :: BitReader ;
#[doc = "Field `TIM6RST` writer - Timer 6 reset"] pub type Tim6rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM7RST` reader - Timer 7 reset"] pub type Tim7rstR = crate :: BitReader ;
#[doc = "Field `TIM7RST` writer - Timer 7 reset"] pub type Tim7rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM12RST` reader - Timer 12 reset"] pub type Tim12rstR = crate :: BitReader ;
#[doc = "Field `TIM12RST` writer - Timer 12 reset"] pub type Tim12rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM13RST` reader - Timer 13 reset"] pub type Tim13rstR = crate :: BitReader ;
#[doc = "Field `TIM13RST` writer - Timer 13 reset"] pub type Tim13rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM14RST` reader - Timer 14 reset"] pub type Tim14rstR = crate :: BitReader ;
#[doc = "Field `TIM14RST` writer - Timer 14 reset"] pub type Tim14rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WWDGRST` reader - Window watchdog reset"] pub type WwdgrstR = crate :: BitReader ;
#[doc = "Field `WWDGRST` writer - Window watchdog reset"] pub type WwdgrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SPI2RST` reader - SPI2 reset"] pub type Spi2rstR = crate :: BitReader ;
#[doc = "Field `SPI2RST` writer - SPI2 reset"] pub type Spi2rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SPI3RST` reader - SPI3 reset"] pub type Spi3rstR = crate :: BitReader ;
#[doc = "Field `SPI3RST` writer - SPI3 reset"] pub type Spi3rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USART2RST` reader - USART 2 reset"] pub type Usart2rstR = crate :: BitReader ;
#[doc = "Field `USART2RST` writer - USART 2 reset"] pub type Usart2rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USART3RST` reader - USART 3 reset"] pub type Usart3rstR = crate :: BitReader ;
#[doc = "Field `USART3RST` writer - USART 3 reset"] pub type Usart3rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UART4RST` reader - UART 4 reset"] pub type Uart4rstR = crate :: BitReader ;
#[doc = "Field `UART4RST` writer - UART 4 reset"] pub type Uart4rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UART5RST` reader - UART 5 reset"] pub type Uart5rstR = crate :: BitReader ;
#[doc = "Field `UART5RST` writer - UART 5 reset"] pub type Uart5rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `I2C1RST` reader - I2C1 reset"] pub type I2c1rstR = crate :: BitReader ;
#[doc = "Field `I2C1RST` writer - I2C1 reset"] pub type I2c1rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `I2C2RST` reader - I2C2 reset"] pub type I2c2rstR = crate :: BitReader ;
#[doc = "Field `I2C2RST` writer - I2C2 reset"] pub type I2c2rstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USBRST` reader - USB reset"] pub type UsbrstR = crate :: BitReader ;
#[doc = "Field `USBRST` writer - USB reset"] pub type UsbrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CANRST` reader - CAN reset"] pub type CanrstR = crate :: BitReader ;
#[doc = "Field `CANRST` writer - CAN reset"] pub type CanrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BKPRST` reader - Backup interface reset"] pub type BkprstR = crate :: BitReader ;
#[doc = "Field `BKPRST` writer - Backup interface reset"] pub type BkprstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PWRRST` reader - Power interface reset"] pub type PwrrstR = crate :: BitReader ;
#[doc = "Field `PWRRST` writer - Power interface reset"] pub type PwrrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DACRST` reader - DAC interface reset"] pub type DacrstR = crate :: BitReader ;
#[doc = "Field `DACRST` writer - DAC interface reset"] pub type DacrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Timer 2 reset"]
#[inline (always)] pub fn tim2rst (& self) -> Tim2rstR { Tim2rstR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Timer 3 reset"]
#[inline (always)] pub fn tim3rst (& self) -> Tim3rstR { Tim3rstR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Timer 4 reset"]
#[inline (always)] pub fn tim4rst (& self) -> Tim4rstR { Tim4rstR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Timer 5 reset"]
#[inline (always)] pub fn tim5rst (& self) -> Tim5rstR { Tim5rstR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Timer 6 reset"]
#[inline (always)] pub fn tim6rst (& self) -> Tim6rstR { Tim6rstR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Timer 7 reset"]
#[inline (always)] pub fn tim7rst (& self) -> Tim7rstR { Tim7rstR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Timer 12 reset"]
#[inline (always)] pub fn tim12rst (& self) -> Tim12rstR { Tim12rstR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Timer 13 reset"]
#[inline (always)] pub fn tim13rst (& self) -> Tim13rstR { Tim13rstR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Timer 14 reset"]
#[inline (always)] pub fn tim14rst (& self) -> Tim14rstR { Tim14rstR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 11 - Window watchdog reset"]
#[inline (always)] pub fn wwdgrst (& self) -> WwdgrstR { WwdgrstR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 14 - SPI2 reset"]
#[inline (always)] pub fn spi2rst (& self) -> Spi2rstR { Spi2rstR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - SPI3 reset"]
#[inline (always)] pub fn spi3rst (& self) -> Spi3rstR { Spi3rstR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 17 - USART 2 reset"]
#[inline (always)] pub fn usart2rst (& self) -> Usart2rstR { Usart2rstR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - USART 3 reset"]
#[inline (always)] pub fn usart3rst (& self) -> Usart3rstR { Usart3rstR :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - UART 4 reset"]
#[inline (always)] pub fn uart4rst (& self) -> Uart4rstR { Uart4rstR :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - UART 5 reset"]
#[inline (always)] pub fn uart5rst (& self) -> Uart5rstR { Uart5rstR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - I2C1 reset"]
#[inline (always)] pub fn i2c1rst (& self) -> I2c1rstR { I2c1rstR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - I2C2 reset"]
#[inline (always)] pub fn i2c2rst (& self) -> I2c2rstR { I2c2rstR :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - USB reset"]
#[inline (always)] pub fn usbrst (& self) -> UsbrstR { UsbrstR :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 25 - CAN reset"]
#[inline (always)] pub fn canrst (& self) -> CanrstR { CanrstR :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 27 - Backup interface reset"]
#[inline (always)] pub fn bkprst (& self) -> BkprstR { BkprstR :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Power interface reset"]
#[inline (always)] pub fn pwrrst (& self) -> PwrrstR { PwrrstR :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - DAC interface reset"]
#[inline (always)] pub fn dacrst (& self) -> DacrstR { DacrstR :: new (((self . bits >> 29) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Timer 2 reset"]
#[inline (always)] pub fn tim2rst (& mut self) -> Tim2rstW < '_ , Apb1rstrSpec > { Tim2rstW :: new (self , 0) }
#[doc = "Bit 1 - Timer 3 reset"]
#[inline (always)] pub fn tim3rst (& mut self) -> Tim3rstW < '_ , Apb1rstrSpec > { Tim3rstW :: new (self , 1) }
#[doc = "Bit 2 - Timer 4 reset"]
#[inline (always)] pub fn tim4rst (& mut self) -> Tim4rstW < '_ , Apb1rstrSpec > { Tim4rstW :: new (self , 2) }
#[doc = "Bit 3 - Timer 5 reset"]
#[inline (always)] pub fn tim5rst (& mut self) -> Tim5rstW < '_ , Apb1rstrSpec > { Tim5rstW :: new (self , 3) }
#[doc = "Bit 4 - Timer 6 reset"]
#[inline (always)] pub fn tim6rst (& mut self) -> Tim6rstW < '_ , Apb1rstrSpec > { Tim6rstW :: new (self , 4) }
#[doc = "Bit 5 - Timer 7 reset"]
#[inline (always)] pub fn tim7rst (& mut self) -> Tim7rstW < '_ , Apb1rstrSpec > { Tim7rstW :: new (self , 5) }
#[doc = "Bit 6 - Timer 12 reset"]
#[inline (always)] pub fn tim12rst (& mut self) -> Tim12rstW < '_ , Apb1rstrSpec > { Tim12rstW :: new (self , 6) }
#[doc = "Bit 7 - Timer 13 reset"]
#[inline (always)] pub fn tim13rst (& mut self) -> Tim13rstW < '_ , Apb1rstrSpec > { Tim13rstW :: new (self , 7) }
#[doc = "Bit 8 - Timer 14 reset"]
#[inline (always)] pub fn tim14rst (& mut self) -> Tim14rstW < '_ , Apb1rstrSpec > { Tim14rstW :: new (self , 8) }
#[doc = "Bit 11 - Window watchdog reset"]
#[inline (always)] pub fn wwdgrst (& mut self) -> WwdgrstW < '_ , Apb1rstrSpec > { WwdgrstW :: new (self , 11) }
#[doc = "Bit 14 - SPI2 reset"]
#[inline (always)] pub fn spi2rst (& mut self) -> Spi2rstW < '_ , Apb1rstrSpec > { Spi2rstW :: new (self , 14) }
#[doc = "Bit 15 - SPI3 reset"]
#[inline (always)] pub fn spi3rst (& mut self) -> Spi3rstW < '_ , Apb1rstrSpec > { Spi3rstW :: new (self , 15) }
#[doc = "Bit 17 - USART 2 reset"]
#[inline (always)] pub fn usart2rst (& mut self) -> Usart2rstW < '_ , Apb1rstrSpec > { Usart2rstW :: new (self , 17) }
#[doc = "Bit 18 - USART 3 reset"]
#[inline (always)] pub fn usart3rst (& mut self) -> Usart3rstW < '_ , Apb1rstrSpec > { Usart3rstW :: new (self , 18) }
#[doc = "Bit 19 - UART 4 reset"]
#[inline (always)] pub fn uart4rst (& mut self) -> Uart4rstW < '_ , Apb1rstrSpec > { Uart4rstW :: new (self , 19) }
#[doc = "Bit 20 - UART 5 reset"]
#[inline (always)] pub fn uart5rst (& mut self) -> Uart5rstW < '_ , Apb1rstrSpec > { Uart5rstW :: new (self , 20) }
#[doc = "Bit 21 - I2C1 reset"]
#[inline (always)] pub fn i2c1rst (& mut self) -> I2c1rstW < '_ , Apb1rstrSpec > { I2c1rstW :: new (self , 21) }
#[doc = "Bit 22 - I2C2 reset"]
#[inline (always)] pub fn i2c2rst (& mut self) -> I2c2rstW < '_ , Apb1rstrSpec > { I2c2rstW :: new (self , 22) }
#[doc = "Bit 23 - USB reset"]
#[inline (always)] pub fn usbrst (& mut self) -> UsbrstW < '_ , Apb1rstrSpec > { UsbrstW :: new (self , 23) }
#[doc = "Bit 25 - CAN reset"]
#[inline (always)] pub fn canrst (& mut self) -> CanrstW < '_ , Apb1rstrSpec > { CanrstW :: new (self , 25) }
#[doc = "Bit 27 - Backup interface reset"]
#[inline (always)] pub fn bkprst (& mut self) -> BkprstW < '_ , Apb1rstrSpec > { BkprstW :: new (self , 27) }
#[doc = "Bit 28 - Power interface reset"]
#[inline (always)] pub fn pwrrst (& mut self) -> PwrrstW < '_ , Apb1rstrSpec > { PwrrstW :: new (self , 28) }
#[doc = "Bit 29 - DAC interface reset"]
#[inline (always)] pub fn dacrst (& mut self) -> DacrstW < '_ , Apb1rstrSpec > { DacrstW :: new (self , 29) } }
#[doc = "APB1 peripheral reset register (RCC_APB1RSTR)\n\nYou can [`read`](crate::Reg::read) this register and get [`apb1rstr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apb1rstr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Apb1rstrSpec ; impl crate :: RegisterSpec for Apb1rstrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`apb1rstr::R`](R) reader structure"] impl crate :: Readable for Apb1rstrSpec { }
#[doc = "`write(|w| ..)` method takes [`apb1rstr::W`](W) writer structure"] impl crate :: Writable for Apb1rstrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets APB1RSTR to value 0"] impl crate :: Resettable for Apb1rstrSpec { } }
#[doc = "AHBENR (rw) register accessor: AHB Peripheral Clock enable register (RCC_AHBENR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ahbenr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ahbenr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ahbenr`] module"]
#[doc (alias = "AHBENR")] pub type Ahbenr = crate :: Reg < ahbenr :: AhbenrSpec > ;
#[doc = "AHB Peripheral Clock enable register (RCC_AHBENR)"] pub mod ahbenr {
#[doc = "Register `AHBENR` reader"] pub type R = crate :: R < AhbenrSpec > ;
#[doc = "Register `AHBENR` writer"] pub type W = crate :: W < AhbenrSpec > ;
#[doc = "Field `DMA1EN` reader - DMA1 clock enable"] pub type Dma1enR = crate :: BitReader ;
#[doc = "Field `DMA1EN` writer - DMA1 clock enable"] pub type Dma1enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DMA2EN` reader - DMA2 clock enable"] pub type Dma2enR = crate :: BitReader ;
#[doc = "Field `DMA2EN` writer - DMA2 clock enable"] pub type Dma2enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SRAMEN` reader - SRAM interface clock enable"] pub type SramenR = crate :: BitReader ;
#[doc = "Field `SRAMEN` writer - SRAM interface clock enable"] pub type SramenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FLITFEN` reader - FLITF clock enable"] pub type FlitfenR = crate :: BitReader ;
#[doc = "Field `FLITFEN` writer - FLITF clock enable"] pub type FlitfenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CRCEN` reader - CRC clock enable"] pub type CrcenR = crate :: BitReader ;
#[doc = "Field `CRCEN` writer - CRC clock enable"] pub type CrcenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSMCEN` reader - FSMC clock enable"] pub type FsmcenR = crate :: BitReader ;
#[doc = "Field `FSMCEN` writer - FSMC clock enable"] pub type FsmcenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SDIOEN` reader - SDIO clock enable"] pub type SdioenR = crate :: BitReader ;
#[doc = "Field `SDIOEN` writer - SDIO clock enable"] pub type SdioenW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - DMA1 clock enable"]
#[inline (always)] pub fn dma1en (& self) -> Dma1enR { Dma1enR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - DMA2 clock enable"]
#[inline (always)] pub fn dma2en (& self) -> Dma2enR { Dma2enR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - SRAM interface clock enable"]
#[inline (always)] pub fn sramen (& self) -> SramenR { SramenR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 4 - FLITF clock enable"]
#[inline (always)] pub fn flitfen (& self) -> FlitfenR { FlitfenR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 6 - CRC clock enable"]
#[inline (always)] pub fn crcen (& self) -> CrcenR { CrcenR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 8 - FSMC clock enable"]
#[inline (always)] pub fn fsmcen (& self) -> FsmcenR { FsmcenR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 10 - SDIO clock enable"]
#[inline (always)] pub fn sdioen (& self) -> SdioenR { SdioenR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - DMA1 clock enable"]
#[inline (always)] pub fn dma1en (& mut self) -> Dma1enW < '_ , AhbenrSpec > { Dma1enW :: new (self , 0) }
#[doc = "Bit 1 - DMA2 clock enable"]
#[inline (always)] pub fn dma2en (& mut self) -> Dma2enW < '_ , AhbenrSpec > { Dma2enW :: new (self , 1) }
#[doc = "Bit 2 - SRAM interface clock enable"]
#[inline (always)] pub fn sramen (& mut self) -> SramenW < '_ , AhbenrSpec > { SramenW :: new (self , 2) }
#[doc = "Bit 4 - FLITF clock enable"]
#[inline (always)] pub fn flitfen (& mut self) -> FlitfenW < '_ , AhbenrSpec > { FlitfenW :: new (self , 4) }
#[doc = "Bit 6 - CRC clock enable"]
#[inline (always)] pub fn crcen (& mut self) -> CrcenW < '_ , AhbenrSpec > { CrcenW :: new (self , 6) }
#[doc = "Bit 8 - FSMC clock enable"]
#[inline (always)] pub fn fsmcen (& mut self) -> FsmcenW < '_ , AhbenrSpec > { FsmcenW :: new (self , 8) }
#[doc = "Bit 10 - SDIO clock enable"]
#[inline (always)] pub fn sdioen (& mut self) -> SdioenW < '_ , AhbenrSpec > { SdioenW :: new (self , 10) } }
#[doc = "AHB Peripheral Clock enable register (RCC_AHBENR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ahbenr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ahbenr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct AhbenrSpec ; impl crate :: RegisterSpec for AhbenrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ahbenr::R`](R) reader structure"] impl crate :: Readable for AhbenrSpec { }
#[doc = "`write(|w| ..)` method takes [`ahbenr::W`](W) writer structure"] impl crate :: Writable for AhbenrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets AHBENR to value 0x14"] impl crate :: Resettable for AhbenrSpec { const RESET_VALUE : u32 = 0x14 ; } }
#[doc = "APB2ENR (rw) register accessor: APB2 peripheral clock enable register (RCC_APB2ENR)\n\nYou can [`read`](crate::Reg::read) this register and get [`apb2enr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apb2enr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@apb2enr`] module"]
#[doc (alias = "APB2ENR")] pub type Apb2enr = crate :: Reg < apb2enr :: Apb2enrSpec > ;
#[doc = "APB2 peripheral clock enable register (RCC_APB2ENR)"] pub mod apb2enr {
#[doc = "Register `APB2ENR` reader"] pub type R = crate :: R < Apb2enrSpec > ;
#[doc = "Register `APB2ENR` writer"] pub type W = crate :: W < Apb2enrSpec > ;
#[doc = "Field `AFIOEN` reader - Alternate function I/O clock enable"] pub type AfioenR = crate :: BitReader ;
#[doc = "Field `AFIOEN` writer - Alternate function I/O clock enable"] pub type AfioenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IOPAEN` reader - I/O port A clock enable"] pub type IopaenR = crate :: BitReader ;
#[doc = "Field `IOPAEN` writer - I/O port A clock enable"] pub type IopaenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IOPBEN` reader - I/O port B clock enable"] pub type IopbenR = crate :: BitReader ;
#[doc = "Field `IOPBEN` writer - I/O port B clock enable"] pub type IopbenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IOPCEN` reader - I/O port C clock enable"] pub type IopcenR = crate :: BitReader ;
#[doc = "Field `IOPCEN` writer - I/O port C clock enable"] pub type IopcenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IOPDEN` reader - I/O port D clock enable"] pub type IopdenR = crate :: BitReader ;
#[doc = "Field `IOPDEN` writer - I/O port D clock enable"] pub type IopdenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IOPEEN` reader - I/O port E clock enable"] pub type IopeenR = crate :: BitReader ;
#[doc = "Field `IOPEEN` writer - I/O port E clock enable"] pub type IopeenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IOPFEN` reader - I/O port F clock enable"] pub type IopfenR = crate :: BitReader ;
#[doc = "Field `IOPFEN` writer - I/O port F clock enable"] pub type IopfenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IOPGEN` reader - I/O port G clock enable"] pub type IopgenR = crate :: BitReader ;
#[doc = "Field `IOPGEN` writer - I/O port G clock enable"] pub type IopgenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ADC1EN` reader - ADC 1 interface clock enable"] pub type Adc1enR = crate :: BitReader ;
#[doc = "Field `ADC1EN` writer - ADC 1 interface clock enable"] pub type Adc1enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ADC2EN` reader - ADC 2 interface clock enable"] pub type Adc2enR = crate :: BitReader ;
#[doc = "Field `ADC2EN` writer - ADC 2 interface clock enable"] pub type Adc2enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM1EN` reader - TIM1 Timer clock enable"] pub type Tim1enR = crate :: BitReader ;
#[doc = "Field `TIM1EN` writer - TIM1 Timer clock enable"] pub type Tim1enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SPI1EN` reader - SPI 1 clock enable"] pub type Spi1enR = crate :: BitReader ;
#[doc = "Field `SPI1EN` writer - SPI 1 clock enable"] pub type Spi1enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM8EN` reader - TIM8 Timer clock enable"] pub type Tim8enR = crate :: BitReader ;
#[doc = "Field `TIM8EN` writer - TIM8 Timer clock enable"] pub type Tim8enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USART1EN` reader - USART1 clock enable"] pub type Usart1enR = crate :: BitReader ;
#[doc = "Field `USART1EN` writer - USART1 clock enable"] pub type Usart1enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ADC3EN` reader - ADC3 interface clock enable"] pub type Adc3enR = crate :: BitReader ;
#[doc = "Field `ADC3EN` writer - ADC3 interface clock enable"] pub type Adc3enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM9EN` reader - TIM9 Timer clock enable"] pub type Tim9enR = crate :: BitReader ;
#[doc = "Field `TIM9EN` writer - TIM9 Timer clock enable"] pub type Tim9enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM10EN` reader - TIM10 Timer clock enable"] pub type Tim10enR = crate :: BitReader ;
#[doc = "Field `TIM10EN` writer - TIM10 Timer clock enable"] pub type Tim10enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM11EN` reader - TIM11 Timer clock enable"] pub type Tim11enR = crate :: BitReader ;
#[doc = "Field `TIM11EN` writer - TIM11 Timer clock enable"] pub type Tim11enW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Alternate function I/O clock enable"]
#[inline (always)] pub fn afioen (& self) -> AfioenR { AfioenR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 2 - I/O port A clock enable"]
#[inline (always)] pub fn iopaen (& self) -> IopaenR { IopaenR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - I/O port B clock enable"]
#[inline (always)] pub fn iopben (& self) -> IopbenR { IopbenR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - I/O port C clock enable"]
#[inline (always)] pub fn iopcen (& self) -> IopcenR { IopcenR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - I/O port D clock enable"]
#[inline (always)] pub fn iopden (& self) -> IopdenR { IopdenR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - I/O port E clock enable"]
#[inline (always)] pub fn iopeen (& self) -> IopeenR { IopeenR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - I/O port F clock enable"]
#[inline (always)] pub fn iopfen (& self) -> IopfenR { IopfenR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - I/O port G clock enable"]
#[inline (always)] pub fn iopgen (& self) -> IopgenR { IopgenR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - ADC 1 interface clock enable"]
#[inline (always)] pub fn adc1en (& self) -> Adc1enR { Adc1enR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - ADC 2 interface clock enable"]
#[inline (always)] pub fn adc2en (& self) -> Adc2enR { Adc2enR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - TIM1 Timer clock enable"]
#[inline (always)] pub fn tim1en (& self) -> Tim1enR { Tim1enR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - SPI 1 clock enable"]
#[inline (always)] pub fn spi1en (& self) -> Spi1enR { Spi1enR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - TIM8 Timer clock enable"]
#[inline (always)] pub fn tim8en (& self) -> Tim8enR { Tim8enR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - USART1 clock enable"]
#[inline (always)] pub fn usart1en (& self) -> Usart1enR { Usart1enR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - ADC3 interface clock enable"]
#[inline (always)] pub fn adc3en (& self) -> Adc3enR { Adc3enR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 19 - TIM9 Timer clock enable"]
#[inline (always)] pub fn tim9en (& self) -> Tim9enR { Tim9enR :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - TIM10 Timer clock enable"]
#[inline (always)] pub fn tim10en (& self) -> Tim10enR { Tim10enR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - TIM11 Timer clock enable"]
#[inline (always)] pub fn tim11en (& self) -> Tim11enR { Tim11enR :: new (((self . bits >> 21) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Alternate function I/O clock enable"]
#[inline (always)] pub fn afioen (& mut self) -> AfioenW < '_ , Apb2enrSpec > { AfioenW :: new (self , 0) }
#[doc = "Bit 2 - I/O port A clock enable"]
#[inline (always)] pub fn iopaen (& mut self) -> IopaenW < '_ , Apb2enrSpec > { IopaenW :: new (self , 2) }
#[doc = "Bit 3 - I/O port B clock enable"]
#[inline (always)] pub fn iopben (& mut self) -> IopbenW < '_ , Apb2enrSpec > { IopbenW :: new (self , 3) }
#[doc = "Bit 4 - I/O port C clock enable"]
#[inline (always)] pub fn iopcen (& mut self) -> IopcenW < '_ , Apb2enrSpec > { IopcenW :: new (self , 4) }
#[doc = "Bit 5 - I/O port D clock enable"]
#[inline (always)] pub fn iopden (& mut self) -> IopdenW < '_ , Apb2enrSpec > { IopdenW :: new (self , 5) }
#[doc = "Bit 6 - I/O port E clock enable"]
#[inline (always)] pub fn iopeen (& mut self) -> IopeenW < '_ , Apb2enrSpec > { IopeenW :: new (self , 6) }
#[doc = "Bit 7 - I/O port F clock enable"]
#[inline (always)] pub fn iopfen (& mut self) -> IopfenW < '_ , Apb2enrSpec > { IopfenW :: new (self , 7) }
#[doc = "Bit 8 - I/O port G clock enable"]
#[inline (always)] pub fn iopgen (& mut self) -> IopgenW < '_ , Apb2enrSpec > { IopgenW :: new (self , 8) }
#[doc = "Bit 9 - ADC 1 interface clock enable"]
#[inline (always)] pub fn adc1en (& mut self) -> Adc1enW < '_ , Apb2enrSpec > { Adc1enW :: new (self , 9) }
#[doc = "Bit 10 - ADC 2 interface clock enable"]
#[inline (always)] pub fn adc2en (& mut self) -> Adc2enW < '_ , Apb2enrSpec > { Adc2enW :: new (self , 10) }
#[doc = "Bit 11 - TIM1 Timer clock enable"]
#[inline (always)] pub fn tim1en (& mut self) -> Tim1enW < '_ , Apb2enrSpec > { Tim1enW :: new (self , 11) }
#[doc = "Bit 12 - SPI 1 clock enable"]
#[inline (always)] pub fn spi1en (& mut self) -> Spi1enW < '_ , Apb2enrSpec > { Spi1enW :: new (self , 12) }
#[doc = "Bit 13 - TIM8 Timer clock enable"]
#[inline (always)] pub fn tim8en (& mut self) -> Tim8enW < '_ , Apb2enrSpec > { Tim8enW :: new (self , 13) }
#[doc = "Bit 14 - USART1 clock enable"]
#[inline (always)] pub fn usart1en (& mut self) -> Usart1enW < '_ , Apb2enrSpec > { Usart1enW :: new (self , 14) }
#[doc = "Bit 15 - ADC3 interface clock enable"]
#[inline (always)] pub fn adc3en (& mut self) -> Adc3enW < '_ , Apb2enrSpec > { Adc3enW :: new (self , 15) }
#[doc = "Bit 19 - TIM9 Timer clock enable"]
#[inline (always)] pub fn tim9en (& mut self) -> Tim9enW < '_ , Apb2enrSpec > { Tim9enW :: new (self , 19) }
#[doc = "Bit 20 - TIM10 Timer clock enable"]
#[inline (always)] pub fn tim10en (& mut self) -> Tim10enW < '_ , Apb2enrSpec > { Tim10enW :: new (self , 20) }
#[doc = "Bit 21 - TIM11 Timer clock enable"]
#[inline (always)] pub fn tim11en (& mut self) -> Tim11enW < '_ , Apb2enrSpec > { Tim11enW :: new (self , 21) } }
#[doc = "APB2 peripheral clock enable register (RCC_APB2ENR)\n\nYou can [`read`](crate::Reg::read) this register and get [`apb2enr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apb2enr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Apb2enrSpec ; impl crate :: RegisterSpec for Apb2enrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`apb2enr::R`](R) reader structure"] impl crate :: Readable for Apb2enrSpec { }
#[doc = "`write(|w| ..)` method takes [`apb2enr::W`](W) writer structure"] impl crate :: Writable for Apb2enrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets APB2ENR to value 0"] impl crate :: Resettable for Apb2enrSpec { } }
#[doc = "APB1ENR (rw) register accessor: APB1 peripheral clock enable register (RCC_APB1ENR)\n\nYou can [`read`](crate::Reg::read) this register and get [`apb1enr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apb1enr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@apb1enr`] module"]
#[doc (alias = "APB1ENR")] pub type Apb1enr = crate :: Reg < apb1enr :: Apb1enrSpec > ;
#[doc = "APB1 peripheral clock enable register (RCC_APB1ENR)"] pub mod apb1enr {
#[doc = "Register `APB1ENR` reader"] pub type R = crate :: R < Apb1enrSpec > ;
#[doc = "Register `APB1ENR` writer"] pub type W = crate :: W < Apb1enrSpec > ;
#[doc = "Field `TIM2EN` reader - Timer 2 clock enable"] pub type Tim2enR = crate :: BitReader ;
#[doc = "Field `TIM2EN` writer - Timer 2 clock enable"] pub type Tim2enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM3EN` reader - Timer 3 clock enable"] pub type Tim3enR = crate :: BitReader ;
#[doc = "Field `TIM3EN` writer - Timer 3 clock enable"] pub type Tim3enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM4EN` reader - Timer 4 clock enable"] pub type Tim4enR = crate :: BitReader ;
#[doc = "Field `TIM4EN` writer - Timer 4 clock enable"] pub type Tim4enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM5EN` reader - Timer 5 clock enable"] pub type Tim5enR = crate :: BitReader ;
#[doc = "Field `TIM5EN` writer - Timer 5 clock enable"] pub type Tim5enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM6EN` reader - Timer 6 clock enable"] pub type Tim6enR = crate :: BitReader ;
#[doc = "Field `TIM6EN` writer - Timer 6 clock enable"] pub type Tim6enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM7EN` reader - Timer 7 clock enable"] pub type Tim7enR = crate :: BitReader ;
#[doc = "Field `TIM7EN` writer - Timer 7 clock enable"] pub type Tim7enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM12EN` reader - Timer 12 clock enable"] pub type Tim12enR = crate :: BitReader ;
#[doc = "Field `TIM12EN` writer - Timer 12 clock enable"] pub type Tim12enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM13EN` reader - Timer 13 clock enable"] pub type Tim13enR = crate :: BitReader ;
#[doc = "Field `TIM13EN` writer - Timer 13 clock enable"] pub type Tim13enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM14EN` reader - Timer 14 clock enable"] pub type Tim14enR = crate :: BitReader ;
#[doc = "Field `TIM14EN` writer - Timer 14 clock enable"] pub type Tim14enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WWDGEN` reader - Window watchdog clock enable"] pub type WwdgenR = crate :: BitReader ;
#[doc = "Field `WWDGEN` writer - Window watchdog clock enable"] pub type WwdgenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SPI2EN` reader - SPI 2 clock enable"] pub type Spi2enR = crate :: BitReader ;
#[doc = "Field `SPI2EN` writer - SPI 2 clock enable"] pub type Spi2enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SPI3EN` reader - SPI 3 clock enable"] pub type Spi3enR = crate :: BitReader ;
#[doc = "Field `SPI3EN` writer - SPI 3 clock enable"] pub type Spi3enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USART2EN` reader - USART 2 clock enable"] pub type Usart2enR = crate :: BitReader ;
#[doc = "Field `USART2EN` writer - USART 2 clock enable"] pub type Usart2enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USART3EN` reader - USART 3 clock enable"] pub type Usart3enR = crate :: BitReader ;
#[doc = "Field `USART3EN` writer - USART 3 clock enable"] pub type Usart3enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UART4EN` reader - UART 4 clock enable"] pub type Uart4enR = crate :: BitReader ;
#[doc = "Field `UART4EN` writer - UART 4 clock enable"] pub type Uart4enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UART5EN` reader - UART 5 clock enable"] pub type Uart5enR = crate :: BitReader ;
#[doc = "Field `UART5EN` writer - UART 5 clock enable"] pub type Uart5enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `I2C1EN` reader - I2C 1 clock enable"] pub type I2c1enR = crate :: BitReader ;
#[doc = "Field `I2C1EN` writer - I2C 1 clock enable"] pub type I2c1enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `I2C2EN` reader - I2C 2 clock enable"] pub type I2c2enR = crate :: BitReader ;
#[doc = "Field `I2C2EN` writer - I2C 2 clock enable"] pub type I2c2enW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USBEN` reader - USB clock enable"] pub type UsbenR = crate :: BitReader ;
#[doc = "Field `USBEN` writer - USB clock enable"] pub type UsbenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CANEN` reader - CAN clock enable"] pub type CanenR = crate :: BitReader ;
#[doc = "Field `CANEN` writer - CAN clock enable"] pub type CanenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BKPEN` reader - Backup interface clock enable"] pub type BkpenR = crate :: BitReader ;
#[doc = "Field `BKPEN` writer - Backup interface clock enable"] pub type BkpenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PWREN` reader - Power interface clock enable"] pub type PwrenR = crate :: BitReader ;
#[doc = "Field `PWREN` writer - Power interface clock enable"] pub type PwrenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DACEN` reader - DAC interface clock enable"] pub type DacenR = crate :: BitReader ;
#[doc = "Field `DACEN` writer - DAC interface clock enable"] pub type DacenW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Timer 2 clock enable"]
#[inline (always)] pub fn tim2en (& self) -> Tim2enR { Tim2enR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Timer 3 clock enable"]
#[inline (always)] pub fn tim3en (& self) -> Tim3enR { Tim3enR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Timer 4 clock enable"]
#[inline (always)] pub fn tim4en (& self) -> Tim4enR { Tim4enR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Timer 5 clock enable"]
#[inline (always)] pub fn tim5en (& self) -> Tim5enR { Tim5enR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Timer 6 clock enable"]
#[inline (always)] pub fn tim6en (& self) -> Tim6enR { Tim6enR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Timer 7 clock enable"]
#[inline (always)] pub fn tim7en (& self) -> Tim7enR { Tim7enR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Timer 12 clock enable"]
#[inline (always)] pub fn tim12en (& self) -> Tim12enR { Tim12enR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Timer 13 clock enable"]
#[inline (always)] pub fn tim13en (& self) -> Tim13enR { Tim13enR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Timer 14 clock enable"]
#[inline (always)] pub fn tim14en (& self) -> Tim14enR { Tim14enR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 11 - Window watchdog clock enable"]
#[inline (always)] pub fn wwdgen (& self) -> WwdgenR { WwdgenR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 14 - SPI 2 clock enable"]
#[inline (always)] pub fn spi2en (& self) -> Spi2enR { Spi2enR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - SPI 3 clock enable"]
#[inline (always)] pub fn spi3en (& self) -> Spi3enR { Spi3enR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 17 - USART 2 clock enable"]
#[inline (always)] pub fn usart2en (& self) -> Usart2enR { Usart2enR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - USART 3 clock enable"]
#[inline (always)] pub fn usart3en (& self) -> Usart3enR { Usart3enR :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - UART 4 clock enable"]
#[inline (always)] pub fn uart4en (& self) -> Uart4enR { Uart4enR :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - UART 5 clock enable"]
#[inline (always)] pub fn uart5en (& self) -> Uart5enR { Uart5enR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - I2C 1 clock enable"]
#[inline (always)] pub fn i2c1en (& self) -> I2c1enR { I2c1enR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - I2C 2 clock enable"]
#[inline (always)] pub fn i2c2en (& self) -> I2c2enR { I2c2enR :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - USB clock enable"]
#[inline (always)] pub fn usben (& self) -> UsbenR { UsbenR :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 25 - CAN clock enable"]
#[inline (always)] pub fn canen (& self) -> CanenR { CanenR :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 27 - Backup interface clock enable"]
#[inline (always)] pub fn bkpen (& self) -> BkpenR { BkpenR :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Power interface clock enable"]
#[inline (always)] pub fn pwren (& self) -> PwrenR { PwrenR :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - DAC interface clock enable"]
#[inline (always)] pub fn dacen (& self) -> DacenR { DacenR :: new (((self . bits >> 29) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Timer 2 clock enable"]
#[inline (always)] pub fn tim2en (& mut self) -> Tim2enW < '_ , Apb1enrSpec > { Tim2enW :: new (self , 0) }
#[doc = "Bit 1 - Timer 3 clock enable"]
#[inline (always)] pub fn tim3en (& mut self) -> Tim3enW < '_ , Apb1enrSpec > { Tim3enW :: new (self , 1) }
#[doc = "Bit 2 - Timer 4 clock enable"]
#[inline (always)] pub fn tim4en (& mut self) -> Tim4enW < '_ , Apb1enrSpec > { Tim4enW :: new (self , 2) }
#[doc = "Bit 3 - Timer 5 clock enable"]
#[inline (always)] pub fn tim5en (& mut self) -> Tim5enW < '_ , Apb1enrSpec > { Tim5enW :: new (self , 3) }
#[doc = "Bit 4 - Timer 6 clock enable"]
#[inline (always)] pub fn tim6en (& mut self) -> Tim6enW < '_ , Apb1enrSpec > { Tim6enW :: new (self , 4) }
#[doc = "Bit 5 - Timer 7 clock enable"]
#[inline (always)] pub fn tim7en (& mut self) -> Tim7enW < '_ , Apb1enrSpec > { Tim7enW :: new (self , 5) }
#[doc = "Bit 6 - Timer 12 clock enable"]
#[inline (always)] pub fn tim12en (& mut self) -> Tim12enW < '_ , Apb1enrSpec > { Tim12enW :: new (self , 6) }
#[doc = "Bit 7 - Timer 13 clock enable"]
#[inline (always)] pub fn tim13en (& mut self) -> Tim13enW < '_ , Apb1enrSpec > { Tim13enW :: new (self , 7) }
#[doc = "Bit 8 - Timer 14 clock enable"]
#[inline (always)] pub fn tim14en (& mut self) -> Tim14enW < '_ , Apb1enrSpec > { Tim14enW :: new (self , 8) }
#[doc = "Bit 11 - Window watchdog clock enable"]
#[inline (always)] pub fn wwdgen (& mut self) -> WwdgenW < '_ , Apb1enrSpec > { WwdgenW :: new (self , 11) }
#[doc = "Bit 14 - SPI 2 clock enable"]
#[inline (always)] pub fn spi2en (& mut self) -> Spi2enW < '_ , Apb1enrSpec > { Spi2enW :: new (self , 14) }
#[doc = "Bit 15 - SPI 3 clock enable"]
#[inline (always)] pub fn spi3en (& mut self) -> Spi3enW < '_ , Apb1enrSpec > { Spi3enW :: new (self , 15) }
#[doc = "Bit 17 - USART 2 clock enable"]
#[inline (always)] pub fn usart2en (& mut self) -> Usart2enW < '_ , Apb1enrSpec > { Usart2enW :: new (self , 17) }
#[doc = "Bit 18 - USART 3 clock enable"]
#[inline (always)] pub fn usart3en (& mut self) -> Usart3enW < '_ , Apb1enrSpec > { Usart3enW :: new (self , 18) }
#[doc = "Bit 19 - UART 4 clock enable"]
#[inline (always)] pub fn uart4en (& mut self) -> Uart4enW < '_ , Apb1enrSpec > { Uart4enW :: new (self , 19) }
#[doc = "Bit 20 - UART 5 clock enable"]
#[inline (always)] pub fn uart5en (& mut self) -> Uart5enW < '_ , Apb1enrSpec > { Uart5enW :: new (self , 20) }
#[doc = "Bit 21 - I2C 1 clock enable"]
#[inline (always)] pub fn i2c1en (& mut self) -> I2c1enW < '_ , Apb1enrSpec > { I2c1enW :: new (self , 21) }
#[doc = "Bit 22 - I2C 2 clock enable"]
#[inline (always)] pub fn i2c2en (& mut self) -> I2c2enW < '_ , Apb1enrSpec > { I2c2enW :: new (self , 22) }
#[doc = "Bit 23 - USB clock enable"]
#[inline (always)] pub fn usben (& mut self) -> UsbenW < '_ , Apb1enrSpec > { UsbenW :: new (self , 23) }
#[doc = "Bit 25 - CAN clock enable"]
#[inline (always)] pub fn canen (& mut self) -> CanenW < '_ , Apb1enrSpec > { CanenW :: new (self , 25) }
#[doc = "Bit 27 - Backup interface clock enable"]
#[inline (always)] pub fn bkpen (& mut self) -> BkpenW < '_ , Apb1enrSpec > { BkpenW :: new (self , 27) }
#[doc = "Bit 28 - Power interface clock enable"]
#[inline (always)] pub fn pwren (& mut self) -> PwrenW < '_ , Apb1enrSpec > { PwrenW :: new (self , 28) }
#[doc = "Bit 29 - DAC interface clock enable"]
#[inline (always)] pub fn dacen (& mut self) -> DacenW < '_ , Apb1enrSpec > { DacenW :: new (self , 29) } }
#[doc = "APB1 peripheral clock enable register (RCC_APB1ENR)\n\nYou can [`read`](crate::Reg::read) this register and get [`apb1enr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apb1enr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Apb1enrSpec ; impl crate :: RegisterSpec for Apb1enrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`apb1enr::R`](R) reader structure"] impl crate :: Readable for Apb1enrSpec { }
#[doc = "`write(|w| ..)` method takes [`apb1enr::W`](W) writer structure"] impl crate :: Writable for Apb1enrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets APB1ENR to value 0"] impl crate :: Resettable for Apb1enrSpec { } }
#[doc = "BDCR (rw) register accessor: Backup domain control register (RCC_BDCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`bdcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bdcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bdcr`] module"]
#[doc (alias = "BDCR")] pub type Bdcr = crate :: Reg < bdcr :: BdcrSpec > ;
#[doc = "Backup domain control register (RCC_BDCR)"] pub mod bdcr {
#[doc = "Register `BDCR` reader"] pub type R = crate :: R < BdcrSpec > ;
#[doc = "Register `BDCR` writer"] pub type W = crate :: W < BdcrSpec > ;
#[doc = "Field `LSEON` reader - External Low Speed oscillator enable"] pub type LseonR = crate :: BitReader ;
#[doc = "Field `LSEON` writer - External Low Speed oscillator enable"] pub type LseonW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LSERDY` reader - External Low Speed oscillator ready"] pub type LserdyR = crate :: BitReader ;
#[doc = "Field `LSEBYP` reader - External Low Speed oscillator bypass"] pub type LsebypR = crate :: BitReader ;
#[doc = "Field `LSEBYP` writer - External Low Speed oscillator bypass"] pub type LsebypW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RTCSEL` reader - RTC clock source selection"] pub type RtcselR = crate :: FieldReader ;
#[doc = "Field `RTCSEL` writer - RTC clock source selection"] pub type RtcselW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `RTCEN` reader - RTC clock enable"] pub type RtcenR = crate :: BitReader ;
#[doc = "Field `RTCEN` writer - RTC clock enable"] pub type RtcenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BDRST` reader - Backup domain software reset"] pub type BdrstR = crate :: BitReader ;
#[doc = "Field `BDRST` writer - Backup domain software reset"] pub type BdrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - External Low Speed oscillator enable"]
#[inline (always)] pub fn lseon (& self) -> LseonR { LseonR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - External Low Speed oscillator ready"]
#[inline (always)] pub fn lserdy (& self) -> LserdyR { LserdyR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - External Low Speed oscillator bypass"]
#[inline (always)] pub fn lsebyp (& self) -> LsebypR { LsebypR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bits 8:9 - RTC clock source selection"]
#[inline (always)] pub fn rtcsel (& self) -> RtcselR { RtcselR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bit 15 - RTC clock enable"]
#[inline (always)] pub fn rtcen (& self) -> RtcenR { RtcenR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Backup domain software reset"]
#[inline (always)] pub fn bdrst (& self) -> BdrstR { BdrstR :: new (((self . bits >> 16) & 1) != 0) } } impl W {
#[doc = "Bit 0 - External Low Speed oscillator enable"]
#[inline (always)] pub fn lseon (& mut self) -> LseonW < '_ , BdcrSpec > { LseonW :: new (self , 0) }
#[doc = "Bit 2 - External Low Speed oscillator bypass"]
#[inline (always)] pub fn lsebyp (& mut self) -> LsebypW < '_ , BdcrSpec > { LsebypW :: new (self , 2) }
#[doc = "Bits 8:9 - RTC clock source selection"]
#[inline (always)] pub fn rtcsel (& mut self) -> RtcselW < '_ , BdcrSpec > { RtcselW :: new (self , 8) }
#[doc = "Bit 15 - RTC clock enable"]
#[inline (always)] pub fn rtcen (& mut self) -> RtcenW < '_ , BdcrSpec > { RtcenW :: new (self , 15) }
#[doc = "Bit 16 - Backup domain software reset"]
#[inline (always)] pub fn bdrst (& mut self) -> BdrstW < '_ , BdcrSpec > { BdrstW :: new (self , 16) } }
#[doc = "Backup domain control register (RCC_BDCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`bdcr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bdcr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct BdcrSpec ; impl crate :: RegisterSpec for BdcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`bdcr::R`](R) reader structure"] impl crate :: Readable for BdcrSpec { }
#[doc = "`write(|w| ..)` method takes [`bdcr::W`](W) writer structure"] impl crate :: Writable for BdcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BDCR to value 0"] impl crate :: Resettable for BdcrSpec { } }
#[doc = "CSR (rw) register accessor: Control/status register (RCC_CSR)\n\nYou can [`read`](crate::Reg::read) this register and get [`csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`csr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@csr`] module"]
#[doc (alias = "CSR")] pub type Csr = crate :: Reg < csr :: CsrSpec > ;
#[doc = "Control/status register (RCC_CSR)"] pub mod csr {
#[doc = "Register `CSR` reader"] pub type R = crate :: R < CsrSpec > ;
#[doc = "Register `CSR` writer"] pub type W = crate :: W < CsrSpec > ;
#[doc = "Field `LSION` reader - Internal low speed oscillator enable"] pub type LsionR = crate :: BitReader ;
#[doc = "Field `LSION` writer - Internal low speed oscillator enable"] pub type LsionW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LSIRDY` reader - Internal low speed oscillator ready"] pub type LsirdyR = crate :: BitReader ;
#[doc = "Field `RMVF` reader - Remove reset flag"] pub type RmvfR = crate :: BitReader ;
#[doc = "Field `RMVF` writer - Remove reset flag"] pub type RmvfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PINRSTF` reader - PIN reset flag"] pub type PinrstfR = crate :: BitReader ;
#[doc = "Field `PINRSTF` writer - PIN reset flag"] pub type PinrstfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PORRSTF` reader - POR/PDR reset flag"] pub type PorrstfR = crate :: BitReader ;
#[doc = "Field `PORRSTF` writer - POR/PDR reset flag"] pub type PorrstfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SFTRSTF` reader - Software reset flag"] pub type SftrstfR = crate :: BitReader ;
#[doc = "Field `SFTRSTF` writer - Software reset flag"] pub type SftrstfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IWDGRSTF` reader - Independent watchdog reset flag"] pub type IwdgrstfR = crate :: BitReader ;
#[doc = "Field `IWDGRSTF` writer - Independent watchdog reset flag"] pub type IwdgrstfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WWDGRSTF` reader - Window watchdog reset flag"] pub type WwdgrstfR = crate :: BitReader ;
#[doc = "Field `WWDGRSTF` writer - Window watchdog reset flag"] pub type WwdgrstfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LPWRRSTF` reader - Low-power reset flag"] pub type LpwrrstfR = crate :: BitReader ;
#[doc = "Field `LPWRRSTF` writer - Low-power reset flag"] pub type LpwrrstfW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Internal low speed oscillator enable"]
#[inline (always)] pub fn lsion (& self) -> LsionR { LsionR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Internal low speed oscillator ready"]
#[inline (always)] pub fn lsirdy (& self) -> LsirdyR { LsirdyR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 24 - Remove reset flag"]
#[inline (always)] pub fn rmvf (& self) -> RmvfR { RmvfR :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 26 - PIN reset flag"]
#[inline (always)] pub fn pinrstf (& self) -> PinrstfR { PinrstfR :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - POR/PDR reset flag"]
#[inline (always)] pub fn porrstf (& self) -> PorrstfR { PorrstfR :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Software reset flag"]
#[inline (always)] pub fn sftrstf (& self) -> SftrstfR { SftrstfR :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Independent watchdog reset flag"]
#[inline (always)] pub fn iwdgrstf (& self) -> IwdgrstfR { IwdgrstfR :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Window watchdog reset flag"]
#[inline (always)] pub fn wwdgrstf (& self) -> WwdgrstfR { WwdgrstfR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Low-power reset flag"]
#[inline (always)] pub fn lpwrrstf (& self) -> LpwrrstfR { LpwrrstfR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Internal low speed oscillator enable"]
#[inline (always)] pub fn lsion (& mut self) -> LsionW < '_ , CsrSpec > { LsionW :: new (self , 0) }
#[doc = "Bit 24 - Remove reset flag"]
#[inline (always)] pub fn rmvf (& mut self) -> RmvfW < '_ , CsrSpec > { RmvfW :: new (self , 24) }
#[doc = "Bit 26 - PIN reset flag"]
#[inline (always)] pub fn pinrstf (& mut self) -> PinrstfW < '_ , CsrSpec > { PinrstfW :: new (self , 26) }
#[doc = "Bit 27 - POR/PDR reset flag"]
#[inline (always)] pub fn porrstf (& mut self) -> PorrstfW < '_ , CsrSpec > { PorrstfW :: new (self , 27) }
#[doc = "Bit 28 - Software reset flag"]
#[inline (always)] pub fn sftrstf (& mut self) -> SftrstfW < '_ , CsrSpec > { SftrstfW :: new (self , 28) }
#[doc = "Bit 29 - Independent watchdog reset flag"]
#[inline (always)] pub fn iwdgrstf (& mut self) -> IwdgrstfW < '_ , CsrSpec > { IwdgrstfW :: new (self , 29) }
#[doc = "Bit 30 - Window watchdog reset flag"]
#[inline (always)] pub fn wwdgrstf (& mut self) -> WwdgrstfW < '_ , CsrSpec > { WwdgrstfW :: new (self , 30) }
#[doc = "Bit 31 - Low-power reset flag"]
#[inline (always)] pub fn lpwrrstf (& mut self) -> LpwrrstfW < '_ , CsrSpec > { LpwrrstfW :: new (self , 31) } }
#[doc = "Control/status register (RCC_CSR)\n\nYou can [`read`](crate::Reg::read) this register and get [`csr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`csr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CsrSpec ; impl crate :: RegisterSpec for CsrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`csr::R`](R) reader structure"] impl crate :: Readable for CsrSpec { }
#[doc = "`write(|w| ..)` method takes [`csr::W`](W) writer structure"] impl crate :: Writable for CsrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CSR to value 0x0c00_0000"] impl crate :: Resettable for CsrSpec { const RESET_VALUE : u32 = 0x0c00_0000 ; } } }
#[doc = "General purpose I/O"] pub type Gpioa = crate :: Periph < gpioa :: RegisterBlock , 0x4001_0800 > ; impl core :: fmt :: Debug for Gpioa { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Gpioa") . finish () } }
#[doc = "General purpose I/O"] pub mod gpioa {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { crl : Crl , crh : Crh , idr : Idr , odr : Odr , bsrr : Bsrr , brr : Brr , lckr : Lckr , } impl RegisterBlock {
#[doc = "0x00 - Port configuration register low (GPIOn_CRL)"]
#[inline (always)] pub const fn crl (& self) -> & Crl { & self . crl }
#[doc = "0x04 - Port configuration register high (GPIOn_CRL)"]
#[inline (always)] pub const fn crh (& self) -> & Crh { & self . crh }
#[doc = "0x08 - Port input data register (GPIOn_IDR)"]
#[inline (always)] pub const fn idr (& self) -> & Idr { & self . idr }
#[doc = "0x0c - Port output data register (GPIOn_ODR)"]
#[inline (always)] pub const fn odr (& self) -> & Odr { & self . odr }
#[doc = "0x10 - Port bit set/reset register (GPIOn_BSRR)"]
#[inline (always)] pub const fn bsrr (& self) -> & Bsrr { & self . bsrr }
#[doc = "0x14 - Port bit reset register (GPIOn_BRR)"]
#[inline (always)] pub const fn brr (& self) -> & Brr { & self . brr }
#[doc = "0x18 - Port configuration lock register"]
#[inline (always)] pub const fn lckr (& self) -> & Lckr { & self . lckr } }
#[doc = "CRL (rw) register accessor: Port configuration register low (GPIOn_CRL)\n\nYou can [`read`](crate::Reg::read) this register and get [`crl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`crl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@crl`] module"]
#[doc (alias = "CRL")] pub type Crl = crate :: Reg < crl :: CrlSpec > ;
#[doc = "Port configuration register low (GPIOn_CRL)"] pub mod crl {
#[doc = "Register `CRL` reader"] pub type R = crate :: R < CrlSpec > ;
#[doc = "Register `CRL` writer"] pub type W = crate :: W < CrlSpec > ;
#[doc = "Field `MODE0` reader - Port n.0 mode bits"] pub type Mode0R = crate :: FieldReader ;
#[doc = "Field `MODE0` writer - Port n.0 mode bits"] pub type Mode0W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF0` reader - Port n.0 configuration bits"] pub type Cnf0R = crate :: FieldReader ;
#[doc = "Field `CNF0` writer - Port n.0 configuration bits"] pub type Cnf0W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MODE1` reader - Port n.1 mode bits"] pub type Mode1R = crate :: FieldReader ;
#[doc = "Field `MODE1` writer - Port n.1 mode bits"] pub type Mode1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF1` reader - Port n.1 configuration bits"] pub type Cnf1R = crate :: FieldReader ;
#[doc = "Field `CNF1` writer - Port n.1 configuration bits"] pub type Cnf1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MODE2` reader - Port n.2 mode bits"] pub type Mode2R = crate :: FieldReader ;
#[doc = "Field `MODE2` writer - Port n.2 mode bits"] pub type Mode2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF2` reader - Port n.2 configuration bits"] pub type Cnf2R = crate :: FieldReader ;
#[doc = "Field `CNF2` writer - Port n.2 configuration bits"] pub type Cnf2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MODE3` reader - Port n.3 mode bits"] pub type Mode3R = crate :: FieldReader ;
#[doc = "Field `MODE3` writer - Port n.3 mode bits"] pub type Mode3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF3` reader - Port n.3 configuration bits"] pub type Cnf3R = crate :: FieldReader ;
#[doc = "Field `CNF3` writer - Port n.3 configuration bits"] pub type Cnf3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MODE4` reader - Port n.4 mode bits"] pub type Mode4R = crate :: FieldReader ;
#[doc = "Field `MODE4` writer - Port n.4 mode bits"] pub type Mode4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF4` reader - Port n.4 configuration bits"] pub type Cnf4R = crate :: FieldReader ;
#[doc = "Field `CNF4` writer - Port n.4 configuration bits"] pub type Cnf4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MODE5` reader - Port n.5 mode bits"] pub type Mode5R = crate :: FieldReader ;
#[doc = "Field `MODE5` writer - Port n.5 mode bits"] pub type Mode5W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF5` reader - Port n.5 configuration bits"] pub type Cnf5R = crate :: FieldReader ;
#[doc = "Field `CNF5` writer - Port n.5 configuration bits"] pub type Cnf5W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MODE6` reader - Port n.6 mode bits"] pub type Mode6R = crate :: FieldReader ;
#[doc = "Field `MODE6` writer - Port n.6 mode bits"] pub type Mode6W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF6` reader - Port n.6 configuration bits"] pub type Cnf6R = crate :: FieldReader ;
#[doc = "Field `CNF6` writer - Port n.6 configuration bits"] pub type Cnf6W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MODE7` reader - Port n.7 mode bits"] pub type Mode7R = crate :: FieldReader ;
#[doc = "Field `MODE7` writer - Port n.7 mode bits"] pub type Mode7W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF7` reader - Port n.7 configuration bits"] pub type Cnf7R = crate :: FieldReader ;
#[doc = "Field `CNF7` writer - Port n.7 configuration bits"] pub type Cnf7W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:1 - Port n.0 mode bits"]
#[inline (always)] pub fn mode0 (& self) -> Mode0R { Mode0R :: new ((self . bits & 3) as u8) }
#[doc = "Bits 2:3 - Port n.0 configuration bits"]
#[inline (always)] pub fn cnf0 (& self) -> Cnf0R { Cnf0R :: new (((self . bits >> 2) & 3) as u8) }
#[doc = "Bits 4:5 - Port n.1 mode bits"]
#[inline (always)] pub fn mode1 (& self) -> Mode1R { Mode1R :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bits 6:7 - Port n.1 configuration bits"]
#[inline (always)] pub fn cnf1 (& self) -> Cnf1R { Cnf1R :: new (((self . bits >> 6) & 3) as u8) }
#[doc = "Bits 8:9 - Port n.2 mode bits"]
#[inline (always)] pub fn mode2 (& self) -> Mode2R { Mode2R :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - Port n.2 configuration bits"]
#[inline (always)] pub fn cnf2 (& self) -> Cnf2R { Cnf2R :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bits 12:13 - Port n.3 mode bits"]
#[inline (always)] pub fn mode3 (& self) -> Mode3R { Mode3R :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bits 14:15 - Port n.3 configuration bits"]
#[inline (always)] pub fn cnf3 (& self) -> Cnf3R { Cnf3R :: new (((self . bits >> 14) & 3) as u8) }
#[doc = "Bits 16:17 - Port n.4 mode bits"]
#[inline (always)] pub fn mode4 (& self) -> Mode4R { Mode4R :: new (((self . bits >> 16) & 3) as u8) }
#[doc = "Bits 18:19 - Port n.4 configuration bits"]
#[inline (always)] pub fn cnf4 (& self) -> Cnf4R { Cnf4R :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bits 20:21 - Port n.5 mode bits"]
#[inline (always)] pub fn mode5 (& self) -> Mode5R { Mode5R :: new (((self . bits >> 20) & 3) as u8) }
#[doc = "Bits 22:23 - Port n.5 configuration bits"]
#[inline (always)] pub fn cnf5 (& self) -> Cnf5R { Cnf5R :: new (((self . bits >> 22) & 3) as u8) }
#[doc = "Bits 24:25 - Port n.6 mode bits"]
#[inline (always)] pub fn mode6 (& self) -> Mode6R { Mode6R :: new (((self . bits >> 24) & 3) as u8) }
#[doc = "Bits 26:27 - Port n.6 configuration bits"]
#[inline (always)] pub fn cnf6 (& self) -> Cnf6R { Cnf6R :: new (((self . bits >> 26) & 3) as u8) }
#[doc = "Bits 28:29 - Port n.7 mode bits"]
#[inline (always)] pub fn mode7 (& self) -> Mode7R { Mode7R :: new (((self . bits >> 28) & 3) as u8) }
#[doc = "Bits 30:31 - Port n.7 configuration bits"]
#[inline (always)] pub fn cnf7 (& self) -> Cnf7R { Cnf7R :: new (((self . bits >> 30) & 3) as u8) } } impl W {
#[doc = "Bits 0:1 - Port n.0 mode bits"]
#[inline (always)] pub fn mode0 (& mut self) -> Mode0W < '_ , CrlSpec > { Mode0W :: new (self , 0) }
#[doc = "Bits 2:3 - Port n.0 configuration bits"]
#[inline (always)] pub fn cnf0 (& mut self) -> Cnf0W < '_ , CrlSpec > { Cnf0W :: new (self , 2) }
#[doc = "Bits 4:5 - Port n.1 mode bits"]
#[inline (always)] pub fn mode1 (& mut self) -> Mode1W < '_ , CrlSpec > { Mode1W :: new (self , 4) }
#[doc = "Bits 6:7 - Port n.1 configuration bits"]
#[inline (always)] pub fn cnf1 (& mut self) -> Cnf1W < '_ , CrlSpec > { Cnf1W :: new (self , 6) }
#[doc = "Bits 8:9 - Port n.2 mode bits"]
#[inline (always)] pub fn mode2 (& mut self) -> Mode2W < '_ , CrlSpec > { Mode2W :: new (self , 8) }
#[doc = "Bits 10:11 - Port n.2 configuration bits"]
#[inline (always)] pub fn cnf2 (& mut self) -> Cnf2W < '_ , CrlSpec > { Cnf2W :: new (self , 10) }
#[doc = "Bits 12:13 - Port n.3 mode bits"]
#[inline (always)] pub fn mode3 (& mut self) -> Mode3W < '_ , CrlSpec > { Mode3W :: new (self , 12) }
#[doc = "Bits 14:15 - Port n.3 configuration bits"]
#[inline (always)] pub fn cnf3 (& mut self) -> Cnf3W < '_ , CrlSpec > { Cnf3W :: new (self , 14) }
#[doc = "Bits 16:17 - Port n.4 mode bits"]
#[inline (always)] pub fn mode4 (& mut self) -> Mode4W < '_ , CrlSpec > { Mode4W :: new (self , 16) }
#[doc = "Bits 18:19 - Port n.4 configuration bits"]
#[inline (always)] pub fn cnf4 (& mut self) -> Cnf4W < '_ , CrlSpec > { Cnf4W :: new (self , 18) }
#[doc = "Bits 20:21 - Port n.5 mode bits"]
#[inline (always)] pub fn mode5 (& mut self) -> Mode5W < '_ , CrlSpec > { Mode5W :: new (self , 20) }
#[doc = "Bits 22:23 - Port n.5 configuration bits"]
#[inline (always)] pub fn cnf5 (& mut self) -> Cnf5W < '_ , CrlSpec > { Cnf5W :: new (self , 22) }
#[doc = "Bits 24:25 - Port n.6 mode bits"]
#[inline (always)] pub fn mode6 (& mut self) -> Mode6W < '_ , CrlSpec > { Mode6W :: new (self , 24) }
#[doc = "Bits 26:27 - Port n.6 configuration bits"]
#[inline (always)] pub fn cnf6 (& mut self) -> Cnf6W < '_ , CrlSpec > { Cnf6W :: new (self , 26) }
#[doc = "Bits 28:29 - Port n.7 mode bits"]
#[inline (always)] pub fn mode7 (& mut self) -> Mode7W < '_ , CrlSpec > { Mode7W :: new (self , 28) }
#[doc = "Bits 30:31 - Port n.7 configuration bits"]
#[inline (always)] pub fn cnf7 (& mut self) -> Cnf7W < '_ , CrlSpec > { Cnf7W :: new (self , 30) } }
#[doc = "Port configuration register low (GPIOn_CRL)\n\nYou can [`read`](crate::Reg::read) this register and get [`crl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`crl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CrlSpec ; impl crate :: RegisterSpec for CrlSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`crl::R`](R) reader structure"] impl crate :: Readable for CrlSpec { }
#[doc = "`write(|w| ..)` method takes [`crl::W`](W) writer structure"] impl crate :: Writable for CrlSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CRL to value 0x4444_4444"] impl crate :: Resettable for CrlSpec { const RESET_VALUE : u32 = 0x4444_4444 ; } }
#[doc = "CRH (rw) register accessor: Port configuration register high (GPIOn_CRL)\n\nYou can [`read`](crate::Reg::read) this register and get [`crh::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`crh::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@crh`] module"]
#[doc (alias = "CRH")] pub type Crh = crate :: Reg < crh :: CrhSpec > ;
#[doc = "Port configuration register high (GPIOn_CRL)"] pub mod crh {
#[doc = "Register `CRH` reader"] pub type R = crate :: R < CrhSpec > ;
#[doc = "Register `CRH` writer"] pub type W = crate :: W < CrhSpec > ;
#[doc = "Field `MODE8` reader - Port n.8 mode bits"] pub type Mode8R = crate :: FieldReader ;
#[doc = "Field `MODE8` writer - Port n.8 mode bits"] pub type Mode8W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF8` reader - Port n.8 configuration bits"] pub type Cnf8R = crate :: FieldReader ;
#[doc = "Field `CNF8` writer - Port n.8 configuration bits"] pub type Cnf8W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MODE9` reader - Port n.9 mode bits"] pub type Mode9R = crate :: FieldReader ;
#[doc = "Field `MODE9` writer - Port n.9 mode bits"] pub type Mode9W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF9` reader - Port n.9 configuration bits"] pub type Cnf9R = crate :: FieldReader ;
#[doc = "Field `CNF9` writer - Port n.9 configuration bits"] pub type Cnf9W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MODE10` reader - Port n.10 mode bits"] pub type Mode10R = crate :: FieldReader ;
#[doc = "Field `MODE10` writer - Port n.10 mode bits"] pub type Mode10W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF10` reader - Port n.10 configuration bits"] pub type Cnf10R = crate :: FieldReader ;
#[doc = "Field `CNF10` writer - Port n.10 configuration bits"] pub type Cnf10W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MODE11` reader - Port n.11 mode bits"] pub type Mode11R = crate :: FieldReader ;
#[doc = "Field `MODE11` writer - Port n.11 mode bits"] pub type Mode11W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF11` reader - Port n.11 configuration bits"] pub type Cnf11R = crate :: FieldReader ;
#[doc = "Field `CNF11` writer - Port n.11 configuration bits"] pub type Cnf11W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MODE12` reader - Port n.12 mode bits"] pub type Mode12R = crate :: FieldReader ;
#[doc = "Field `MODE12` writer - Port n.12 mode bits"] pub type Mode12W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF12` reader - Port n.12 configuration bits"] pub type Cnf12R = crate :: FieldReader ;
#[doc = "Field `CNF12` writer - Port n.12 configuration bits"] pub type Cnf12W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MODE13` reader - Port n.13 mode bits"] pub type Mode13R = crate :: FieldReader ;
#[doc = "Field `MODE13` writer - Port n.13 mode bits"] pub type Mode13W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF13` reader - Port n.13 configuration bits"] pub type Cnf13R = crate :: FieldReader ;
#[doc = "Field `CNF13` writer - Port n.13 configuration bits"] pub type Cnf13W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MODE14` reader - Port n.14 mode bits"] pub type Mode14R = crate :: FieldReader ;
#[doc = "Field `MODE14` writer - Port n.14 mode bits"] pub type Mode14W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF14` reader - Port n.14 configuration bits"] pub type Cnf14R = crate :: FieldReader ;
#[doc = "Field `CNF14` writer - Port n.14 configuration bits"] pub type Cnf14W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MODE15` reader - Port n.15 mode bits"] pub type Mode15R = crate :: FieldReader ;
#[doc = "Field `MODE15` writer - Port n.15 mode bits"] pub type Mode15W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CNF15` reader - Port n.15 configuration bits"] pub type Cnf15R = crate :: FieldReader ;
#[doc = "Field `CNF15` writer - Port n.15 configuration bits"] pub type Cnf15W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:1 - Port n.8 mode bits"]
#[inline (always)] pub fn mode8 (& self) -> Mode8R { Mode8R :: new ((self . bits & 3) as u8) }
#[doc = "Bits 2:3 - Port n.8 configuration bits"]
#[inline (always)] pub fn cnf8 (& self) -> Cnf8R { Cnf8R :: new (((self . bits >> 2) & 3) as u8) }
#[doc = "Bits 4:5 - Port n.9 mode bits"]
#[inline (always)] pub fn mode9 (& self) -> Mode9R { Mode9R :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bits 6:7 - Port n.9 configuration bits"]
#[inline (always)] pub fn cnf9 (& self) -> Cnf9R { Cnf9R :: new (((self . bits >> 6) & 3) as u8) }
#[doc = "Bits 8:9 - Port n.10 mode bits"]
#[inline (always)] pub fn mode10 (& self) -> Mode10R { Mode10R :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - Port n.10 configuration bits"]
#[inline (always)] pub fn cnf10 (& self) -> Cnf10R { Cnf10R :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bits 12:13 - Port n.11 mode bits"]
#[inline (always)] pub fn mode11 (& self) -> Mode11R { Mode11R :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bits 14:15 - Port n.11 configuration bits"]
#[inline (always)] pub fn cnf11 (& self) -> Cnf11R { Cnf11R :: new (((self . bits >> 14) & 3) as u8) }
#[doc = "Bits 16:17 - Port n.12 mode bits"]
#[inline (always)] pub fn mode12 (& self) -> Mode12R { Mode12R :: new (((self . bits >> 16) & 3) as u8) }
#[doc = "Bits 18:19 - Port n.12 configuration bits"]
#[inline (always)] pub fn cnf12 (& self) -> Cnf12R { Cnf12R :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bits 20:21 - Port n.13 mode bits"]
#[inline (always)] pub fn mode13 (& self) -> Mode13R { Mode13R :: new (((self . bits >> 20) & 3) as u8) }
#[doc = "Bits 22:23 - Port n.13 configuration bits"]
#[inline (always)] pub fn cnf13 (& self) -> Cnf13R { Cnf13R :: new (((self . bits >> 22) & 3) as u8) }
#[doc = "Bits 24:25 - Port n.14 mode bits"]
#[inline (always)] pub fn mode14 (& self) -> Mode14R { Mode14R :: new (((self . bits >> 24) & 3) as u8) }
#[doc = "Bits 26:27 - Port n.14 configuration bits"]
#[inline (always)] pub fn cnf14 (& self) -> Cnf14R { Cnf14R :: new (((self . bits >> 26) & 3) as u8) }
#[doc = "Bits 28:29 - Port n.15 mode bits"]
#[inline (always)] pub fn mode15 (& self) -> Mode15R { Mode15R :: new (((self . bits >> 28) & 3) as u8) }
#[doc = "Bits 30:31 - Port n.15 configuration bits"]
#[inline (always)] pub fn cnf15 (& self) -> Cnf15R { Cnf15R :: new (((self . bits >> 30) & 3) as u8) } } impl W {
#[doc = "Bits 0:1 - Port n.8 mode bits"]
#[inline (always)] pub fn mode8 (& mut self) -> Mode8W < '_ , CrhSpec > { Mode8W :: new (self , 0) }
#[doc = "Bits 2:3 - Port n.8 configuration bits"]
#[inline (always)] pub fn cnf8 (& mut self) -> Cnf8W < '_ , CrhSpec > { Cnf8W :: new (self , 2) }
#[doc = "Bits 4:5 - Port n.9 mode bits"]
#[inline (always)] pub fn mode9 (& mut self) -> Mode9W < '_ , CrhSpec > { Mode9W :: new (self , 4) }
#[doc = "Bits 6:7 - Port n.9 configuration bits"]
#[inline (always)] pub fn cnf9 (& mut self) -> Cnf9W < '_ , CrhSpec > { Cnf9W :: new (self , 6) }
#[doc = "Bits 8:9 - Port n.10 mode bits"]
#[inline (always)] pub fn mode10 (& mut self) -> Mode10W < '_ , CrhSpec > { Mode10W :: new (self , 8) }
#[doc = "Bits 10:11 - Port n.10 configuration bits"]
#[inline (always)] pub fn cnf10 (& mut self) -> Cnf10W < '_ , CrhSpec > { Cnf10W :: new (self , 10) }
#[doc = "Bits 12:13 - Port n.11 mode bits"]
#[inline (always)] pub fn mode11 (& mut self) -> Mode11W < '_ , CrhSpec > { Mode11W :: new (self , 12) }
#[doc = "Bits 14:15 - Port n.11 configuration bits"]
#[inline (always)] pub fn cnf11 (& mut self) -> Cnf11W < '_ , CrhSpec > { Cnf11W :: new (self , 14) }
#[doc = "Bits 16:17 - Port n.12 mode bits"]
#[inline (always)] pub fn mode12 (& mut self) -> Mode12W < '_ , CrhSpec > { Mode12W :: new (self , 16) }
#[doc = "Bits 18:19 - Port n.12 configuration bits"]
#[inline (always)] pub fn cnf12 (& mut self) -> Cnf12W < '_ , CrhSpec > { Cnf12W :: new (self , 18) }
#[doc = "Bits 20:21 - Port n.13 mode bits"]
#[inline (always)] pub fn mode13 (& mut self) -> Mode13W < '_ , CrhSpec > { Mode13W :: new (self , 20) }
#[doc = "Bits 22:23 - Port n.13 configuration bits"]
#[inline (always)] pub fn cnf13 (& mut self) -> Cnf13W < '_ , CrhSpec > { Cnf13W :: new (self , 22) }
#[doc = "Bits 24:25 - Port n.14 mode bits"]
#[inline (always)] pub fn mode14 (& mut self) -> Mode14W < '_ , CrhSpec > { Mode14W :: new (self , 24) }
#[doc = "Bits 26:27 - Port n.14 configuration bits"]
#[inline (always)] pub fn cnf14 (& mut self) -> Cnf14W < '_ , CrhSpec > { Cnf14W :: new (self , 26) }
#[doc = "Bits 28:29 - Port n.15 mode bits"]
#[inline (always)] pub fn mode15 (& mut self) -> Mode15W < '_ , CrhSpec > { Mode15W :: new (self , 28) }
#[doc = "Bits 30:31 - Port n.15 configuration bits"]
#[inline (always)] pub fn cnf15 (& mut self) -> Cnf15W < '_ , CrhSpec > { Cnf15W :: new (self , 30) } }
#[doc = "Port configuration register high (GPIOn_CRL)\n\nYou can [`read`](crate::Reg::read) this register and get [`crh::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`crh::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CrhSpec ; impl crate :: RegisterSpec for CrhSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`crh::R`](R) reader structure"] impl crate :: Readable for CrhSpec { }
#[doc = "`write(|w| ..)` method takes [`crh::W`](W) writer structure"] impl crate :: Writable for CrhSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CRH to value 0x4444_4444"] impl crate :: Resettable for CrhSpec { const RESET_VALUE : u32 = 0x4444_4444 ; } }
#[doc = "IDR (r) register accessor: Port input data register (GPIOn_IDR)\n\nYou can [`read`](crate::Reg::read) this register and get [`idr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@idr`] module"]
#[doc (alias = "IDR")] pub type Idr = crate :: Reg < idr :: IdrSpec > ;
#[doc = "Port input data register (GPIOn_IDR)"] pub mod idr {
#[doc = "Register `IDR` reader"] pub type R = crate :: R < IdrSpec > ;
#[doc = "Field `IDR0` reader - Port input data"] pub type Idr0R = crate :: BitReader ;
#[doc = "Field `IDR1` reader - Port input data"] pub type Idr1R = crate :: BitReader ;
#[doc = "Field `IDR2` reader - Port input data"] pub type Idr2R = crate :: BitReader ;
#[doc = "Field `IDR3` reader - Port input data"] pub type Idr3R = crate :: BitReader ;
#[doc = "Field `IDR4` reader - Port input data"] pub type Idr4R = crate :: BitReader ;
#[doc = "Field `IDR5` reader - Port input data"] pub type Idr5R = crate :: BitReader ;
#[doc = "Field `IDR6` reader - Port input data"] pub type Idr6R = crate :: BitReader ;
#[doc = "Field `IDR7` reader - Port input data"] pub type Idr7R = crate :: BitReader ;
#[doc = "Field `IDR8` reader - Port input data"] pub type Idr8R = crate :: BitReader ;
#[doc = "Field `IDR9` reader - Port input data"] pub type Idr9R = crate :: BitReader ;
#[doc = "Field `IDR10` reader - Port input data"] pub type Idr10R = crate :: BitReader ;
#[doc = "Field `IDR11` reader - Port input data"] pub type Idr11R = crate :: BitReader ;
#[doc = "Field `IDR12` reader - Port input data"] pub type Idr12R = crate :: BitReader ;
#[doc = "Field `IDR13` reader - Port input data"] pub type Idr13R = crate :: BitReader ;
#[doc = "Field `IDR14` reader - Port input data"] pub type Idr14R = crate :: BitReader ;
#[doc = "Field `IDR15` reader - Port input data"] pub type Idr15R = crate :: BitReader ; impl R {
#[doc = "Bit 0 - Port input data"]
#[inline (always)] pub fn idr0 (& self) -> Idr0R { Idr0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Port input data"]
#[inline (always)] pub fn idr1 (& self) -> Idr1R { Idr1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Port input data"]
#[inline (always)] pub fn idr2 (& self) -> Idr2R { Idr2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Port input data"]
#[inline (always)] pub fn idr3 (& self) -> Idr3R { Idr3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Port input data"]
#[inline (always)] pub fn idr4 (& self) -> Idr4R { Idr4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Port input data"]
#[inline (always)] pub fn idr5 (& self) -> Idr5R { Idr5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Port input data"]
#[inline (always)] pub fn idr6 (& self) -> Idr6R { Idr6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Port input data"]
#[inline (always)] pub fn idr7 (& self) -> Idr7R { Idr7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Port input data"]
#[inline (always)] pub fn idr8 (& self) -> Idr8R { Idr8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Port input data"]
#[inline (always)] pub fn idr9 (& self) -> Idr9R { Idr9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Port input data"]
#[inline (always)] pub fn idr10 (& self) -> Idr10R { Idr10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Port input data"]
#[inline (always)] pub fn idr11 (& self) -> Idr11R { Idr11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Port input data"]
#[inline (always)] pub fn idr12 (& self) -> Idr12R { Idr12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Port input data"]
#[inline (always)] pub fn idr13 (& self) -> Idr13R { Idr13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Port input data"]
#[inline (always)] pub fn idr14 (& self) -> Idr14R { Idr14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Port input data"]
#[inline (always)] pub fn idr15 (& self) -> Idr15R { Idr15R :: new (((self . bits >> 15) & 1) != 0) } }
#[doc = "Port input data register (GPIOn_IDR)\n\nYou can [`read`](crate::Reg::read) this register and get [`idr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct IdrSpec ; impl crate :: RegisterSpec for IdrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`idr::R`](R) reader structure"] impl crate :: Readable for IdrSpec { }
#[doc = "`reset()` method sets IDR to value 0"] impl crate :: Resettable for IdrSpec { } }
#[doc = "ODR (rw) register accessor: Port output data register (GPIOn_ODR)\n\nYou can [`read`](crate::Reg::read) this register and get [`odr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`odr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@odr`] module"]
#[doc (alias = "ODR")] pub type Odr = crate :: Reg < odr :: OdrSpec > ;
#[doc = "Port output data register (GPIOn_ODR)"] pub mod odr {
#[doc = "Register `ODR` reader"] pub type R = crate :: R < OdrSpec > ;
#[doc = "Register `ODR` writer"] pub type W = crate :: W < OdrSpec > ;
#[doc = "Field `ODR0` reader - Port output data"] pub type Odr0R = crate :: BitReader ;
#[doc = "Field `ODR0` writer - Port output data"] pub type Odr0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR1` reader - Port output data"] pub type Odr1R = crate :: BitReader ;
#[doc = "Field `ODR1` writer - Port output data"] pub type Odr1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR2` reader - Port output data"] pub type Odr2R = crate :: BitReader ;
#[doc = "Field `ODR2` writer - Port output data"] pub type Odr2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR3` reader - Port output data"] pub type Odr3R = crate :: BitReader ;
#[doc = "Field `ODR3` writer - Port output data"] pub type Odr3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR4` reader - Port output data"] pub type Odr4R = crate :: BitReader ;
#[doc = "Field `ODR4` writer - Port output data"] pub type Odr4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR5` reader - Port output data"] pub type Odr5R = crate :: BitReader ;
#[doc = "Field `ODR5` writer - Port output data"] pub type Odr5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR6` reader - Port output data"] pub type Odr6R = crate :: BitReader ;
#[doc = "Field `ODR6` writer - Port output data"] pub type Odr6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR7` reader - Port output data"] pub type Odr7R = crate :: BitReader ;
#[doc = "Field `ODR7` writer - Port output data"] pub type Odr7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR8` reader - Port output data"] pub type Odr8R = crate :: BitReader ;
#[doc = "Field `ODR8` writer - Port output data"] pub type Odr8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR9` reader - Port output data"] pub type Odr9R = crate :: BitReader ;
#[doc = "Field `ODR9` writer - Port output data"] pub type Odr9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR10` reader - Port output data"] pub type Odr10R = crate :: BitReader ;
#[doc = "Field `ODR10` writer - Port output data"] pub type Odr10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR11` reader - Port output data"] pub type Odr11R = crate :: BitReader ;
#[doc = "Field `ODR11` writer - Port output data"] pub type Odr11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR12` reader - Port output data"] pub type Odr12R = crate :: BitReader ;
#[doc = "Field `ODR12` writer - Port output data"] pub type Odr12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR13` reader - Port output data"] pub type Odr13R = crate :: BitReader ;
#[doc = "Field `ODR13` writer - Port output data"] pub type Odr13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR14` reader - Port output data"] pub type Odr14R = crate :: BitReader ;
#[doc = "Field `ODR14` writer - Port output data"] pub type Odr14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ODR15` reader - Port output data"] pub type Odr15R = crate :: BitReader ;
#[doc = "Field `ODR15` writer - Port output data"] pub type Odr15W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Port output data"]
#[inline (always)] pub fn odr0 (& self) -> Odr0R { Odr0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Port output data"]
#[inline (always)] pub fn odr1 (& self) -> Odr1R { Odr1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Port output data"]
#[inline (always)] pub fn odr2 (& self) -> Odr2R { Odr2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Port output data"]
#[inline (always)] pub fn odr3 (& self) -> Odr3R { Odr3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Port output data"]
#[inline (always)] pub fn odr4 (& self) -> Odr4R { Odr4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Port output data"]
#[inline (always)] pub fn odr5 (& self) -> Odr5R { Odr5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Port output data"]
#[inline (always)] pub fn odr6 (& self) -> Odr6R { Odr6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Port output data"]
#[inline (always)] pub fn odr7 (& self) -> Odr7R { Odr7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Port output data"]
#[inline (always)] pub fn odr8 (& self) -> Odr8R { Odr8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Port output data"]
#[inline (always)] pub fn odr9 (& self) -> Odr9R { Odr9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Port output data"]
#[inline (always)] pub fn odr10 (& self) -> Odr10R { Odr10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Port output data"]
#[inline (always)] pub fn odr11 (& self) -> Odr11R { Odr11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Port output data"]
#[inline (always)] pub fn odr12 (& self) -> Odr12R { Odr12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Port output data"]
#[inline (always)] pub fn odr13 (& self) -> Odr13R { Odr13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Port output data"]
#[inline (always)] pub fn odr14 (& self) -> Odr14R { Odr14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Port output data"]
#[inline (always)] pub fn odr15 (& self) -> Odr15R { Odr15R :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Port output data"]
#[inline (always)] pub fn odr0 (& mut self) -> Odr0W < '_ , OdrSpec > { Odr0W :: new (self , 0) }
#[doc = "Bit 1 - Port output data"]
#[inline (always)] pub fn odr1 (& mut self) -> Odr1W < '_ , OdrSpec > { Odr1W :: new (self , 1) }
#[doc = "Bit 2 - Port output data"]
#[inline (always)] pub fn odr2 (& mut self) -> Odr2W < '_ , OdrSpec > { Odr2W :: new (self , 2) }
#[doc = "Bit 3 - Port output data"]
#[inline (always)] pub fn odr3 (& mut self) -> Odr3W < '_ , OdrSpec > { Odr3W :: new (self , 3) }
#[doc = "Bit 4 - Port output data"]
#[inline (always)] pub fn odr4 (& mut self) -> Odr4W < '_ , OdrSpec > { Odr4W :: new (self , 4) }
#[doc = "Bit 5 - Port output data"]
#[inline (always)] pub fn odr5 (& mut self) -> Odr5W < '_ , OdrSpec > { Odr5W :: new (self , 5) }
#[doc = "Bit 6 - Port output data"]
#[inline (always)] pub fn odr6 (& mut self) -> Odr6W < '_ , OdrSpec > { Odr6W :: new (self , 6) }
#[doc = "Bit 7 - Port output data"]
#[inline (always)] pub fn odr7 (& mut self) -> Odr7W < '_ , OdrSpec > { Odr7W :: new (self , 7) }
#[doc = "Bit 8 - Port output data"]
#[inline (always)] pub fn odr8 (& mut self) -> Odr8W < '_ , OdrSpec > { Odr8W :: new (self , 8) }
#[doc = "Bit 9 - Port output data"]
#[inline (always)] pub fn odr9 (& mut self) -> Odr9W < '_ , OdrSpec > { Odr9W :: new (self , 9) }
#[doc = "Bit 10 - Port output data"]
#[inline (always)] pub fn odr10 (& mut self) -> Odr10W < '_ , OdrSpec > { Odr10W :: new (self , 10) }
#[doc = "Bit 11 - Port output data"]
#[inline (always)] pub fn odr11 (& mut self) -> Odr11W < '_ , OdrSpec > { Odr11W :: new (self , 11) }
#[doc = "Bit 12 - Port output data"]
#[inline (always)] pub fn odr12 (& mut self) -> Odr12W < '_ , OdrSpec > { Odr12W :: new (self , 12) }
#[doc = "Bit 13 - Port output data"]
#[inline (always)] pub fn odr13 (& mut self) -> Odr13W < '_ , OdrSpec > { Odr13W :: new (self , 13) }
#[doc = "Bit 14 - Port output data"]
#[inline (always)] pub fn odr14 (& mut self) -> Odr14W < '_ , OdrSpec > { Odr14W :: new (self , 14) }
#[doc = "Bit 15 - Port output data"]
#[inline (always)] pub fn odr15 (& mut self) -> Odr15W < '_ , OdrSpec > { Odr15W :: new (self , 15) } }
#[doc = "Port output data register (GPIOn_ODR)\n\nYou can [`read`](crate::Reg::read) this register and get [`odr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`odr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct OdrSpec ; impl crate :: RegisterSpec for OdrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`odr::R`](R) reader structure"] impl crate :: Readable for OdrSpec { }
#[doc = "`write(|w| ..)` method takes [`odr::W`](W) writer structure"] impl crate :: Writable for OdrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets ODR to value 0"] impl crate :: Resettable for OdrSpec { } }
#[doc = "BSRR (w) register accessor: Port bit set/reset register (GPIOn_BSRR)\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bsrr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bsrr`] module"]
#[doc (alias = "BSRR")] pub type Bsrr = crate :: Reg < bsrr :: BsrrSpec > ;
#[doc = "Port bit set/reset register (GPIOn_BSRR)"] pub mod bsrr {
#[doc = "Register `BSRR` writer"] pub type W = crate :: W < BsrrSpec > ;
#[doc = "Field `BS0` writer - Set bit 0"] pub type Bs0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS1` writer - Set bit 1"] pub type Bs1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS2` writer - Set bit 1"] pub type Bs2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS3` writer - Set bit 3"] pub type Bs3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS4` writer - Set bit 4"] pub type Bs4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS5` writer - Set bit 5"] pub type Bs5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS6` writer - Set bit 6"] pub type Bs6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS7` writer - Set bit 7"] pub type Bs7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS8` writer - Set bit 8"] pub type Bs8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS9` writer - Set bit 9"] pub type Bs9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS10` writer - Set bit 10"] pub type Bs10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS11` writer - Set bit 11"] pub type Bs11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS12` writer - Set bit 12"] pub type Bs12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS13` writer - Set bit 13"] pub type Bs13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS14` writer - Set bit 14"] pub type Bs14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BS15` writer - Set bit 15"] pub type Bs15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR0` writer - Reset bit 0"] pub type Br0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR1` writer - Reset bit 1"] pub type Br1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR2` writer - Reset bit 2"] pub type Br2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR3` writer - Reset bit 3"] pub type Br3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR4` writer - Reset bit 4"] pub type Br4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR5` writer - Reset bit 5"] pub type Br5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR6` writer - Reset bit 6"] pub type Br6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR7` writer - Reset bit 7"] pub type Br7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR8` writer - Reset bit 8"] pub type Br8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR9` writer - Reset bit 9"] pub type Br9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR10` writer - Reset bit 10"] pub type Br10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR11` writer - Reset bit 11"] pub type Br11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR12` writer - Reset bit 12"] pub type Br12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR13` writer - Reset bit 13"] pub type Br13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR14` writer - Reset bit 14"] pub type Br14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR15` writer - Reset bit 15"] pub type Br15W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl W {
#[doc = "Bit 0 - Set bit 0"]
#[inline (always)] pub fn bs0 (& mut self) -> Bs0W < '_ , BsrrSpec > { Bs0W :: new (self , 0) }
#[doc = "Bit 1 - Set bit 1"]
#[inline (always)] pub fn bs1 (& mut self) -> Bs1W < '_ , BsrrSpec > { Bs1W :: new (self , 1) }
#[doc = "Bit 2 - Set bit 1"]
#[inline (always)] pub fn bs2 (& mut self) -> Bs2W < '_ , BsrrSpec > { Bs2W :: new (self , 2) }
#[doc = "Bit 3 - Set bit 3"]
#[inline (always)] pub fn bs3 (& mut self) -> Bs3W < '_ , BsrrSpec > { Bs3W :: new (self , 3) }
#[doc = "Bit 4 - Set bit 4"]
#[inline (always)] pub fn bs4 (& mut self) -> Bs4W < '_ , BsrrSpec > { Bs4W :: new (self , 4) }
#[doc = "Bit 5 - Set bit 5"]
#[inline (always)] pub fn bs5 (& mut self) -> Bs5W < '_ , BsrrSpec > { Bs5W :: new (self , 5) }
#[doc = "Bit 6 - Set bit 6"]
#[inline (always)] pub fn bs6 (& mut self) -> Bs6W < '_ , BsrrSpec > { Bs6W :: new (self , 6) }
#[doc = "Bit 7 - Set bit 7"]
#[inline (always)] pub fn bs7 (& mut self) -> Bs7W < '_ , BsrrSpec > { Bs7W :: new (self , 7) }
#[doc = "Bit 8 - Set bit 8"]
#[inline (always)] pub fn bs8 (& mut self) -> Bs8W < '_ , BsrrSpec > { Bs8W :: new (self , 8) }
#[doc = "Bit 9 - Set bit 9"]
#[inline (always)] pub fn bs9 (& mut self) -> Bs9W < '_ , BsrrSpec > { Bs9W :: new (self , 9) }
#[doc = "Bit 10 - Set bit 10"]
#[inline (always)] pub fn bs10 (& mut self) -> Bs10W < '_ , BsrrSpec > { Bs10W :: new (self , 10) }
#[doc = "Bit 11 - Set bit 11"]
#[inline (always)] pub fn bs11 (& mut self) -> Bs11W < '_ , BsrrSpec > { Bs11W :: new (self , 11) }
#[doc = "Bit 12 - Set bit 12"]
#[inline (always)] pub fn bs12 (& mut self) -> Bs12W < '_ , BsrrSpec > { Bs12W :: new (self , 12) }
#[doc = "Bit 13 - Set bit 13"]
#[inline (always)] pub fn bs13 (& mut self) -> Bs13W < '_ , BsrrSpec > { Bs13W :: new (self , 13) }
#[doc = "Bit 14 - Set bit 14"]
#[inline (always)] pub fn bs14 (& mut self) -> Bs14W < '_ , BsrrSpec > { Bs14W :: new (self , 14) }
#[doc = "Bit 15 - Set bit 15"]
#[inline (always)] pub fn bs15 (& mut self) -> Bs15W < '_ , BsrrSpec > { Bs15W :: new (self , 15) }
#[doc = "Bit 16 - Reset bit 0"]
#[inline (always)] pub fn br0 (& mut self) -> Br0W < '_ , BsrrSpec > { Br0W :: new (self , 16) }
#[doc = "Bit 17 - Reset bit 1"]
#[inline (always)] pub fn br1 (& mut self) -> Br1W < '_ , BsrrSpec > { Br1W :: new (self , 17) }
#[doc = "Bit 18 - Reset bit 2"]
#[inline (always)] pub fn br2 (& mut self) -> Br2W < '_ , BsrrSpec > { Br2W :: new (self , 18) }
#[doc = "Bit 19 - Reset bit 3"]
#[inline (always)] pub fn br3 (& mut self) -> Br3W < '_ , BsrrSpec > { Br3W :: new (self , 19) }
#[doc = "Bit 20 - Reset bit 4"]
#[inline (always)] pub fn br4 (& mut self) -> Br4W < '_ , BsrrSpec > { Br4W :: new (self , 20) }
#[doc = "Bit 21 - Reset bit 5"]
#[inline (always)] pub fn br5 (& mut self) -> Br5W < '_ , BsrrSpec > { Br5W :: new (self , 21) }
#[doc = "Bit 22 - Reset bit 6"]
#[inline (always)] pub fn br6 (& mut self) -> Br6W < '_ , BsrrSpec > { Br6W :: new (self , 22) }
#[doc = "Bit 23 - Reset bit 7"]
#[inline (always)] pub fn br7 (& mut self) -> Br7W < '_ , BsrrSpec > { Br7W :: new (self , 23) }
#[doc = "Bit 24 - Reset bit 8"]
#[inline (always)] pub fn br8 (& mut self) -> Br8W < '_ , BsrrSpec > { Br8W :: new (self , 24) }
#[doc = "Bit 25 - Reset bit 9"]
#[inline (always)] pub fn br9 (& mut self) -> Br9W < '_ , BsrrSpec > { Br9W :: new (self , 25) }
#[doc = "Bit 26 - Reset bit 10"]
#[inline (always)] pub fn br10 (& mut self) -> Br10W < '_ , BsrrSpec > { Br10W :: new (self , 26) }
#[doc = "Bit 27 - Reset bit 11"]
#[inline (always)] pub fn br11 (& mut self) -> Br11W < '_ , BsrrSpec > { Br11W :: new (self , 27) }
#[doc = "Bit 28 - Reset bit 12"]
#[inline (always)] pub fn br12 (& mut self) -> Br12W < '_ , BsrrSpec > { Br12W :: new (self , 28) }
#[doc = "Bit 29 - Reset bit 13"]
#[inline (always)] pub fn br13 (& mut self) -> Br13W < '_ , BsrrSpec > { Br13W :: new (self , 29) }
#[doc = "Bit 30 - Reset bit 14"]
#[inline (always)] pub fn br14 (& mut self) -> Br14W < '_ , BsrrSpec > { Br14W :: new (self , 30) }
#[doc = "Bit 31 - Reset bit 15"]
#[inline (always)] pub fn br15 (& mut self) -> Br15W < '_ , BsrrSpec > { Br15W :: new (self , 31) } }
#[doc = "Port bit set/reset register (GPIOn_BSRR)\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bsrr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct BsrrSpec ; impl crate :: RegisterSpec for BsrrSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`bsrr::W`](W) writer structure"] impl crate :: Writable for BsrrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BSRR to value 0"] impl crate :: Resettable for BsrrSpec { } }
#[doc = "BRR (w) register accessor: Port bit reset register (GPIOn_BRR)\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`brr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@brr`] module"]
#[doc (alias = "BRR")] pub type Brr = crate :: Reg < brr :: BrrSpec > ;
#[doc = "Port bit reset register (GPIOn_BRR)"] pub mod brr {
#[doc = "Register `BRR` writer"] pub type W = crate :: W < BrrSpec > ;
#[doc = "Field `BR0` writer - Reset bit 0"] pub type Br0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR1` writer - Reset bit 1"] pub type Br1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR2` writer - Reset bit 1"] pub type Br2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR3` writer - Reset bit 3"] pub type Br3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR4` writer - Reset bit 4"] pub type Br4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR5` writer - Reset bit 5"] pub type Br5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR6` writer - Reset bit 6"] pub type Br6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR7` writer - Reset bit 7"] pub type Br7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR8` writer - Reset bit 8"] pub type Br8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR9` writer - Reset bit 9"] pub type Br9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR10` writer - Reset bit 10"] pub type Br10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR11` writer - Reset bit 11"] pub type Br11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR12` writer - Reset bit 12"] pub type Br12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR13` writer - Reset bit 13"] pub type Br13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR14` writer - Reset bit 14"] pub type Br14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR15` writer - Reset bit 15"] pub type Br15W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl W {
#[doc = "Bit 0 - Reset bit 0"]
#[inline (always)] pub fn br0 (& mut self) -> Br0W < '_ , BrrSpec > { Br0W :: new (self , 0) }
#[doc = "Bit 1 - Reset bit 1"]
#[inline (always)] pub fn br1 (& mut self) -> Br1W < '_ , BrrSpec > { Br1W :: new (self , 1) }
#[doc = "Bit 2 - Reset bit 1"]
#[inline (always)] pub fn br2 (& mut self) -> Br2W < '_ , BrrSpec > { Br2W :: new (self , 2) }
#[doc = "Bit 3 - Reset bit 3"]
#[inline (always)] pub fn br3 (& mut self) -> Br3W < '_ , BrrSpec > { Br3W :: new (self , 3) }
#[doc = "Bit 4 - Reset bit 4"]
#[inline (always)] pub fn br4 (& mut self) -> Br4W < '_ , BrrSpec > { Br4W :: new (self , 4) }
#[doc = "Bit 5 - Reset bit 5"]
#[inline (always)] pub fn br5 (& mut self) -> Br5W < '_ , BrrSpec > { Br5W :: new (self , 5) }
#[doc = "Bit 6 - Reset bit 6"]
#[inline (always)] pub fn br6 (& mut self) -> Br6W < '_ , BrrSpec > { Br6W :: new (self , 6) }
#[doc = "Bit 7 - Reset bit 7"]
#[inline (always)] pub fn br7 (& mut self) -> Br7W < '_ , BrrSpec > { Br7W :: new (self , 7) }
#[doc = "Bit 8 - Reset bit 8"]
#[inline (always)] pub fn br8 (& mut self) -> Br8W < '_ , BrrSpec > { Br8W :: new (self , 8) }
#[doc = "Bit 9 - Reset bit 9"]
#[inline (always)] pub fn br9 (& mut self) -> Br9W < '_ , BrrSpec > { Br9W :: new (self , 9) }
#[doc = "Bit 10 - Reset bit 10"]
#[inline (always)] pub fn br10 (& mut self) -> Br10W < '_ , BrrSpec > { Br10W :: new (self , 10) }
#[doc = "Bit 11 - Reset bit 11"]
#[inline (always)] pub fn br11 (& mut self) -> Br11W < '_ , BrrSpec > { Br11W :: new (self , 11) }
#[doc = "Bit 12 - Reset bit 12"]
#[inline (always)] pub fn br12 (& mut self) -> Br12W < '_ , BrrSpec > { Br12W :: new (self , 12) }
#[doc = "Bit 13 - Reset bit 13"]
#[inline (always)] pub fn br13 (& mut self) -> Br13W < '_ , BrrSpec > { Br13W :: new (self , 13) }
#[doc = "Bit 14 - Reset bit 14"]
#[inline (always)] pub fn br14 (& mut self) -> Br14W < '_ , BrrSpec > { Br14W :: new (self , 14) }
#[doc = "Bit 15 - Reset bit 15"]
#[inline (always)] pub fn br15 (& mut self) -> Br15W < '_ , BrrSpec > { Br15W :: new (self , 15) } }
#[doc = "Port bit reset register (GPIOn_BRR)\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`brr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct BrrSpec ; impl crate :: RegisterSpec for BrrSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`brr::W`](W) writer structure"] impl crate :: Writable for BrrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BRR to value 0"] impl crate :: Resettable for BrrSpec { } }
#[doc = "LCKR (rw) register accessor: Port configuration lock register\n\nYou can [`read`](crate::Reg::read) this register and get [`lckr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lckr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@lckr`] module"]
#[doc (alias = "LCKR")] pub type Lckr = crate :: Reg < lckr :: LckrSpec > ;
#[doc = "Port configuration lock register"] pub mod lckr {
#[doc = "Register `LCKR` reader"] pub type R = crate :: R < LckrSpec > ;
#[doc = "Register `LCKR` writer"] pub type W = crate :: W < LckrSpec > ;
#[doc = "Field `LCK0` reader - Port A Lock bit 0"] pub type Lck0R = crate :: BitReader ;
#[doc = "Field `LCK0` writer - Port A Lock bit 0"] pub type Lck0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK1` reader - Port A Lock bit 1"] pub type Lck1R = crate :: BitReader ;
#[doc = "Field `LCK1` writer - Port A Lock bit 1"] pub type Lck1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK2` reader - Port A Lock bit 2"] pub type Lck2R = crate :: BitReader ;
#[doc = "Field `LCK2` writer - Port A Lock bit 2"] pub type Lck2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK3` reader - Port A Lock bit 3"] pub type Lck3R = crate :: BitReader ;
#[doc = "Field `LCK3` writer - Port A Lock bit 3"] pub type Lck3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK4` reader - Port A Lock bit 4"] pub type Lck4R = crate :: BitReader ;
#[doc = "Field `LCK4` writer - Port A Lock bit 4"] pub type Lck4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK5` reader - Port A Lock bit 5"] pub type Lck5R = crate :: BitReader ;
#[doc = "Field `LCK5` writer - Port A Lock bit 5"] pub type Lck5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK6` reader - Port A Lock bit 6"] pub type Lck6R = crate :: BitReader ;
#[doc = "Field `LCK6` writer - Port A Lock bit 6"] pub type Lck6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK7` reader - Port A Lock bit 7"] pub type Lck7R = crate :: BitReader ;
#[doc = "Field `LCK7` writer - Port A Lock bit 7"] pub type Lck7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK8` reader - Port A Lock bit 8"] pub type Lck8R = crate :: BitReader ;
#[doc = "Field `LCK8` writer - Port A Lock bit 8"] pub type Lck8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK9` reader - Port A Lock bit 9"] pub type Lck9R = crate :: BitReader ;
#[doc = "Field `LCK9` writer - Port A Lock bit 9"] pub type Lck9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK10` reader - Port A Lock bit 10"] pub type Lck10R = crate :: BitReader ;
#[doc = "Field `LCK10` writer - Port A Lock bit 10"] pub type Lck10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK11` reader - Port A Lock bit 11"] pub type Lck11R = crate :: BitReader ;
#[doc = "Field `LCK11` writer - Port A Lock bit 11"] pub type Lck11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK12` reader - Port A Lock bit 12"] pub type Lck12R = crate :: BitReader ;
#[doc = "Field `LCK12` writer - Port A Lock bit 12"] pub type Lck12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK13` reader - Port A Lock bit 13"] pub type Lck13R = crate :: BitReader ;
#[doc = "Field `LCK13` writer - Port A Lock bit 13"] pub type Lck13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK14` reader - Port A Lock bit 14"] pub type Lck14R = crate :: BitReader ;
#[doc = "Field `LCK14` writer - Port A Lock bit 14"] pub type Lck14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCK15` reader - Port A Lock bit 15"] pub type Lck15R = crate :: BitReader ;
#[doc = "Field `LCK15` writer - Port A Lock bit 15"] pub type Lck15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LCKK` reader - Lock key"] pub type LckkR = crate :: BitReader ;
#[doc = "Field `LCKK` writer - Lock key"] pub type LckkW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Port A Lock bit 0"]
#[inline (always)] pub fn lck0 (& self) -> Lck0R { Lck0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Port A Lock bit 1"]
#[inline (always)] pub fn lck1 (& self) -> Lck1R { Lck1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Port A Lock bit 2"]
#[inline (always)] pub fn lck2 (& self) -> Lck2R { Lck2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Port A Lock bit 3"]
#[inline (always)] pub fn lck3 (& self) -> Lck3R { Lck3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Port A Lock bit 4"]
#[inline (always)] pub fn lck4 (& self) -> Lck4R { Lck4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Port A Lock bit 5"]
#[inline (always)] pub fn lck5 (& self) -> Lck5R { Lck5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Port A Lock bit 6"]
#[inline (always)] pub fn lck6 (& self) -> Lck6R { Lck6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Port A Lock bit 7"]
#[inline (always)] pub fn lck7 (& self) -> Lck7R { Lck7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Port A Lock bit 8"]
#[inline (always)] pub fn lck8 (& self) -> Lck8R { Lck8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Port A Lock bit 9"]
#[inline (always)] pub fn lck9 (& self) -> Lck9R { Lck9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Port A Lock bit 10"]
#[inline (always)] pub fn lck10 (& self) -> Lck10R { Lck10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Port A Lock bit 11"]
#[inline (always)] pub fn lck11 (& self) -> Lck11R { Lck11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Port A Lock bit 12"]
#[inline (always)] pub fn lck12 (& self) -> Lck12R { Lck12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Port A Lock bit 13"]
#[inline (always)] pub fn lck13 (& self) -> Lck13R { Lck13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Port A Lock bit 14"]
#[inline (always)] pub fn lck14 (& self) -> Lck14R { Lck14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Port A Lock bit 15"]
#[inline (always)] pub fn lck15 (& self) -> Lck15R { Lck15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Lock key"]
#[inline (always)] pub fn lckk (& self) -> LckkR { LckkR :: new (((self . bits >> 16) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Port A Lock bit 0"]
#[inline (always)] pub fn lck0 (& mut self) -> Lck0W < '_ , LckrSpec > { Lck0W :: new (self , 0) }
#[doc = "Bit 1 - Port A Lock bit 1"]
#[inline (always)] pub fn lck1 (& mut self) -> Lck1W < '_ , LckrSpec > { Lck1W :: new (self , 1) }
#[doc = "Bit 2 - Port A Lock bit 2"]
#[inline (always)] pub fn lck2 (& mut self) -> Lck2W < '_ , LckrSpec > { Lck2W :: new (self , 2) }
#[doc = "Bit 3 - Port A Lock bit 3"]
#[inline (always)] pub fn lck3 (& mut self) -> Lck3W < '_ , LckrSpec > { Lck3W :: new (self , 3) }
#[doc = "Bit 4 - Port A Lock bit 4"]
#[inline (always)] pub fn lck4 (& mut self) -> Lck4W < '_ , LckrSpec > { Lck4W :: new (self , 4) }
#[doc = "Bit 5 - Port A Lock bit 5"]
#[inline (always)] pub fn lck5 (& mut self) -> Lck5W < '_ , LckrSpec > { Lck5W :: new (self , 5) }
#[doc = "Bit 6 - Port A Lock bit 6"]
#[inline (always)] pub fn lck6 (& mut self) -> Lck6W < '_ , LckrSpec > { Lck6W :: new (self , 6) }
#[doc = "Bit 7 - Port A Lock bit 7"]
#[inline (always)] pub fn lck7 (& mut self) -> Lck7W < '_ , LckrSpec > { Lck7W :: new (self , 7) }
#[doc = "Bit 8 - Port A Lock bit 8"]
#[inline (always)] pub fn lck8 (& mut self) -> Lck8W < '_ , LckrSpec > { Lck8W :: new (self , 8) }
#[doc = "Bit 9 - Port A Lock bit 9"]
#[inline (always)] pub fn lck9 (& mut self) -> Lck9W < '_ , LckrSpec > { Lck9W :: new (self , 9) }
#[doc = "Bit 10 - Port A Lock bit 10"]
#[inline (always)] pub fn lck10 (& mut self) -> Lck10W < '_ , LckrSpec > { Lck10W :: new (self , 10) }
#[doc = "Bit 11 - Port A Lock bit 11"]
#[inline (always)] pub fn lck11 (& mut self) -> Lck11W < '_ , LckrSpec > { Lck11W :: new (self , 11) }
#[doc = "Bit 12 - Port A Lock bit 12"]
#[inline (always)] pub fn lck12 (& mut self) -> Lck12W < '_ , LckrSpec > { Lck12W :: new (self , 12) }
#[doc = "Bit 13 - Port A Lock bit 13"]
#[inline (always)] pub fn lck13 (& mut self) -> Lck13W < '_ , LckrSpec > { Lck13W :: new (self , 13) }
#[doc = "Bit 14 - Port A Lock bit 14"]
#[inline (always)] pub fn lck14 (& mut self) -> Lck14W < '_ , LckrSpec > { Lck14W :: new (self , 14) }
#[doc = "Bit 15 - Port A Lock bit 15"]
#[inline (always)] pub fn lck15 (& mut self) -> Lck15W < '_ , LckrSpec > { Lck15W :: new (self , 15) }
#[doc = "Bit 16 - Lock key"]
#[inline (always)] pub fn lckk (& mut self) -> LckkW < '_ , LckrSpec > { LckkW :: new (self , 16) } }
#[doc = "Port configuration lock register\n\nYou can [`read`](crate::Reg::read) this register and get [`lckr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lckr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct LckrSpec ; impl crate :: RegisterSpec for LckrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`lckr::R`](R) reader structure"] impl crate :: Readable for LckrSpec { }
#[doc = "`write(|w| ..)` method takes [`lckr::W`](W) writer structure"] impl crate :: Writable for LckrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets LCKR to value 0"] impl crate :: Resettable for LckrSpec { } } }
#[doc = "General purpose I/O"] pub type Gpiob = crate :: Periph < gpioa :: RegisterBlock , 0x4001_0c00 > ; impl core :: fmt :: Debug for Gpiob { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Gpiob") . finish () } }
#[doc = "General purpose I/O"] pub use self :: gpioa as gpiob ;
#[doc = "General purpose I/O"] pub type Gpioc = crate :: Periph < gpioa :: RegisterBlock , 0x4001_1000 > ; impl core :: fmt :: Debug for Gpioc { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Gpioc") . finish () } }
#[doc = "General purpose I/O"] pub use self :: gpioa as gpioc ;
#[doc = "General purpose I/O"] pub type Gpiod = crate :: Periph < gpioa :: RegisterBlock , 0x4001_1400 > ; impl core :: fmt :: Debug for Gpiod { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Gpiod") . finish () } }
#[doc = "General purpose I/O"] pub use self :: gpioa as gpiod ;
#[doc = "General purpose I/O"] pub type Gpioe = crate :: Periph < gpioa :: RegisterBlock , 0x4001_1800 > ; impl core :: fmt :: Debug for Gpioe { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Gpioe") . finish () } }
#[doc = "General purpose I/O"] pub use self :: gpioa as gpioe ;
#[doc = "General purpose I/O"] pub type Gpiof = crate :: Periph < gpioa :: RegisterBlock , 0x4001_1c00 > ; impl core :: fmt :: Debug for Gpiof { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Gpiof") . finish () } }
#[doc = "General purpose I/O"] pub use self :: gpioa as gpiof ;
#[doc = "General purpose I/O"] pub type Gpiog = crate :: Periph < gpioa :: RegisterBlock , 0x4001_2000 > ; impl core :: fmt :: Debug for Gpiog { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Gpiog") . finish () } }
#[doc = "General purpose I/O"] pub use self :: gpioa as gpiog ;
#[doc = "Alternate function I/O"] pub type Afio = crate :: Periph < afio :: RegisterBlock , 0x4001_0000 > ; impl core :: fmt :: Debug for Afio { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Afio") . finish () } }
#[doc = "Alternate function I/O"] pub mod afio {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { evcr : Evcr , mapr : Mapr , exticr1 : Exticr1 , exticr2 : Exticr2 , exticr3 : Exticr3 , exticr4 : Exticr4 , _reserved6 : [u8 ; 0x04] , mapr2 : Mapr2 , } impl RegisterBlock {
#[doc = "0x00 - Event Control Register (AFIO_EVCR)"]
#[inline (always)] pub const fn evcr (& self) -> & Evcr { & self . evcr }
#[doc = "0x04 - AF remap and debug I/O configuration register (AFIO_MAPR)"]
#[inline (always)] pub const fn mapr (& self) -> & Mapr { & self . mapr }
#[doc = "0x08 - External interrupt configuration register 1 (AFIO_EXTICR1)"]
#[inline (always)] pub const fn exticr1 (& self) -> & Exticr1 { & self . exticr1 }
#[doc = "0x0c - External interrupt configuration register 2 (AFIO_EXTICR2)"]
#[inline (always)] pub const fn exticr2 (& self) -> & Exticr2 { & self . exticr2 }
#[doc = "0x10 - External interrupt configuration register 3 (AFIO_EXTICR3)"]
#[inline (always)] pub const fn exticr3 (& self) -> & Exticr3 { & self . exticr3 }
#[doc = "0x14 - External interrupt configuration register 4 (AFIO_EXTICR4)"]
#[inline (always)] pub const fn exticr4 (& self) -> & Exticr4 { & self . exticr4 }
#[doc = "0x1c - AF remap and debug I/O configuration register"]
#[inline (always)] pub const fn mapr2 (& self) -> & Mapr2 { & self . mapr2 } }
#[doc = "EVCR (rw) register accessor: Event Control Register (AFIO_EVCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`evcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`evcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@evcr`] module"]
#[doc (alias = "EVCR")] pub type Evcr = crate :: Reg < evcr :: EvcrSpec > ;
#[doc = "Event Control Register (AFIO_EVCR)"] pub mod evcr {
#[doc = "Register `EVCR` reader"] pub type R = crate :: R < EvcrSpec > ;
#[doc = "Register `EVCR` writer"] pub type W = crate :: W < EvcrSpec > ;
#[doc = "Field `PIN` reader - Pin selection"] pub type PinR = crate :: FieldReader ;
#[doc = "Field `PIN` writer - Pin selection"] pub type PinW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `PORT` reader - Port selection"] pub type PortR = crate :: FieldReader ;
#[doc = "Field `PORT` writer - Port selection"] pub type PortW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `EVOE` reader - Event Output Enable"] pub type EvoeR = crate :: BitReader ;
#[doc = "Field `EVOE` writer - Event Output Enable"] pub type EvoeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:3 - Pin selection"]
#[inline (always)] pub fn pin (& self) -> PinR { PinR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:6 - Port selection"]
#[inline (always)] pub fn port (& self) -> PortR { PortR :: new (((self . bits >> 4) & 7) as u8) }
#[doc = "Bit 7 - Event Output Enable"]
#[inline (always)] pub fn evoe (& self) -> EvoeR { EvoeR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bits 0:3 - Pin selection"]
#[inline (always)] pub fn pin (& mut self) -> PinW < '_ , EvcrSpec > { PinW :: new (self , 0) }
#[doc = "Bits 4:6 - Port selection"]
#[inline (always)] pub fn port (& mut self) -> PortW < '_ , EvcrSpec > { PortW :: new (self , 4) }
#[doc = "Bit 7 - Event Output Enable"]
#[inline (always)] pub fn evoe (& mut self) -> EvoeW < '_ , EvcrSpec > { EvoeW :: new (self , 7) } }
#[doc = "Event Control Register (AFIO_EVCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`evcr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`evcr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct EvcrSpec ; impl crate :: RegisterSpec for EvcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`evcr::R`](R) reader structure"] impl crate :: Readable for EvcrSpec { }
#[doc = "`write(|w| ..)` method takes [`evcr::W`](W) writer structure"] impl crate :: Writable for EvcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EVCR to value 0"] impl crate :: Resettable for EvcrSpec { } }
#[doc = "MAPR (rw) register accessor: AF remap and debug I/O configuration register (AFIO_MAPR)\n\nYou can [`read`](crate::Reg::read) this register and get [`mapr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mapr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mapr`] module"]
#[doc (alias = "MAPR")] pub type Mapr = crate :: Reg < mapr :: MaprSpec > ;
#[doc = "AF remap and debug I/O configuration register (AFIO_MAPR)"] pub mod mapr {
#[doc = "Register `MAPR` reader"] pub type R = crate :: R < MaprSpec > ;
#[doc = "Register `MAPR` writer"] pub type W = crate :: W < MaprSpec > ;
#[doc = "Field `SPI1_REMAP` reader - SPI1 remapping"] pub type Spi1RemapR = crate :: BitReader ;
#[doc = "Field `SPI1_REMAP` writer - SPI1 remapping"] pub type Spi1RemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `I2C1_REMAP` reader - I2C1 remapping"] pub type I2c1RemapR = crate :: BitReader ;
#[doc = "Field `I2C1_REMAP` writer - I2C1 remapping"] pub type I2c1RemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USART1_REMAP` reader - USART1 remapping"] pub type Usart1RemapR = crate :: BitReader ;
#[doc = "Field `USART1_REMAP` writer - USART1 remapping"] pub type Usart1RemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USART2_REMAP` reader - USART2 remapping"] pub type Usart2RemapR = crate :: BitReader ;
#[doc = "Field `USART2_REMAP` writer - USART2 remapping"] pub type Usart2RemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USART3_REMAP` reader - USART3 remapping"] pub type Usart3RemapR = crate :: FieldReader ;
#[doc = "Field `USART3_REMAP` writer - USART3 remapping"] pub type Usart3RemapW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `TIM1_REMAP` reader - TIM1 remapping"] pub type Tim1RemapR = crate :: FieldReader ;
#[doc = "Field `TIM1_REMAP` writer - TIM1 remapping"] pub type Tim1RemapW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `TIM2_REMAP` reader - TIM2 remapping"] pub type Tim2RemapR = crate :: FieldReader ;
#[doc = "Field `TIM2_REMAP` writer - TIM2 remapping"] pub type Tim2RemapW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `TIM3_REMAP` reader - TIM3 remapping"] pub type Tim3RemapR = crate :: FieldReader ;
#[doc = "Field `TIM3_REMAP` writer - TIM3 remapping"] pub type Tim3RemapW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `TIM4_REMAP` reader - TIM4 remapping"] pub type Tim4RemapR = crate :: BitReader ;
#[doc = "Field `TIM4_REMAP` writer - TIM4 remapping"] pub type Tim4RemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CAN_REMAP` reader - CAN1 remapping"] pub type CanRemapR = crate :: FieldReader ;
#[doc = "Field `CAN_REMAP` writer - CAN1 remapping"] pub type CanRemapW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `PD01_REMAP` reader - Port D0/Port D1 mapping on OSCIN/OSCOUT"] pub type Pd01RemapR = crate :: BitReader ;
#[doc = "Field `PD01_REMAP` writer - Port D0/Port D1 mapping on OSCIN/OSCOUT"] pub type Pd01RemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM5CH4_IREMAP` reader - Set and cleared by software"] pub type Tim5ch4IremapR = crate :: BitReader ;
#[doc = "Field `TIM5CH4_IREMAP` writer - Set and cleared by software"] pub type Tim5ch4IremapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ADC1_ETRGINJ_REMAP` reader - ADC 1 External trigger injected conversion remapping"] pub type Adc1EtrginjRemapR = crate :: BitReader ;
#[doc = "Field `ADC1_ETRGINJ_REMAP` writer - ADC 1 External trigger injected conversion remapping"] pub type Adc1EtrginjRemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ADC1_ETRGREG_REMAP` reader - ADC 1 external trigger regular conversion remapping"] pub type Adc1EtrgregRemapR = crate :: BitReader ;
#[doc = "Field `ADC1_ETRGREG_REMAP` writer - ADC 1 external trigger regular conversion remapping"] pub type Adc1EtrgregRemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ADC2_ETRGINJ_REMAP` reader - ADC 2 external trigger injected conversion remapping"] pub type Adc2EtrginjRemapR = crate :: BitReader ;
#[doc = "Field `ADC2_ETRGINJ_REMAP` writer - ADC 2 external trigger injected conversion remapping"] pub type Adc2EtrginjRemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ADC2_ETRGREG_REMAP` reader - ADC 2 external trigger regular conversion remapping"] pub type Adc2EtrgregRemapR = crate :: BitReader ;
#[doc = "Field `ADC2_ETRGREG_REMAP` writer - ADC 2 external trigger regular conversion remapping"] pub type Adc2EtrgregRemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWJ_CFG` writer - Serial wire JTAG configuration"] pub type SwjCfgW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bit 0 - SPI1 remapping"]
#[inline (always)] pub fn spi1_remap (& self) -> Spi1RemapR { Spi1RemapR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - I2C1 remapping"]
#[inline (always)] pub fn i2c1_remap (& self) -> I2c1RemapR { I2c1RemapR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - USART1 remapping"]
#[inline (always)] pub fn usart1_remap (& self) -> Usart1RemapR { Usart1RemapR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - USART2 remapping"]
#[inline (always)] pub fn usart2_remap (& self) -> Usart2RemapR { Usart2RemapR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:5 - USART3 remapping"]
#[inline (always)] pub fn usart3_remap (& self) -> Usart3RemapR { Usart3RemapR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bits 6:7 - TIM1 remapping"]
#[inline (always)] pub fn tim1_remap (& self) -> Tim1RemapR { Tim1RemapR :: new (((self . bits >> 6) & 3) as u8) }
#[doc = "Bits 8:9 - TIM2 remapping"]
#[inline (always)] pub fn tim2_remap (& self) -> Tim2RemapR { Tim2RemapR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - TIM3 remapping"]
#[inline (always)] pub fn tim3_remap (& self) -> Tim3RemapR { Tim3RemapR :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bit 12 - TIM4 remapping"]
#[inline (always)] pub fn tim4_remap (& self) -> Tim4RemapR { Tim4RemapR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bits 13:14 - CAN1 remapping"]
#[inline (always)] pub fn can_remap (& self) -> CanRemapR { CanRemapR :: new (((self . bits >> 13) & 3) as u8) }
#[doc = "Bit 15 - Port D0/Port D1 mapping on OSCIN/OSCOUT"]
#[inline (always)] pub fn pd01_remap (& self) -> Pd01RemapR { Pd01RemapR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Set and cleared by software"]
#[inline (always)] pub fn tim5ch4_iremap (& self) -> Tim5ch4IremapR { Tim5ch4IremapR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - ADC 1 External trigger injected conversion remapping"]
#[inline (always)] pub fn adc1_etrginj_remap (& self) -> Adc1EtrginjRemapR { Adc1EtrginjRemapR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - ADC 1 external trigger regular conversion remapping"]
#[inline (always)] pub fn adc1_etrgreg_remap (& self) -> Adc1EtrgregRemapR { Adc1EtrgregRemapR :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - ADC 2 external trigger injected conversion remapping"]
#[inline (always)] pub fn adc2_etrginj_remap (& self) -> Adc2EtrginjRemapR { Adc2EtrginjRemapR :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - ADC 2 external trigger regular conversion remapping"]
#[inline (always)] pub fn adc2_etrgreg_remap (& self) -> Adc2EtrgregRemapR { Adc2EtrgregRemapR :: new (((self . bits >> 20) & 1) != 0) } } impl W {
#[doc = "Bit 0 - SPI1 remapping"]
#[inline (always)] pub fn spi1_remap (& mut self) -> Spi1RemapW < '_ , MaprSpec > { Spi1RemapW :: new (self , 0) }
#[doc = "Bit 1 - I2C1 remapping"]
#[inline (always)] pub fn i2c1_remap (& mut self) -> I2c1RemapW < '_ , MaprSpec > { I2c1RemapW :: new (self , 1) }
#[doc = "Bit 2 - USART1 remapping"]
#[inline (always)] pub fn usart1_remap (& mut self) -> Usart1RemapW < '_ , MaprSpec > { Usart1RemapW :: new (self , 2) }
#[doc = "Bit 3 - USART2 remapping"]
#[inline (always)] pub fn usart2_remap (& mut self) -> Usart2RemapW < '_ , MaprSpec > { Usart2RemapW :: new (self , 3) }
#[doc = "Bits 4:5 - USART3 remapping"]
#[inline (always)] pub fn usart3_remap (& mut self) -> Usart3RemapW < '_ , MaprSpec > { Usart3RemapW :: new (self , 4) }
#[doc = "Bits 6:7 - TIM1 remapping"]
#[inline (always)] pub fn tim1_remap (& mut self) -> Tim1RemapW < '_ , MaprSpec > { Tim1RemapW :: new (self , 6) }
#[doc = "Bits 8:9 - TIM2 remapping"]
#[inline (always)] pub fn tim2_remap (& mut self) -> Tim2RemapW < '_ , MaprSpec > { Tim2RemapW :: new (self , 8) }
#[doc = "Bits 10:11 - TIM3 remapping"]
#[inline (always)] pub fn tim3_remap (& mut self) -> Tim3RemapW < '_ , MaprSpec > { Tim3RemapW :: new (self , 10) }
#[doc = "Bit 12 - TIM4 remapping"]
#[inline (always)] pub fn tim4_remap (& mut self) -> Tim4RemapW < '_ , MaprSpec > { Tim4RemapW :: new (self , 12) }
#[doc = "Bits 13:14 - CAN1 remapping"]
#[inline (always)] pub fn can_remap (& mut self) -> CanRemapW < '_ , MaprSpec > { CanRemapW :: new (self , 13) }
#[doc = "Bit 15 - Port D0/Port D1 mapping on OSCIN/OSCOUT"]
#[inline (always)] pub fn pd01_remap (& mut self) -> Pd01RemapW < '_ , MaprSpec > { Pd01RemapW :: new (self , 15) }
#[doc = "Bit 16 - Set and cleared by software"]
#[inline (always)] pub fn tim5ch4_iremap (& mut self) -> Tim5ch4IremapW < '_ , MaprSpec > { Tim5ch4IremapW :: new (self , 16) }
#[doc = "Bit 17 - ADC 1 External trigger injected conversion remapping"]
#[inline (always)] pub fn adc1_etrginj_remap (& mut self) -> Adc1EtrginjRemapW < '_ , MaprSpec > { Adc1EtrginjRemapW :: new (self , 17) }
#[doc = "Bit 18 - ADC 1 external trigger regular conversion remapping"]
#[inline (always)] pub fn adc1_etrgreg_remap (& mut self) -> Adc1EtrgregRemapW < '_ , MaprSpec > { Adc1EtrgregRemapW :: new (self , 18) }
#[doc = "Bit 19 - ADC 2 external trigger injected conversion remapping"]
#[inline (always)] pub fn adc2_etrginj_remap (& mut self) -> Adc2EtrginjRemapW < '_ , MaprSpec > { Adc2EtrginjRemapW :: new (self , 19) }
#[doc = "Bit 20 - ADC 2 external trigger regular conversion remapping"]
#[inline (always)] pub fn adc2_etrgreg_remap (& mut self) -> Adc2EtrgregRemapW < '_ , MaprSpec > { Adc2EtrgregRemapW :: new (self , 20) }
#[doc = "Bits 24:26 - Serial wire JTAG configuration"]
#[inline (always)] pub fn swj_cfg (& mut self) -> SwjCfgW < '_ , MaprSpec > { SwjCfgW :: new (self , 24) } }
#[doc = "AF remap and debug I/O configuration register (AFIO_MAPR)\n\nYou can [`read`](crate::Reg::read) this register and get [`mapr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mapr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MaprSpec ; impl crate :: RegisterSpec for MaprSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`mapr::R`](R) reader structure"] impl crate :: Readable for MaprSpec { }
#[doc = "`write(|w| ..)` method takes [`mapr::W`](W) writer structure"] impl crate :: Writable for MaprSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MAPR to value 0"] impl crate :: Resettable for MaprSpec { } }
#[doc = "EXTICR1 (rw) register accessor: External interrupt configuration register 1 (AFIO_EXTICR1)\n\nYou can [`read`](crate::Reg::read) this register and get [`exticr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`exticr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@exticr1`] module"]
#[doc (alias = "EXTICR1")] pub type Exticr1 = crate :: Reg < exticr1 :: Exticr1Spec > ;
#[doc = "External interrupt configuration register 1 (AFIO_EXTICR1)"] pub mod exticr1 {
#[doc = "Register `EXTICR1` reader"] pub type R = crate :: R < Exticr1Spec > ;
#[doc = "Register `EXTICR1` writer"] pub type W = crate :: W < Exticr1Spec > ;
#[doc = "Field `EXTI0` reader - EXTI0 configuration"] pub type Exti0R = crate :: FieldReader ;
#[doc = "Field `EXTI0` writer - EXTI0 configuration"] pub type Exti0W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EXTI1` reader - EXTI1 configuration"] pub type Exti1R = crate :: FieldReader ;
#[doc = "Field `EXTI1` writer - EXTI1 configuration"] pub type Exti1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EXTI2` reader - EXTI2 configuration"] pub type Exti2R = crate :: FieldReader ;
#[doc = "Field `EXTI2` writer - EXTI2 configuration"] pub type Exti2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EXTI3` reader - EXTI3 configuration"] pub type Exti3R = crate :: FieldReader ;
#[doc = "Field `EXTI3` writer - EXTI3 configuration"] pub type Exti3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ; impl R {
#[doc = "Bits 0:3 - EXTI0 configuration"]
#[inline (always)] pub fn exti0 (& self) -> Exti0R { Exti0R :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:7 - EXTI1 configuration"]
#[inline (always)] pub fn exti1 (& self) -> Exti1R { Exti1R :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:11 - EXTI2 configuration"]
#[inline (always)] pub fn exti2 (& self) -> Exti2R { Exti2R :: new (((self . bits >> 8) & 0x0f) as u8) }
#[doc = "Bits 12:15 - EXTI3 configuration"]
#[inline (always)] pub fn exti3 (& self) -> Exti3R { Exti3R :: new (((self . bits >> 12) & 0x0f) as u8) } } impl W {
#[doc = "Bits 0:3 - EXTI0 configuration"]
#[inline (always)] pub fn exti0 (& mut self) -> Exti0W < '_ , Exticr1Spec > { Exti0W :: new (self , 0) }
#[doc = "Bits 4:7 - EXTI1 configuration"]
#[inline (always)] pub fn exti1 (& mut self) -> Exti1W < '_ , Exticr1Spec > { Exti1W :: new (self , 4) }
#[doc = "Bits 8:11 - EXTI2 configuration"]
#[inline (always)] pub fn exti2 (& mut self) -> Exti2W < '_ , Exticr1Spec > { Exti2W :: new (self , 8) }
#[doc = "Bits 12:15 - EXTI3 configuration"]
#[inline (always)] pub fn exti3 (& mut self) -> Exti3W < '_ , Exticr1Spec > { Exti3W :: new (self , 12) } }
#[doc = "External interrupt configuration register 1 (AFIO_EXTICR1)\n\nYou can [`read`](crate::Reg::read) this register and get [`exticr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`exticr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Exticr1Spec ; impl crate :: RegisterSpec for Exticr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`exticr1::R`](R) reader structure"] impl crate :: Readable for Exticr1Spec { }
#[doc = "`write(|w| ..)` method takes [`exticr1::W`](W) writer structure"] impl crate :: Writable for Exticr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EXTICR1 to value 0"] impl crate :: Resettable for Exticr1Spec { } }
#[doc = "EXTICR2 (rw) register accessor: External interrupt configuration register 2 (AFIO_EXTICR2)\n\nYou can [`read`](crate::Reg::read) this register and get [`exticr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`exticr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@exticr2`] module"]
#[doc (alias = "EXTICR2")] pub type Exticr2 = crate :: Reg < exticr2 :: Exticr2Spec > ;
#[doc = "External interrupt configuration register 2 (AFIO_EXTICR2)"] pub mod exticr2 {
#[doc = "Register `EXTICR2` reader"] pub type R = crate :: R < Exticr2Spec > ;
#[doc = "Register `EXTICR2` writer"] pub type W = crate :: W < Exticr2Spec > ;
#[doc = "Field `EXTI4` reader - EXTI4 configuration"] pub type Exti4R = crate :: FieldReader ;
#[doc = "Field `EXTI4` writer - EXTI4 configuration"] pub type Exti4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EXTI5` reader - EXTI5 configuration"] pub type Exti5R = crate :: FieldReader ;
#[doc = "Field `EXTI5` writer - EXTI5 configuration"] pub type Exti5W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EXTI6` reader - EXTI6 configuration"] pub type Exti6R = crate :: FieldReader ;
#[doc = "Field `EXTI6` writer - EXTI6 configuration"] pub type Exti6W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EXTI7` reader - EXTI7 configuration"] pub type Exti7R = crate :: FieldReader ;
#[doc = "Field `EXTI7` writer - EXTI7 configuration"] pub type Exti7W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ; impl R {
#[doc = "Bits 0:3 - EXTI4 configuration"]
#[inline (always)] pub fn exti4 (& self) -> Exti4R { Exti4R :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:7 - EXTI5 configuration"]
#[inline (always)] pub fn exti5 (& self) -> Exti5R { Exti5R :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:11 - EXTI6 configuration"]
#[inline (always)] pub fn exti6 (& self) -> Exti6R { Exti6R :: new (((self . bits >> 8) & 0x0f) as u8) }
#[doc = "Bits 12:15 - EXTI7 configuration"]
#[inline (always)] pub fn exti7 (& self) -> Exti7R { Exti7R :: new (((self . bits >> 12) & 0x0f) as u8) } } impl W {
#[doc = "Bits 0:3 - EXTI4 configuration"]
#[inline (always)] pub fn exti4 (& mut self) -> Exti4W < '_ , Exticr2Spec > { Exti4W :: new (self , 0) }
#[doc = "Bits 4:7 - EXTI5 configuration"]
#[inline (always)] pub fn exti5 (& mut self) -> Exti5W < '_ , Exticr2Spec > { Exti5W :: new (self , 4) }
#[doc = "Bits 8:11 - EXTI6 configuration"]
#[inline (always)] pub fn exti6 (& mut self) -> Exti6W < '_ , Exticr2Spec > { Exti6W :: new (self , 8) }
#[doc = "Bits 12:15 - EXTI7 configuration"]
#[inline (always)] pub fn exti7 (& mut self) -> Exti7W < '_ , Exticr2Spec > { Exti7W :: new (self , 12) } }
#[doc = "External interrupt configuration register 2 (AFIO_EXTICR2)\n\nYou can [`read`](crate::Reg::read) this register and get [`exticr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`exticr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Exticr2Spec ; impl crate :: RegisterSpec for Exticr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`exticr2::R`](R) reader structure"] impl crate :: Readable for Exticr2Spec { }
#[doc = "`write(|w| ..)` method takes [`exticr2::W`](W) writer structure"] impl crate :: Writable for Exticr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EXTICR2 to value 0"] impl crate :: Resettable for Exticr2Spec { } }
#[doc = "EXTICR3 (rw) register accessor: External interrupt configuration register 3 (AFIO_EXTICR3)\n\nYou can [`read`](crate::Reg::read) this register and get [`exticr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`exticr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@exticr3`] module"]
#[doc (alias = "EXTICR3")] pub type Exticr3 = crate :: Reg < exticr3 :: Exticr3Spec > ;
#[doc = "External interrupt configuration register 3 (AFIO_EXTICR3)"] pub mod exticr3 {
#[doc = "Register `EXTICR3` reader"] pub type R = crate :: R < Exticr3Spec > ;
#[doc = "Register `EXTICR3` writer"] pub type W = crate :: W < Exticr3Spec > ;
#[doc = "Field `EXTI8` reader - EXTI8 configuration"] pub type Exti8R = crate :: FieldReader ;
#[doc = "Field `EXTI8` writer - EXTI8 configuration"] pub type Exti8W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EXTI9` reader - EXTI9 configuration"] pub type Exti9R = crate :: FieldReader ;
#[doc = "Field `EXTI9` writer - EXTI9 configuration"] pub type Exti9W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EXTI10` reader - EXTI10 configuration"] pub type Exti10R = crate :: FieldReader ;
#[doc = "Field `EXTI10` writer - EXTI10 configuration"] pub type Exti10W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EXTI11` reader - EXTI11 configuration"] pub type Exti11R = crate :: FieldReader ;
#[doc = "Field `EXTI11` writer - EXTI11 configuration"] pub type Exti11W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ; impl R {
#[doc = "Bits 0:3 - EXTI8 configuration"]
#[inline (always)] pub fn exti8 (& self) -> Exti8R { Exti8R :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:7 - EXTI9 configuration"]
#[inline (always)] pub fn exti9 (& self) -> Exti9R { Exti9R :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:11 - EXTI10 configuration"]
#[inline (always)] pub fn exti10 (& self) -> Exti10R { Exti10R :: new (((self . bits >> 8) & 0x0f) as u8) }
#[doc = "Bits 12:15 - EXTI11 configuration"]
#[inline (always)] pub fn exti11 (& self) -> Exti11R { Exti11R :: new (((self . bits >> 12) & 0x0f) as u8) } } impl W {
#[doc = "Bits 0:3 - EXTI8 configuration"]
#[inline (always)] pub fn exti8 (& mut self) -> Exti8W < '_ , Exticr3Spec > { Exti8W :: new (self , 0) }
#[doc = "Bits 4:7 - EXTI9 configuration"]
#[inline (always)] pub fn exti9 (& mut self) -> Exti9W < '_ , Exticr3Spec > { Exti9W :: new (self , 4) }
#[doc = "Bits 8:11 - EXTI10 configuration"]
#[inline (always)] pub fn exti10 (& mut self) -> Exti10W < '_ , Exticr3Spec > { Exti10W :: new (self , 8) }
#[doc = "Bits 12:15 - EXTI11 configuration"]
#[inline (always)] pub fn exti11 (& mut self) -> Exti11W < '_ , Exticr3Spec > { Exti11W :: new (self , 12) } }
#[doc = "External interrupt configuration register 3 (AFIO_EXTICR3)\n\nYou can [`read`](crate::Reg::read) this register and get [`exticr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`exticr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Exticr3Spec ; impl crate :: RegisterSpec for Exticr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`exticr3::R`](R) reader structure"] impl crate :: Readable for Exticr3Spec { }
#[doc = "`write(|w| ..)` method takes [`exticr3::W`](W) writer structure"] impl crate :: Writable for Exticr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EXTICR3 to value 0"] impl crate :: Resettable for Exticr3Spec { } }
#[doc = "EXTICR4 (rw) register accessor: External interrupt configuration register 4 (AFIO_EXTICR4)\n\nYou can [`read`](crate::Reg::read) this register and get [`exticr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`exticr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@exticr4`] module"]
#[doc (alias = "EXTICR4")] pub type Exticr4 = crate :: Reg < exticr4 :: Exticr4Spec > ;
#[doc = "External interrupt configuration register 4 (AFIO_EXTICR4)"] pub mod exticr4 {
#[doc = "Register `EXTICR4` reader"] pub type R = crate :: R < Exticr4Spec > ;
#[doc = "Register `EXTICR4` writer"] pub type W = crate :: W < Exticr4Spec > ;
#[doc = "Field `EXTI12` reader - EXTI12 configuration"] pub type Exti12R = crate :: FieldReader ;
#[doc = "Field `EXTI12` writer - EXTI12 configuration"] pub type Exti12W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EXTI13` reader - EXTI13 configuration"] pub type Exti13R = crate :: FieldReader ;
#[doc = "Field `EXTI13` writer - EXTI13 configuration"] pub type Exti13W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EXTI14` reader - EXTI14 configuration"] pub type Exti14R = crate :: FieldReader ;
#[doc = "Field `EXTI14` writer - EXTI14 configuration"] pub type Exti14W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EXTI15` reader - EXTI15 configuration"] pub type Exti15R = crate :: FieldReader ;
#[doc = "Field `EXTI15` writer - EXTI15 configuration"] pub type Exti15W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ; impl R {
#[doc = "Bits 0:3 - EXTI12 configuration"]
#[inline (always)] pub fn exti12 (& self) -> Exti12R { Exti12R :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:7 - EXTI13 configuration"]
#[inline (always)] pub fn exti13 (& self) -> Exti13R { Exti13R :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:11 - EXTI14 configuration"]
#[inline (always)] pub fn exti14 (& self) -> Exti14R { Exti14R :: new (((self . bits >> 8) & 0x0f) as u8) }
#[doc = "Bits 12:15 - EXTI15 configuration"]
#[inline (always)] pub fn exti15 (& self) -> Exti15R { Exti15R :: new (((self . bits >> 12) & 0x0f) as u8) } } impl W {
#[doc = "Bits 0:3 - EXTI12 configuration"]
#[inline (always)] pub fn exti12 (& mut self) -> Exti12W < '_ , Exticr4Spec > { Exti12W :: new (self , 0) }
#[doc = "Bits 4:7 - EXTI13 configuration"]
#[inline (always)] pub fn exti13 (& mut self) -> Exti13W < '_ , Exticr4Spec > { Exti13W :: new (self , 4) }
#[doc = "Bits 8:11 - EXTI14 configuration"]
#[inline (always)] pub fn exti14 (& mut self) -> Exti14W < '_ , Exticr4Spec > { Exti14W :: new (self , 8) }
#[doc = "Bits 12:15 - EXTI15 configuration"]
#[inline (always)] pub fn exti15 (& mut self) -> Exti15W < '_ , Exticr4Spec > { Exti15W :: new (self , 12) } }
#[doc = "External interrupt configuration register 4 (AFIO_EXTICR4)\n\nYou can [`read`](crate::Reg::read) this register and get [`exticr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`exticr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Exticr4Spec ; impl crate :: RegisterSpec for Exticr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`exticr4::R`](R) reader structure"] impl crate :: Readable for Exticr4Spec { }
#[doc = "`write(|w| ..)` method takes [`exticr4::W`](W) writer structure"] impl crate :: Writable for Exticr4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EXTICR4 to value 0"] impl crate :: Resettable for Exticr4Spec { } }
#[doc = "MAPR2 (rw) register accessor: AF remap and debug I/O configuration register\n\nYou can [`read`](crate::Reg::read) this register and get [`mapr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mapr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mapr2`] module"]
#[doc (alias = "MAPR2")] pub type Mapr2 = crate :: Reg < mapr2 :: Mapr2Spec > ;
#[doc = "AF remap and debug I/O configuration register"] pub mod mapr2 {
#[doc = "Register `MAPR2` reader"] pub type R = crate :: R < Mapr2Spec > ;
#[doc = "Register `MAPR2` writer"] pub type W = crate :: W < Mapr2Spec > ;
#[doc = "Field `TIM9_REMAP` reader - TIM9 remapping"] pub type Tim9RemapR = crate :: BitReader ;
#[doc = "Field `TIM9_REMAP` writer - TIM9 remapping"] pub type Tim9RemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM10_REMAP` reader - TIM10 remapping"] pub type Tim10RemapR = crate :: BitReader ;
#[doc = "Field `TIM10_REMAP` writer - TIM10 remapping"] pub type Tim10RemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM11_REMAP` reader - TIM11 remapping"] pub type Tim11RemapR = crate :: BitReader ;
#[doc = "Field `TIM11_REMAP` writer - TIM11 remapping"] pub type Tim11RemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM13_REMAP` reader - TIM13 remapping"] pub type Tim13RemapR = crate :: BitReader ;
#[doc = "Field `TIM13_REMAP` writer - TIM13 remapping"] pub type Tim13RemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIM14_REMAP` reader - TIM14 remapping"] pub type Tim14RemapR = crate :: BitReader ;
#[doc = "Field `TIM14_REMAP` writer - TIM14 remapping"] pub type Tim14RemapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSMC_NADV` reader - NADV connect/disconnect"] pub type FsmcNadvR = crate :: BitReader ;
#[doc = "Field `FSMC_NADV` writer - NADV connect/disconnect"] pub type FsmcNadvW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 5 - TIM9 remapping"]
#[inline (always)] pub fn tim9_remap (& self) -> Tim9RemapR { Tim9RemapR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - TIM10 remapping"]
#[inline (always)] pub fn tim10_remap (& self) -> Tim10RemapR { Tim10RemapR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - TIM11 remapping"]
#[inline (always)] pub fn tim11_remap (& self) -> Tim11RemapR { Tim11RemapR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - TIM13 remapping"]
#[inline (always)] pub fn tim13_remap (& self) -> Tim13RemapR { Tim13RemapR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - TIM14 remapping"]
#[inline (always)] pub fn tim14_remap (& self) -> Tim14RemapR { Tim14RemapR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - NADV connect/disconnect"]
#[inline (always)] pub fn fsmc_nadv (& self) -> FsmcNadvR { FsmcNadvR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 5 - TIM9 remapping"]
#[inline (always)] pub fn tim9_remap (& mut self) -> Tim9RemapW < '_ , Mapr2Spec > { Tim9RemapW :: new (self , 5) }
#[doc = "Bit 6 - TIM10 remapping"]
#[inline (always)] pub fn tim10_remap (& mut self) -> Tim10RemapW < '_ , Mapr2Spec > { Tim10RemapW :: new (self , 6) }
#[doc = "Bit 7 - TIM11 remapping"]
#[inline (always)] pub fn tim11_remap (& mut self) -> Tim11RemapW < '_ , Mapr2Spec > { Tim11RemapW :: new (self , 7) }
#[doc = "Bit 8 - TIM13 remapping"]
#[inline (always)] pub fn tim13_remap (& mut self) -> Tim13RemapW < '_ , Mapr2Spec > { Tim13RemapW :: new (self , 8) }
#[doc = "Bit 9 - TIM14 remapping"]
#[inline (always)] pub fn tim14_remap (& mut self) -> Tim14RemapW < '_ , Mapr2Spec > { Tim14RemapW :: new (self , 9) }
#[doc = "Bit 10 - NADV connect/disconnect"]
#[inline (always)] pub fn fsmc_nadv (& mut self) -> FsmcNadvW < '_ , Mapr2Spec > { FsmcNadvW :: new (self , 10) } }
#[doc = "AF remap and debug I/O configuration register\n\nYou can [`read`](crate::Reg::read) this register and get [`mapr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mapr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Mapr2Spec ; impl crate :: RegisterSpec for Mapr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`mapr2::R`](R) reader structure"] impl crate :: Readable for Mapr2Spec { }
#[doc = "`write(|w| ..)` method takes [`mapr2::W`](W) writer structure"] impl crate :: Writable for Mapr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MAPR2 to value 0"] impl crate :: Resettable for Mapr2Spec { } } }
#[doc = "EXTI"] pub type Exti = crate :: Periph < exti :: RegisterBlock , 0x4001_0400 > ; impl core :: fmt :: Debug for Exti { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Exti") . finish () } }
#[doc = "EXTI"] pub mod exti {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { imr : Imr , emr : Emr , rtsr : Rtsr , ftsr : Ftsr , swier : Swier , pr : Pr , } impl RegisterBlock {
#[doc = "0x00 - Interrupt mask register (EXTI_IMR)"]
#[inline (always)] pub const fn imr (& self) -> & Imr { & self . imr }
#[doc = "0x04 - Event mask register (EXTI_EMR)"]
#[inline (always)] pub const fn emr (& self) -> & Emr { & self . emr }
#[doc = "0x08 - Rising Trigger selection register (EXTI_RTSR)"]
#[inline (always)] pub const fn rtsr (& self) -> & Rtsr { & self . rtsr }
#[doc = "0x0c - Falling Trigger selection register (EXTI_FTSR)"]
#[inline (always)] pub const fn ftsr (& self) -> & Ftsr { & self . ftsr }
#[doc = "0x10 - Software interrupt event register (EXTI_SWIER)"]
#[inline (always)] pub const fn swier (& self) -> & Swier { & self . swier }
#[doc = "0x14 - Pending register (EXTI_PR)"]
#[inline (always)] pub const fn pr (& self) -> & Pr { & self . pr } }
#[doc = "IMR (rw) register accessor: Interrupt mask register (EXTI_IMR)\n\nYou can [`read`](crate::Reg::read) this register and get [`imr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`imr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@imr`] module"]
#[doc (alias = "IMR")] pub type Imr = crate :: Reg < imr :: ImrSpec > ;
#[doc = "Interrupt mask register (EXTI_IMR)"] pub mod imr {
#[doc = "Register `IMR` reader"] pub type R = crate :: R < ImrSpec > ;
#[doc = "Register `IMR` writer"] pub type W = crate :: W < ImrSpec > ;
#[doc = "Field `MR0` reader - Interrupt Mask on line 0"] pub type Mr0R = crate :: BitReader ;
#[doc = "Field `MR0` writer - Interrupt Mask on line 0"] pub type Mr0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR1` reader - Interrupt Mask on line 1"] pub type Mr1R = crate :: BitReader ;
#[doc = "Field `MR1` writer - Interrupt Mask on line 1"] pub type Mr1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR2` reader - Interrupt Mask on line 2"] pub type Mr2R = crate :: BitReader ;
#[doc = "Field `MR2` writer - Interrupt Mask on line 2"] pub type Mr2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR3` reader - Interrupt Mask on line 3"] pub type Mr3R = crate :: BitReader ;
#[doc = "Field `MR3` writer - Interrupt Mask on line 3"] pub type Mr3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR4` reader - Interrupt Mask on line 4"] pub type Mr4R = crate :: BitReader ;
#[doc = "Field `MR4` writer - Interrupt Mask on line 4"] pub type Mr4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR5` reader - Interrupt Mask on line 5"] pub type Mr5R = crate :: BitReader ;
#[doc = "Field `MR5` writer - Interrupt Mask on line 5"] pub type Mr5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR6` reader - Interrupt Mask on line 6"] pub type Mr6R = crate :: BitReader ;
#[doc = "Field `MR6` writer - Interrupt Mask on line 6"] pub type Mr6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR7` reader - Interrupt Mask on line 7"] pub type Mr7R = crate :: BitReader ;
#[doc = "Field `MR7` writer - Interrupt Mask on line 7"] pub type Mr7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR8` reader - Interrupt Mask on line 8"] pub type Mr8R = crate :: BitReader ;
#[doc = "Field `MR8` writer - Interrupt Mask on line 8"] pub type Mr8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR9` reader - Interrupt Mask on line 9"] pub type Mr9R = crate :: BitReader ;
#[doc = "Field `MR9` writer - Interrupt Mask on line 9"] pub type Mr9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR10` reader - Interrupt Mask on line 10"] pub type Mr10R = crate :: BitReader ;
#[doc = "Field `MR10` writer - Interrupt Mask on line 10"] pub type Mr10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR11` reader - Interrupt Mask on line 11"] pub type Mr11R = crate :: BitReader ;
#[doc = "Field `MR11` writer - Interrupt Mask on line 11"] pub type Mr11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR12` reader - Interrupt Mask on line 12"] pub type Mr12R = crate :: BitReader ;
#[doc = "Field `MR12` writer - Interrupt Mask on line 12"] pub type Mr12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR13` reader - Interrupt Mask on line 13"] pub type Mr13R = crate :: BitReader ;
#[doc = "Field `MR13` writer - Interrupt Mask on line 13"] pub type Mr13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR14` reader - Interrupt Mask on line 14"] pub type Mr14R = crate :: BitReader ;
#[doc = "Field `MR14` writer - Interrupt Mask on line 14"] pub type Mr14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR15` reader - Interrupt Mask on line 15"] pub type Mr15R = crate :: BitReader ;
#[doc = "Field `MR15` writer - Interrupt Mask on line 15"] pub type Mr15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR16` reader - Interrupt Mask on line 16"] pub type Mr16R = crate :: BitReader ;
#[doc = "Field `MR16` writer - Interrupt Mask on line 16"] pub type Mr16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR17` reader - Interrupt Mask on line 17"] pub type Mr17R = crate :: BitReader ;
#[doc = "Field `MR17` writer - Interrupt Mask on line 17"] pub type Mr17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR18` reader - Interrupt Mask on line 18"] pub type Mr18R = crate :: BitReader ;
#[doc = "Field `MR18` writer - Interrupt Mask on line 18"] pub type Mr18W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Interrupt Mask on line 0"]
#[inline (always)] pub fn mr0 (& self) -> Mr0R { Mr0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Interrupt Mask on line 1"]
#[inline (always)] pub fn mr1 (& self) -> Mr1R { Mr1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Interrupt Mask on line 2"]
#[inline (always)] pub fn mr2 (& self) -> Mr2R { Mr2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Interrupt Mask on line 3"]
#[inline (always)] pub fn mr3 (& self) -> Mr3R { Mr3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Interrupt Mask on line 4"]
#[inline (always)] pub fn mr4 (& self) -> Mr4R { Mr4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Interrupt Mask on line 5"]
#[inline (always)] pub fn mr5 (& self) -> Mr5R { Mr5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Interrupt Mask on line 6"]
#[inline (always)] pub fn mr6 (& self) -> Mr6R { Mr6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Interrupt Mask on line 7"]
#[inline (always)] pub fn mr7 (& self) -> Mr7R { Mr7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Interrupt Mask on line 8"]
#[inline (always)] pub fn mr8 (& self) -> Mr8R { Mr8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Interrupt Mask on line 9"]
#[inline (always)] pub fn mr9 (& self) -> Mr9R { Mr9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Interrupt Mask on line 10"]
#[inline (always)] pub fn mr10 (& self) -> Mr10R { Mr10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Interrupt Mask on line 11"]
#[inline (always)] pub fn mr11 (& self) -> Mr11R { Mr11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Interrupt Mask on line 12"]
#[inline (always)] pub fn mr12 (& self) -> Mr12R { Mr12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Interrupt Mask on line 13"]
#[inline (always)] pub fn mr13 (& self) -> Mr13R { Mr13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Interrupt Mask on line 14"]
#[inline (always)] pub fn mr14 (& self) -> Mr14R { Mr14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Interrupt Mask on line 15"]
#[inline (always)] pub fn mr15 (& self) -> Mr15R { Mr15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Interrupt Mask on line 16"]
#[inline (always)] pub fn mr16 (& self) -> Mr16R { Mr16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Interrupt Mask on line 17"]
#[inline (always)] pub fn mr17 (& self) -> Mr17R { Mr17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Interrupt Mask on line 18"]
#[inline (always)] pub fn mr18 (& self) -> Mr18R { Mr18R :: new (((self . bits >> 18) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Interrupt Mask on line 0"]
#[inline (always)] pub fn mr0 (& mut self) -> Mr0W < '_ , ImrSpec > { Mr0W :: new (self , 0) }
#[doc = "Bit 1 - Interrupt Mask on line 1"]
#[inline (always)] pub fn mr1 (& mut self) -> Mr1W < '_ , ImrSpec > { Mr1W :: new (self , 1) }
#[doc = "Bit 2 - Interrupt Mask on line 2"]
#[inline (always)] pub fn mr2 (& mut self) -> Mr2W < '_ , ImrSpec > { Mr2W :: new (self , 2) }
#[doc = "Bit 3 - Interrupt Mask on line 3"]
#[inline (always)] pub fn mr3 (& mut self) -> Mr3W < '_ , ImrSpec > { Mr3W :: new (self , 3) }
#[doc = "Bit 4 - Interrupt Mask on line 4"]
#[inline (always)] pub fn mr4 (& mut self) -> Mr4W < '_ , ImrSpec > { Mr4W :: new (self , 4) }
#[doc = "Bit 5 - Interrupt Mask on line 5"]
#[inline (always)] pub fn mr5 (& mut self) -> Mr5W < '_ , ImrSpec > { Mr5W :: new (self , 5) }
#[doc = "Bit 6 - Interrupt Mask on line 6"]
#[inline (always)] pub fn mr6 (& mut self) -> Mr6W < '_ , ImrSpec > { Mr6W :: new (self , 6) }
#[doc = "Bit 7 - Interrupt Mask on line 7"]
#[inline (always)] pub fn mr7 (& mut self) -> Mr7W < '_ , ImrSpec > { Mr7W :: new (self , 7) }
#[doc = "Bit 8 - Interrupt Mask on line 8"]
#[inline (always)] pub fn mr8 (& mut self) -> Mr8W < '_ , ImrSpec > { Mr8W :: new (self , 8) }
#[doc = "Bit 9 - Interrupt Mask on line 9"]
#[inline (always)] pub fn mr9 (& mut self) -> Mr9W < '_ , ImrSpec > { Mr9W :: new (self , 9) }
#[doc = "Bit 10 - Interrupt Mask on line 10"]
#[inline (always)] pub fn mr10 (& mut self) -> Mr10W < '_ , ImrSpec > { Mr10W :: new (self , 10) }
#[doc = "Bit 11 - Interrupt Mask on line 11"]
#[inline (always)] pub fn mr11 (& mut self) -> Mr11W < '_ , ImrSpec > { Mr11W :: new (self , 11) }
#[doc = "Bit 12 - Interrupt Mask on line 12"]
#[inline (always)] pub fn mr12 (& mut self) -> Mr12W < '_ , ImrSpec > { Mr12W :: new (self , 12) }
#[doc = "Bit 13 - Interrupt Mask on line 13"]
#[inline (always)] pub fn mr13 (& mut self) -> Mr13W < '_ , ImrSpec > { Mr13W :: new (self , 13) }
#[doc = "Bit 14 - Interrupt Mask on line 14"]
#[inline (always)] pub fn mr14 (& mut self) -> Mr14W < '_ , ImrSpec > { Mr14W :: new (self , 14) }
#[doc = "Bit 15 - Interrupt Mask on line 15"]
#[inline (always)] pub fn mr15 (& mut self) -> Mr15W < '_ , ImrSpec > { Mr15W :: new (self , 15) }
#[doc = "Bit 16 - Interrupt Mask on line 16"]
#[inline (always)] pub fn mr16 (& mut self) -> Mr16W < '_ , ImrSpec > { Mr16W :: new (self , 16) }
#[doc = "Bit 17 - Interrupt Mask on line 17"]
#[inline (always)] pub fn mr17 (& mut self) -> Mr17W < '_ , ImrSpec > { Mr17W :: new (self , 17) }
#[doc = "Bit 18 - Interrupt Mask on line 18"]
#[inline (always)] pub fn mr18 (& mut self) -> Mr18W < '_ , ImrSpec > { Mr18W :: new (self , 18) } }
#[doc = "Interrupt mask register (EXTI_IMR)\n\nYou can [`read`](crate::Reg::read) this register and get [`imr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`imr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct ImrSpec ; impl crate :: RegisterSpec for ImrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`imr::R`](R) reader structure"] impl crate :: Readable for ImrSpec { }
#[doc = "`write(|w| ..)` method takes [`imr::W`](W) writer structure"] impl crate :: Writable for ImrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets IMR to value 0"] impl crate :: Resettable for ImrSpec { } }
#[doc = "EMR (rw) register accessor: Event mask register (EXTI_EMR)\n\nYou can [`read`](crate::Reg::read) this register and get [`emr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`emr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@emr`] module"]
#[doc (alias = "EMR")] pub type Emr = crate :: Reg < emr :: EmrSpec > ;
#[doc = "Event mask register (EXTI_EMR)"] pub mod emr {
#[doc = "Register `EMR` reader"] pub type R = crate :: R < EmrSpec > ;
#[doc = "Register `EMR` writer"] pub type W = crate :: W < EmrSpec > ;
#[doc = "Field `MR0` reader - Event Mask on line 0"] pub type Mr0R = crate :: BitReader ;
#[doc = "Field `MR0` writer - Event Mask on line 0"] pub type Mr0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR1` reader - Event Mask on line 1"] pub type Mr1R = crate :: BitReader ;
#[doc = "Field `MR1` writer - Event Mask on line 1"] pub type Mr1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR2` reader - Event Mask on line 2"] pub type Mr2R = crate :: BitReader ;
#[doc = "Field `MR2` writer - Event Mask on line 2"] pub type Mr2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR3` reader - Event Mask on line 3"] pub type Mr3R = crate :: BitReader ;
#[doc = "Field `MR3` writer - Event Mask on line 3"] pub type Mr3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR4` reader - Event Mask on line 4"] pub type Mr4R = crate :: BitReader ;
#[doc = "Field `MR4` writer - Event Mask on line 4"] pub type Mr4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR5` reader - Event Mask on line 5"] pub type Mr5R = crate :: BitReader ;
#[doc = "Field `MR5` writer - Event Mask on line 5"] pub type Mr5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR6` reader - Event Mask on line 6"] pub type Mr6R = crate :: BitReader ;
#[doc = "Field `MR6` writer - Event Mask on line 6"] pub type Mr6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR7` reader - Event Mask on line 7"] pub type Mr7R = crate :: BitReader ;
#[doc = "Field `MR7` writer - Event Mask on line 7"] pub type Mr7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR8` reader - Event Mask on line 8"] pub type Mr8R = crate :: BitReader ;
#[doc = "Field `MR8` writer - Event Mask on line 8"] pub type Mr8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR9` reader - Event Mask on line 9"] pub type Mr9R = crate :: BitReader ;
#[doc = "Field `MR9` writer - Event Mask on line 9"] pub type Mr9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR10` reader - Event Mask on line 10"] pub type Mr10R = crate :: BitReader ;
#[doc = "Field `MR10` writer - Event Mask on line 10"] pub type Mr10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR11` reader - Event Mask on line 11"] pub type Mr11R = crate :: BitReader ;
#[doc = "Field `MR11` writer - Event Mask on line 11"] pub type Mr11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR12` reader - Event Mask on line 12"] pub type Mr12R = crate :: BitReader ;
#[doc = "Field `MR12` writer - Event Mask on line 12"] pub type Mr12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR13` reader - Event Mask on line 13"] pub type Mr13R = crate :: BitReader ;
#[doc = "Field `MR13` writer - Event Mask on line 13"] pub type Mr13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR14` reader - Event Mask on line 14"] pub type Mr14R = crate :: BitReader ;
#[doc = "Field `MR14` writer - Event Mask on line 14"] pub type Mr14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR15` reader - Event Mask on line 15"] pub type Mr15R = crate :: BitReader ;
#[doc = "Field `MR15` writer - Event Mask on line 15"] pub type Mr15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR16` reader - Event Mask on line 16"] pub type Mr16R = crate :: BitReader ;
#[doc = "Field `MR16` writer - Event Mask on line 16"] pub type Mr16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR17` reader - Event Mask on line 17"] pub type Mr17R = crate :: BitReader ;
#[doc = "Field `MR17` writer - Event Mask on line 17"] pub type Mr17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MR18` reader - Event Mask on line 18"] pub type Mr18R = crate :: BitReader ;
#[doc = "Field `MR18` writer - Event Mask on line 18"] pub type Mr18W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Event Mask on line 0"]
#[inline (always)] pub fn mr0 (& self) -> Mr0R { Mr0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Event Mask on line 1"]
#[inline (always)] pub fn mr1 (& self) -> Mr1R { Mr1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Event Mask on line 2"]
#[inline (always)] pub fn mr2 (& self) -> Mr2R { Mr2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Event Mask on line 3"]
#[inline (always)] pub fn mr3 (& self) -> Mr3R { Mr3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Event Mask on line 4"]
#[inline (always)] pub fn mr4 (& self) -> Mr4R { Mr4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Event Mask on line 5"]
#[inline (always)] pub fn mr5 (& self) -> Mr5R { Mr5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Event Mask on line 6"]
#[inline (always)] pub fn mr6 (& self) -> Mr6R { Mr6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Event Mask on line 7"]
#[inline (always)] pub fn mr7 (& self) -> Mr7R { Mr7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Event Mask on line 8"]
#[inline (always)] pub fn mr8 (& self) -> Mr8R { Mr8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Event Mask on line 9"]
#[inline (always)] pub fn mr9 (& self) -> Mr9R { Mr9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Event Mask on line 10"]
#[inline (always)] pub fn mr10 (& self) -> Mr10R { Mr10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Event Mask on line 11"]
#[inline (always)] pub fn mr11 (& self) -> Mr11R { Mr11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Event Mask on line 12"]
#[inline (always)] pub fn mr12 (& self) -> Mr12R { Mr12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Event Mask on line 13"]
#[inline (always)] pub fn mr13 (& self) -> Mr13R { Mr13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Event Mask on line 14"]
#[inline (always)] pub fn mr14 (& self) -> Mr14R { Mr14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Event Mask on line 15"]
#[inline (always)] pub fn mr15 (& self) -> Mr15R { Mr15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Event Mask on line 16"]
#[inline (always)] pub fn mr16 (& self) -> Mr16R { Mr16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Event Mask on line 17"]
#[inline (always)] pub fn mr17 (& self) -> Mr17R { Mr17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Event Mask on line 18"]
#[inline (always)] pub fn mr18 (& self) -> Mr18R { Mr18R :: new (((self . bits >> 18) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Event Mask on line 0"]
#[inline (always)] pub fn mr0 (& mut self) -> Mr0W < '_ , EmrSpec > { Mr0W :: new (self , 0) }
#[doc = "Bit 1 - Event Mask on line 1"]
#[inline (always)] pub fn mr1 (& mut self) -> Mr1W < '_ , EmrSpec > { Mr1W :: new (self , 1) }
#[doc = "Bit 2 - Event Mask on line 2"]
#[inline (always)] pub fn mr2 (& mut self) -> Mr2W < '_ , EmrSpec > { Mr2W :: new (self , 2) }
#[doc = "Bit 3 - Event Mask on line 3"]
#[inline (always)] pub fn mr3 (& mut self) -> Mr3W < '_ , EmrSpec > { Mr3W :: new (self , 3) }
#[doc = "Bit 4 - Event Mask on line 4"]
#[inline (always)] pub fn mr4 (& mut self) -> Mr4W < '_ , EmrSpec > { Mr4W :: new (self , 4) }
#[doc = "Bit 5 - Event Mask on line 5"]
#[inline (always)] pub fn mr5 (& mut self) -> Mr5W < '_ , EmrSpec > { Mr5W :: new (self , 5) }
#[doc = "Bit 6 - Event Mask on line 6"]
#[inline (always)] pub fn mr6 (& mut self) -> Mr6W < '_ , EmrSpec > { Mr6W :: new (self , 6) }
#[doc = "Bit 7 - Event Mask on line 7"]
#[inline (always)] pub fn mr7 (& mut self) -> Mr7W < '_ , EmrSpec > { Mr7W :: new (self , 7) }
#[doc = "Bit 8 - Event Mask on line 8"]
#[inline (always)] pub fn mr8 (& mut self) -> Mr8W < '_ , EmrSpec > { Mr8W :: new (self , 8) }
#[doc = "Bit 9 - Event Mask on line 9"]
#[inline (always)] pub fn mr9 (& mut self) -> Mr9W < '_ , EmrSpec > { Mr9W :: new (self , 9) }
#[doc = "Bit 10 - Event Mask on line 10"]
#[inline (always)] pub fn mr10 (& mut self) -> Mr10W < '_ , EmrSpec > { Mr10W :: new (self , 10) }
#[doc = "Bit 11 - Event Mask on line 11"]
#[inline (always)] pub fn mr11 (& mut self) -> Mr11W < '_ , EmrSpec > { Mr11W :: new (self , 11) }
#[doc = "Bit 12 - Event Mask on line 12"]
#[inline (always)] pub fn mr12 (& mut self) -> Mr12W < '_ , EmrSpec > { Mr12W :: new (self , 12) }
#[doc = "Bit 13 - Event Mask on line 13"]
#[inline (always)] pub fn mr13 (& mut self) -> Mr13W < '_ , EmrSpec > { Mr13W :: new (self , 13) }
#[doc = "Bit 14 - Event Mask on line 14"]
#[inline (always)] pub fn mr14 (& mut self) -> Mr14W < '_ , EmrSpec > { Mr14W :: new (self , 14) }
#[doc = "Bit 15 - Event Mask on line 15"]
#[inline (always)] pub fn mr15 (& mut self) -> Mr15W < '_ , EmrSpec > { Mr15W :: new (self , 15) }
#[doc = "Bit 16 - Event Mask on line 16"]
#[inline (always)] pub fn mr16 (& mut self) -> Mr16W < '_ , EmrSpec > { Mr16W :: new (self , 16) }
#[doc = "Bit 17 - Event Mask on line 17"]
#[inline (always)] pub fn mr17 (& mut self) -> Mr17W < '_ , EmrSpec > { Mr17W :: new (self , 17) }
#[doc = "Bit 18 - Event Mask on line 18"]
#[inline (always)] pub fn mr18 (& mut self) -> Mr18W < '_ , EmrSpec > { Mr18W :: new (self , 18) } }
#[doc = "Event mask register (EXTI_EMR)\n\nYou can [`read`](crate::Reg::read) this register and get [`emr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`emr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct EmrSpec ; impl crate :: RegisterSpec for EmrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`emr::R`](R) reader structure"] impl crate :: Readable for EmrSpec { }
#[doc = "`write(|w| ..)` method takes [`emr::W`](W) writer structure"] impl crate :: Writable for EmrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EMR to value 0"] impl crate :: Resettable for EmrSpec { } }
#[doc = "RTSR (rw) register accessor: Rising Trigger selection register (EXTI_RTSR)\n\nYou can [`read`](crate::Reg::read) this register and get [`rtsr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtsr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rtsr`] module"]
#[doc (alias = "RTSR")] pub type Rtsr = crate :: Reg < rtsr :: RtsrSpec > ;
#[doc = "Rising Trigger selection register (EXTI_RTSR)"] pub mod rtsr {
#[doc = "Register `RTSR` reader"] pub type R = crate :: R < RtsrSpec > ;
#[doc = "Register `RTSR` writer"] pub type W = crate :: W < RtsrSpec > ;
#[doc = "Field `TR0` reader - Rising trigger event configuration of line 0"] pub type Tr0R = crate :: BitReader ;
#[doc = "Field `TR0` writer - Rising trigger event configuration of line 0"] pub type Tr0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR1` reader - Rising trigger event configuration of line 1"] pub type Tr1R = crate :: BitReader ;
#[doc = "Field `TR1` writer - Rising trigger event configuration of line 1"] pub type Tr1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR2` reader - Rising trigger event configuration of line 2"] pub type Tr2R = crate :: BitReader ;
#[doc = "Field `TR2` writer - Rising trigger event configuration of line 2"] pub type Tr2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR3` reader - Rising trigger event configuration of line 3"] pub type Tr3R = crate :: BitReader ;
#[doc = "Field `TR3` writer - Rising trigger event configuration of line 3"] pub type Tr3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR4` reader - Rising trigger event configuration of line 4"] pub type Tr4R = crate :: BitReader ;
#[doc = "Field `TR4` writer - Rising trigger event configuration of line 4"] pub type Tr4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR5` reader - Rising trigger event configuration of line 5"] pub type Tr5R = crate :: BitReader ;
#[doc = "Field `TR5` writer - Rising trigger event configuration of line 5"] pub type Tr5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR6` reader - Rising trigger event configuration of line 6"] pub type Tr6R = crate :: BitReader ;
#[doc = "Field `TR6` writer - Rising trigger event configuration of line 6"] pub type Tr6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR7` reader - Rising trigger event configuration of line 7"] pub type Tr7R = crate :: BitReader ;
#[doc = "Field `TR7` writer - Rising trigger event configuration of line 7"] pub type Tr7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR8` reader - Rising trigger event configuration of line 8"] pub type Tr8R = crate :: BitReader ;
#[doc = "Field `TR8` writer - Rising trigger event configuration of line 8"] pub type Tr8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR9` reader - Rising trigger event configuration of line 9"] pub type Tr9R = crate :: BitReader ;
#[doc = "Field `TR9` writer - Rising trigger event configuration of line 9"] pub type Tr9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR10` reader - Rising trigger event configuration of line 10"] pub type Tr10R = crate :: BitReader ;
#[doc = "Field `TR10` writer - Rising trigger event configuration of line 10"] pub type Tr10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR11` reader - Rising trigger event configuration of line 11"] pub type Tr11R = crate :: BitReader ;
#[doc = "Field `TR11` writer - Rising trigger event configuration of line 11"] pub type Tr11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR12` reader - Rising trigger event configuration of line 12"] pub type Tr12R = crate :: BitReader ;
#[doc = "Field `TR12` writer - Rising trigger event configuration of line 12"] pub type Tr12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR13` reader - Rising trigger event configuration of line 13"] pub type Tr13R = crate :: BitReader ;
#[doc = "Field `TR13` writer - Rising trigger event configuration of line 13"] pub type Tr13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR14` reader - Rising trigger event configuration of line 14"] pub type Tr14R = crate :: BitReader ;
#[doc = "Field `TR14` writer - Rising trigger event configuration of line 14"] pub type Tr14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR15` reader - Rising trigger event configuration of line 15"] pub type Tr15R = crate :: BitReader ;
#[doc = "Field `TR15` writer - Rising trigger event configuration of line 15"] pub type Tr15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR16` reader - Rising trigger event configuration of line 16"] pub type Tr16R = crate :: BitReader ;
#[doc = "Field `TR16` writer - Rising trigger event configuration of line 16"] pub type Tr16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR17` reader - Rising trigger event configuration of line 17"] pub type Tr17R = crate :: BitReader ;
#[doc = "Field `TR17` writer - Rising trigger event configuration of line 17"] pub type Tr17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR18` reader - Rising trigger event configuration of line 18"] pub type Tr18R = crate :: BitReader ;
#[doc = "Field `TR18` writer - Rising trigger event configuration of line 18"] pub type Tr18W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Rising trigger event configuration of line 0"]
#[inline (always)] pub fn tr0 (& self) -> Tr0R { Tr0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Rising trigger event configuration of line 1"]
#[inline (always)] pub fn tr1 (& self) -> Tr1R { Tr1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Rising trigger event configuration of line 2"]
#[inline (always)] pub fn tr2 (& self) -> Tr2R { Tr2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Rising trigger event configuration of line 3"]
#[inline (always)] pub fn tr3 (& self) -> Tr3R { Tr3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Rising trigger event configuration of line 4"]
#[inline (always)] pub fn tr4 (& self) -> Tr4R { Tr4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Rising trigger event configuration of line 5"]
#[inline (always)] pub fn tr5 (& self) -> Tr5R { Tr5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Rising trigger event configuration of line 6"]
#[inline (always)] pub fn tr6 (& self) -> Tr6R { Tr6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Rising trigger event configuration of line 7"]
#[inline (always)] pub fn tr7 (& self) -> Tr7R { Tr7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Rising trigger event configuration of line 8"]
#[inline (always)] pub fn tr8 (& self) -> Tr8R { Tr8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Rising trigger event configuration of line 9"]
#[inline (always)] pub fn tr9 (& self) -> Tr9R { Tr9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Rising trigger event configuration of line 10"]
#[inline (always)] pub fn tr10 (& self) -> Tr10R { Tr10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Rising trigger event configuration of line 11"]
#[inline (always)] pub fn tr11 (& self) -> Tr11R { Tr11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Rising trigger event configuration of line 12"]
#[inline (always)] pub fn tr12 (& self) -> Tr12R { Tr12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Rising trigger event configuration of line 13"]
#[inline (always)] pub fn tr13 (& self) -> Tr13R { Tr13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Rising trigger event configuration of line 14"]
#[inline (always)] pub fn tr14 (& self) -> Tr14R { Tr14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Rising trigger event configuration of line 15"]
#[inline (always)] pub fn tr15 (& self) -> Tr15R { Tr15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Rising trigger event configuration of line 16"]
#[inline (always)] pub fn tr16 (& self) -> Tr16R { Tr16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Rising trigger event configuration of line 17"]
#[inline (always)] pub fn tr17 (& self) -> Tr17R { Tr17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Rising trigger event configuration of line 18"]
#[inline (always)] pub fn tr18 (& self) -> Tr18R { Tr18R :: new (((self . bits >> 18) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Rising trigger event configuration of line 0"]
#[inline (always)] pub fn tr0 (& mut self) -> Tr0W < '_ , RtsrSpec > { Tr0W :: new (self , 0) }
#[doc = "Bit 1 - Rising trigger event configuration of line 1"]
#[inline (always)] pub fn tr1 (& mut self) -> Tr1W < '_ , RtsrSpec > { Tr1W :: new (self , 1) }
#[doc = "Bit 2 - Rising trigger event configuration of line 2"]
#[inline (always)] pub fn tr2 (& mut self) -> Tr2W < '_ , RtsrSpec > { Tr2W :: new (self , 2) }
#[doc = "Bit 3 - Rising trigger event configuration of line 3"]
#[inline (always)] pub fn tr3 (& mut self) -> Tr3W < '_ , RtsrSpec > { Tr3W :: new (self , 3) }
#[doc = "Bit 4 - Rising trigger event configuration of line 4"]
#[inline (always)] pub fn tr4 (& mut self) -> Tr4W < '_ , RtsrSpec > { Tr4W :: new (self , 4) }
#[doc = "Bit 5 - Rising trigger event configuration of line 5"]
#[inline (always)] pub fn tr5 (& mut self) -> Tr5W < '_ , RtsrSpec > { Tr5W :: new (self , 5) }
#[doc = "Bit 6 - Rising trigger event configuration of line 6"]
#[inline (always)] pub fn tr6 (& mut self) -> Tr6W < '_ , RtsrSpec > { Tr6W :: new (self , 6) }
#[doc = "Bit 7 - Rising trigger event configuration of line 7"]
#[inline (always)] pub fn tr7 (& mut self) -> Tr7W < '_ , RtsrSpec > { Tr7W :: new (self , 7) }
#[doc = "Bit 8 - Rising trigger event configuration of line 8"]
#[inline (always)] pub fn tr8 (& mut self) -> Tr8W < '_ , RtsrSpec > { Tr8W :: new (self , 8) }
#[doc = "Bit 9 - Rising trigger event configuration of line 9"]
#[inline (always)] pub fn tr9 (& mut self) -> Tr9W < '_ , RtsrSpec > { Tr9W :: new (self , 9) }
#[doc = "Bit 10 - Rising trigger event configuration of line 10"]
#[inline (always)] pub fn tr10 (& mut self) -> Tr10W < '_ , RtsrSpec > { Tr10W :: new (self , 10) }
#[doc = "Bit 11 - Rising trigger event configuration of line 11"]
#[inline (always)] pub fn tr11 (& mut self) -> Tr11W < '_ , RtsrSpec > { Tr11W :: new (self , 11) }
#[doc = "Bit 12 - Rising trigger event configuration of line 12"]
#[inline (always)] pub fn tr12 (& mut self) -> Tr12W < '_ , RtsrSpec > { Tr12W :: new (self , 12) }
#[doc = "Bit 13 - Rising trigger event configuration of line 13"]
#[inline (always)] pub fn tr13 (& mut self) -> Tr13W < '_ , RtsrSpec > { Tr13W :: new (self , 13) }
#[doc = "Bit 14 - Rising trigger event configuration of line 14"]
#[inline (always)] pub fn tr14 (& mut self) -> Tr14W < '_ , RtsrSpec > { Tr14W :: new (self , 14) }
#[doc = "Bit 15 - Rising trigger event configuration of line 15"]
#[inline (always)] pub fn tr15 (& mut self) -> Tr15W < '_ , RtsrSpec > { Tr15W :: new (self , 15) }
#[doc = "Bit 16 - Rising trigger event configuration of line 16"]
#[inline (always)] pub fn tr16 (& mut self) -> Tr16W < '_ , RtsrSpec > { Tr16W :: new (self , 16) }
#[doc = "Bit 17 - Rising trigger event configuration of line 17"]
#[inline (always)] pub fn tr17 (& mut self) -> Tr17W < '_ , RtsrSpec > { Tr17W :: new (self , 17) }
#[doc = "Bit 18 - Rising trigger event configuration of line 18"]
#[inline (always)] pub fn tr18 (& mut self) -> Tr18W < '_ , RtsrSpec > { Tr18W :: new (self , 18) } }
#[doc = "Rising Trigger selection register (EXTI_RTSR)\n\nYou can [`read`](crate::Reg::read) this register and get [`rtsr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtsr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct RtsrSpec ; impl crate :: RegisterSpec for RtsrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`rtsr::R`](R) reader structure"] impl crate :: Readable for RtsrSpec { }
#[doc = "`write(|w| ..)` method takes [`rtsr::W`](W) writer structure"] impl crate :: Writable for RtsrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets RTSR to value 0"] impl crate :: Resettable for RtsrSpec { } }
#[doc = "FTSR (rw) register accessor: Falling Trigger selection register (EXTI_FTSR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ftsr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ftsr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ftsr`] module"]
#[doc (alias = "FTSR")] pub type Ftsr = crate :: Reg < ftsr :: FtsrSpec > ;
#[doc = "Falling Trigger selection register (EXTI_FTSR)"] pub mod ftsr {
#[doc = "Register `FTSR` reader"] pub type R = crate :: R < FtsrSpec > ;
#[doc = "Register `FTSR` writer"] pub type W = crate :: W < FtsrSpec > ;
#[doc = "Field `TR0` reader - Falling trigger event configuration of line 0"] pub type Tr0R = crate :: BitReader ;
#[doc = "Field `TR0` writer - Falling trigger event configuration of line 0"] pub type Tr0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR1` reader - Falling trigger event configuration of line 1"] pub type Tr1R = crate :: BitReader ;
#[doc = "Field `TR1` writer - Falling trigger event configuration of line 1"] pub type Tr1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR2` reader - Falling trigger event configuration of line 2"] pub type Tr2R = crate :: BitReader ;
#[doc = "Field `TR2` writer - Falling trigger event configuration of line 2"] pub type Tr2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR3` reader - Falling trigger event configuration of line 3"] pub type Tr3R = crate :: BitReader ;
#[doc = "Field `TR3` writer - Falling trigger event configuration of line 3"] pub type Tr3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR4` reader - Falling trigger event configuration of line 4"] pub type Tr4R = crate :: BitReader ;
#[doc = "Field `TR4` writer - Falling trigger event configuration of line 4"] pub type Tr4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR5` reader - Falling trigger event configuration of line 5"] pub type Tr5R = crate :: BitReader ;
#[doc = "Field `TR5` writer - Falling trigger event configuration of line 5"] pub type Tr5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR6` reader - Falling trigger event configuration of line 6"] pub type Tr6R = crate :: BitReader ;
#[doc = "Field `TR6` writer - Falling trigger event configuration of line 6"] pub type Tr6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR7` reader - Falling trigger event configuration of line 7"] pub type Tr7R = crate :: BitReader ;
#[doc = "Field `TR7` writer - Falling trigger event configuration of line 7"] pub type Tr7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR8` reader - Falling trigger event configuration of line 8"] pub type Tr8R = crate :: BitReader ;
#[doc = "Field `TR8` writer - Falling trigger event configuration of line 8"] pub type Tr8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR9` reader - Falling trigger event configuration of line 9"] pub type Tr9R = crate :: BitReader ;
#[doc = "Field `TR9` writer - Falling trigger event configuration of line 9"] pub type Tr9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR10` reader - Falling trigger event configuration of line 10"] pub type Tr10R = crate :: BitReader ;
#[doc = "Field `TR10` writer - Falling trigger event configuration of line 10"] pub type Tr10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR11` reader - Falling trigger event configuration of line 11"] pub type Tr11R = crate :: BitReader ;
#[doc = "Field `TR11` writer - Falling trigger event configuration of line 11"] pub type Tr11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR12` reader - Falling trigger event configuration of line 12"] pub type Tr12R = crate :: BitReader ;
#[doc = "Field `TR12` writer - Falling trigger event configuration of line 12"] pub type Tr12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR13` reader - Falling trigger event configuration of line 13"] pub type Tr13R = crate :: BitReader ;
#[doc = "Field `TR13` writer - Falling trigger event configuration of line 13"] pub type Tr13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR14` reader - Falling trigger event configuration of line 14"] pub type Tr14R = crate :: BitReader ;
#[doc = "Field `TR14` writer - Falling trigger event configuration of line 14"] pub type Tr14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR15` reader - Falling trigger event configuration of line 15"] pub type Tr15R = crate :: BitReader ;
#[doc = "Field `TR15` writer - Falling trigger event configuration of line 15"] pub type Tr15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR16` reader - Falling trigger event configuration of line 16"] pub type Tr16R = crate :: BitReader ;
#[doc = "Field `TR16` writer - Falling trigger event configuration of line 16"] pub type Tr16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR17` reader - Falling trigger event configuration of line 17"] pub type Tr17R = crate :: BitReader ;
#[doc = "Field `TR17` writer - Falling trigger event configuration of line 17"] pub type Tr17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TR18` reader - Falling trigger event configuration of line 18"] pub type Tr18R = crate :: BitReader ;
#[doc = "Field `TR18` writer - Falling trigger event configuration of line 18"] pub type Tr18W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Falling trigger event configuration of line 0"]
#[inline (always)] pub fn tr0 (& self) -> Tr0R { Tr0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Falling trigger event configuration of line 1"]
#[inline (always)] pub fn tr1 (& self) -> Tr1R { Tr1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Falling trigger event configuration of line 2"]
#[inline (always)] pub fn tr2 (& self) -> Tr2R { Tr2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Falling trigger event configuration of line 3"]
#[inline (always)] pub fn tr3 (& self) -> Tr3R { Tr3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Falling trigger event configuration of line 4"]
#[inline (always)] pub fn tr4 (& self) -> Tr4R { Tr4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Falling trigger event configuration of line 5"]
#[inline (always)] pub fn tr5 (& self) -> Tr5R { Tr5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Falling trigger event configuration of line 6"]
#[inline (always)] pub fn tr6 (& self) -> Tr6R { Tr6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Falling trigger event configuration of line 7"]
#[inline (always)] pub fn tr7 (& self) -> Tr7R { Tr7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Falling trigger event configuration of line 8"]
#[inline (always)] pub fn tr8 (& self) -> Tr8R { Tr8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Falling trigger event configuration of line 9"]
#[inline (always)] pub fn tr9 (& self) -> Tr9R { Tr9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Falling trigger event configuration of line 10"]
#[inline (always)] pub fn tr10 (& self) -> Tr10R { Tr10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Falling trigger event configuration of line 11"]
#[inline (always)] pub fn tr11 (& self) -> Tr11R { Tr11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Falling trigger event configuration of line 12"]
#[inline (always)] pub fn tr12 (& self) -> Tr12R { Tr12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Falling trigger event configuration of line 13"]
#[inline (always)] pub fn tr13 (& self) -> Tr13R { Tr13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Falling trigger event configuration of line 14"]
#[inline (always)] pub fn tr14 (& self) -> Tr14R { Tr14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Falling trigger event configuration of line 15"]
#[inline (always)] pub fn tr15 (& self) -> Tr15R { Tr15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Falling trigger event configuration of line 16"]
#[inline (always)] pub fn tr16 (& self) -> Tr16R { Tr16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Falling trigger event configuration of line 17"]
#[inline (always)] pub fn tr17 (& self) -> Tr17R { Tr17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Falling trigger event configuration of line 18"]
#[inline (always)] pub fn tr18 (& self) -> Tr18R { Tr18R :: new (((self . bits >> 18) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Falling trigger event configuration of line 0"]
#[inline (always)] pub fn tr0 (& mut self) -> Tr0W < '_ , FtsrSpec > { Tr0W :: new (self , 0) }
#[doc = "Bit 1 - Falling trigger event configuration of line 1"]
#[inline (always)] pub fn tr1 (& mut self) -> Tr1W < '_ , FtsrSpec > { Tr1W :: new (self , 1) }
#[doc = "Bit 2 - Falling trigger event configuration of line 2"]
#[inline (always)] pub fn tr2 (& mut self) -> Tr2W < '_ , FtsrSpec > { Tr2W :: new (self , 2) }
#[doc = "Bit 3 - Falling trigger event configuration of line 3"]
#[inline (always)] pub fn tr3 (& mut self) -> Tr3W < '_ , FtsrSpec > { Tr3W :: new (self , 3) }
#[doc = "Bit 4 - Falling trigger event configuration of line 4"]
#[inline (always)] pub fn tr4 (& mut self) -> Tr4W < '_ , FtsrSpec > { Tr4W :: new (self , 4) }
#[doc = "Bit 5 - Falling trigger event configuration of line 5"]
#[inline (always)] pub fn tr5 (& mut self) -> Tr5W < '_ , FtsrSpec > { Tr5W :: new (self , 5) }
#[doc = "Bit 6 - Falling trigger event configuration of line 6"]
#[inline (always)] pub fn tr6 (& mut self) -> Tr6W < '_ , FtsrSpec > { Tr6W :: new (self , 6) }
#[doc = "Bit 7 - Falling trigger event configuration of line 7"]
#[inline (always)] pub fn tr7 (& mut self) -> Tr7W < '_ , FtsrSpec > { Tr7W :: new (self , 7) }
#[doc = "Bit 8 - Falling trigger event configuration of line 8"]
#[inline (always)] pub fn tr8 (& mut self) -> Tr8W < '_ , FtsrSpec > { Tr8W :: new (self , 8) }
#[doc = "Bit 9 - Falling trigger event configuration of line 9"]
#[inline (always)] pub fn tr9 (& mut self) -> Tr9W < '_ , FtsrSpec > { Tr9W :: new (self , 9) }
#[doc = "Bit 10 - Falling trigger event configuration of line 10"]
#[inline (always)] pub fn tr10 (& mut self) -> Tr10W < '_ , FtsrSpec > { Tr10W :: new (self , 10) }
#[doc = "Bit 11 - Falling trigger event configuration of line 11"]
#[inline (always)] pub fn tr11 (& mut self) -> Tr11W < '_ , FtsrSpec > { Tr11W :: new (self , 11) }
#[doc = "Bit 12 - Falling trigger event configuration of line 12"]
#[inline (always)] pub fn tr12 (& mut self) -> Tr12W < '_ , FtsrSpec > { Tr12W :: new (self , 12) }
#[doc = "Bit 13 - Falling trigger event configuration of line 13"]
#[inline (always)] pub fn tr13 (& mut self) -> Tr13W < '_ , FtsrSpec > { Tr13W :: new (self , 13) }
#[doc = "Bit 14 - Falling trigger event configuration of line 14"]
#[inline (always)] pub fn tr14 (& mut self) -> Tr14W < '_ , FtsrSpec > { Tr14W :: new (self , 14) }
#[doc = "Bit 15 - Falling trigger event configuration of line 15"]
#[inline (always)] pub fn tr15 (& mut self) -> Tr15W < '_ , FtsrSpec > { Tr15W :: new (self , 15) }
#[doc = "Bit 16 - Falling trigger event configuration of line 16"]
#[inline (always)] pub fn tr16 (& mut self) -> Tr16W < '_ , FtsrSpec > { Tr16W :: new (self , 16) }
#[doc = "Bit 17 - Falling trigger event configuration of line 17"]
#[inline (always)] pub fn tr17 (& mut self) -> Tr17W < '_ , FtsrSpec > { Tr17W :: new (self , 17) }
#[doc = "Bit 18 - Falling trigger event configuration of line 18"]
#[inline (always)] pub fn tr18 (& mut self) -> Tr18W < '_ , FtsrSpec > { Tr18W :: new (self , 18) } }
#[doc = "Falling Trigger selection register (EXTI_FTSR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ftsr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ftsr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FtsrSpec ; impl crate :: RegisterSpec for FtsrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ftsr::R`](R) reader structure"] impl crate :: Readable for FtsrSpec { }
#[doc = "`write(|w| ..)` method takes [`ftsr::W`](W) writer structure"] impl crate :: Writable for FtsrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FTSR to value 0"] impl crate :: Resettable for FtsrSpec { } }
#[doc = "SWIER (rw) register accessor: Software interrupt event register (EXTI_SWIER)\n\nYou can [`read`](crate::Reg::read) this register and get [`swier::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`swier::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@swier`] module"]
#[doc (alias = "SWIER")] pub type Swier = crate :: Reg < swier :: SwierSpec > ;
#[doc = "Software interrupt event register (EXTI_SWIER)"] pub mod swier {
#[doc = "Register `SWIER` reader"] pub type R = crate :: R < SwierSpec > ;
#[doc = "Register `SWIER` writer"] pub type W = crate :: W < SwierSpec > ;
#[doc = "Field `SWIER0` reader - Software Interrupt on line 0"] pub type Swier0R = crate :: BitReader ;
#[doc = "Field `SWIER0` writer - Software Interrupt on line 0"] pub type Swier0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER1` reader - Software Interrupt on line 1"] pub type Swier1R = crate :: BitReader ;
#[doc = "Field `SWIER1` writer - Software Interrupt on line 1"] pub type Swier1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER2` reader - Software Interrupt on line 2"] pub type Swier2R = crate :: BitReader ;
#[doc = "Field `SWIER2` writer - Software Interrupt on line 2"] pub type Swier2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER3` reader - Software Interrupt on line 3"] pub type Swier3R = crate :: BitReader ;
#[doc = "Field `SWIER3` writer - Software Interrupt on line 3"] pub type Swier3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER4` reader - Software Interrupt on line 4"] pub type Swier4R = crate :: BitReader ;
#[doc = "Field `SWIER4` writer - Software Interrupt on line 4"] pub type Swier4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER5` reader - Software Interrupt on line 5"] pub type Swier5R = crate :: BitReader ;
#[doc = "Field `SWIER5` writer - Software Interrupt on line 5"] pub type Swier5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER6` reader - Software Interrupt on line 6"] pub type Swier6R = crate :: BitReader ;
#[doc = "Field `SWIER6` writer - Software Interrupt on line 6"] pub type Swier6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER7` reader - Software Interrupt on line 7"] pub type Swier7R = crate :: BitReader ;
#[doc = "Field `SWIER7` writer - Software Interrupt on line 7"] pub type Swier7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER8` reader - Software Interrupt on line 8"] pub type Swier8R = crate :: BitReader ;
#[doc = "Field `SWIER8` writer - Software Interrupt on line 8"] pub type Swier8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER9` reader - Software Interrupt on line 9"] pub type Swier9R = crate :: BitReader ;
#[doc = "Field `SWIER9` writer - Software Interrupt on line 9"] pub type Swier9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER10` reader - Software Interrupt on line 10"] pub type Swier10R = crate :: BitReader ;
#[doc = "Field `SWIER10` writer - Software Interrupt on line 10"] pub type Swier10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER11` reader - Software Interrupt on line 11"] pub type Swier11R = crate :: BitReader ;
#[doc = "Field `SWIER11` writer - Software Interrupt on line 11"] pub type Swier11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER12` reader - Software Interrupt on line 12"] pub type Swier12R = crate :: BitReader ;
#[doc = "Field `SWIER12` writer - Software Interrupt on line 12"] pub type Swier12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER13` reader - Software Interrupt on line 13"] pub type Swier13R = crate :: BitReader ;
#[doc = "Field `SWIER13` writer - Software Interrupt on line 13"] pub type Swier13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER14` reader - Software Interrupt on line 14"] pub type Swier14R = crate :: BitReader ;
#[doc = "Field `SWIER14` writer - Software Interrupt on line 14"] pub type Swier14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER15` reader - Software Interrupt on line 15"] pub type Swier15R = crate :: BitReader ;
#[doc = "Field `SWIER15` writer - Software Interrupt on line 15"] pub type Swier15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER16` reader - Software Interrupt on line 16"] pub type Swier16R = crate :: BitReader ;
#[doc = "Field `SWIER16` writer - Software Interrupt on line 16"] pub type Swier16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER17` reader - Software Interrupt on line 17"] pub type Swier17R = crate :: BitReader ;
#[doc = "Field `SWIER17` writer - Software Interrupt on line 17"] pub type Swier17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWIER18` reader - Software Interrupt on line 18"] pub type Swier18R = crate :: BitReader ;
#[doc = "Field `SWIER18` writer - Software Interrupt on line 18"] pub type Swier18W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Software Interrupt on line 0"]
#[inline (always)] pub fn swier0 (& self) -> Swier0R { Swier0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Software Interrupt on line 1"]
#[inline (always)] pub fn swier1 (& self) -> Swier1R { Swier1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Software Interrupt on line 2"]
#[inline (always)] pub fn swier2 (& self) -> Swier2R { Swier2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Software Interrupt on line 3"]
#[inline (always)] pub fn swier3 (& self) -> Swier3R { Swier3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Software Interrupt on line 4"]
#[inline (always)] pub fn swier4 (& self) -> Swier4R { Swier4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Software Interrupt on line 5"]
#[inline (always)] pub fn swier5 (& self) -> Swier5R { Swier5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Software Interrupt on line 6"]
#[inline (always)] pub fn swier6 (& self) -> Swier6R { Swier6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Software Interrupt on line 7"]
#[inline (always)] pub fn swier7 (& self) -> Swier7R { Swier7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Software Interrupt on line 8"]
#[inline (always)] pub fn swier8 (& self) -> Swier8R { Swier8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Software Interrupt on line 9"]
#[inline (always)] pub fn swier9 (& self) -> Swier9R { Swier9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Software Interrupt on line 10"]
#[inline (always)] pub fn swier10 (& self) -> Swier10R { Swier10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Software Interrupt on line 11"]
#[inline (always)] pub fn swier11 (& self) -> Swier11R { Swier11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Software Interrupt on line 12"]
#[inline (always)] pub fn swier12 (& self) -> Swier12R { Swier12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Software Interrupt on line 13"]
#[inline (always)] pub fn swier13 (& self) -> Swier13R { Swier13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Software Interrupt on line 14"]
#[inline (always)] pub fn swier14 (& self) -> Swier14R { Swier14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Software Interrupt on line 15"]
#[inline (always)] pub fn swier15 (& self) -> Swier15R { Swier15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Software Interrupt on line 16"]
#[inline (always)] pub fn swier16 (& self) -> Swier16R { Swier16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Software Interrupt on line 17"]
#[inline (always)] pub fn swier17 (& self) -> Swier17R { Swier17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Software Interrupt on line 18"]
#[inline (always)] pub fn swier18 (& self) -> Swier18R { Swier18R :: new (((self . bits >> 18) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Software Interrupt on line 0"]
#[inline (always)] pub fn swier0 (& mut self) -> Swier0W < '_ , SwierSpec > { Swier0W :: new (self , 0) }
#[doc = "Bit 1 - Software Interrupt on line 1"]
#[inline (always)] pub fn swier1 (& mut self) -> Swier1W < '_ , SwierSpec > { Swier1W :: new (self , 1) }
#[doc = "Bit 2 - Software Interrupt on line 2"]
#[inline (always)] pub fn swier2 (& mut self) -> Swier2W < '_ , SwierSpec > { Swier2W :: new (self , 2) }
#[doc = "Bit 3 - Software Interrupt on line 3"]
#[inline (always)] pub fn swier3 (& mut self) -> Swier3W < '_ , SwierSpec > { Swier3W :: new (self , 3) }
#[doc = "Bit 4 - Software Interrupt on line 4"]
#[inline (always)] pub fn swier4 (& mut self) -> Swier4W < '_ , SwierSpec > { Swier4W :: new (self , 4) }
#[doc = "Bit 5 - Software Interrupt on line 5"]
#[inline (always)] pub fn swier5 (& mut self) -> Swier5W < '_ , SwierSpec > { Swier5W :: new (self , 5) }
#[doc = "Bit 6 - Software Interrupt on line 6"]
#[inline (always)] pub fn swier6 (& mut self) -> Swier6W < '_ , SwierSpec > { Swier6W :: new (self , 6) }
#[doc = "Bit 7 - Software Interrupt on line 7"]
#[inline (always)] pub fn swier7 (& mut self) -> Swier7W < '_ , SwierSpec > { Swier7W :: new (self , 7) }
#[doc = "Bit 8 - Software Interrupt on line 8"]
#[inline (always)] pub fn swier8 (& mut self) -> Swier8W < '_ , SwierSpec > { Swier8W :: new (self , 8) }
#[doc = "Bit 9 - Software Interrupt on line 9"]
#[inline (always)] pub fn swier9 (& mut self) -> Swier9W < '_ , SwierSpec > { Swier9W :: new (self , 9) }
#[doc = "Bit 10 - Software Interrupt on line 10"]
#[inline (always)] pub fn swier10 (& mut self) -> Swier10W < '_ , SwierSpec > { Swier10W :: new (self , 10) }
#[doc = "Bit 11 - Software Interrupt on line 11"]
#[inline (always)] pub fn swier11 (& mut self) -> Swier11W < '_ , SwierSpec > { Swier11W :: new (self , 11) }
#[doc = "Bit 12 - Software Interrupt on line 12"]
#[inline (always)] pub fn swier12 (& mut self) -> Swier12W < '_ , SwierSpec > { Swier12W :: new (self , 12) }
#[doc = "Bit 13 - Software Interrupt on line 13"]
#[inline (always)] pub fn swier13 (& mut self) -> Swier13W < '_ , SwierSpec > { Swier13W :: new (self , 13) }
#[doc = "Bit 14 - Software Interrupt on line 14"]
#[inline (always)] pub fn swier14 (& mut self) -> Swier14W < '_ , SwierSpec > { Swier14W :: new (self , 14) }
#[doc = "Bit 15 - Software Interrupt on line 15"]
#[inline (always)] pub fn swier15 (& mut self) -> Swier15W < '_ , SwierSpec > { Swier15W :: new (self , 15) }
#[doc = "Bit 16 - Software Interrupt on line 16"]
#[inline (always)] pub fn swier16 (& mut self) -> Swier16W < '_ , SwierSpec > { Swier16W :: new (self , 16) }
#[doc = "Bit 17 - Software Interrupt on line 17"]
#[inline (always)] pub fn swier17 (& mut self) -> Swier17W < '_ , SwierSpec > { Swier17W :: new (self , 17) }
#[doc = "Bit 18 - Software Interrupt on line 18"]
#[inline (always)] pub fn swier18 (& mut self) -> Swier18W < '_ , SwierSpec > { Swier18W :: new (self , 18) } }
#[doc = "Software interrupt event register (EXTI_SWIER)\n\nYou can [`read`](crate::Reg::read) this register and get [`swier::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`swier::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SwierSpec ; impl crate :: RegisterSpec for SwierSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`swier::R`](R) reader structure"] impl crate :: Readable for SwierSpec { }
#[doc = "`write(|w| ..)` method takes [`swier::W`](W) writer structure"] impl crate :: Writable for SwierSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SWIER to value 0"] impl crate :: Resettable for SwierSpec { } }
#[doc = "PR (rw) register accessor: Pending register (EXTI_PR)\n\nYou can [`read`](crate::Reg::read) this register and get [`pr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pr`] module"]
#[doc (alias = "PR")] pub type Pr = crate :: Reg < pr :: PrSpec > ;
#[doc = "Pending register (EXTI_PR)"] pub mod pr {
#[doc = "Register `PR` reader"] pub type R = crate :: R < PrSpec > ;
#[doc = "Register `PR` writer"] pub type W = crate :: W < PrSpec > ;
#[doc = "Field `PR0` reader - Pending bit 0"] pub type Pr0R = crate :: BitReader ;
#[doc = "Field `PR0` writer - Pending bit 0"] pub type Pr0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR1` reader - Pending bit 1"] pub type Pr1R = crate :: BitReader ;
#[doc = "Field `PR1` writer - Pending bit 1"] pub type Pr1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR2` reader - Pending bit 2"] pub type Pr2R = crate :: BitReader ;
#[doc = "Field `PR2` writer - Pending bit 2"] pub type Pr2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR3` reader - Pending bit 3"] pub type Pr3R = crate :: BitReader ;
#[doc = "Field `PR3` writer - Pending bit 3"] pub type Pr3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR4` reader - Pending bit 4"] pub type Pr4R = crate :: BitReader ;
#[doc = "Field `PR4` writer - Pending bit 4"] pub type Pr4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR5` reader - Pending bit 5"] pub type Pr5R = crate :: BitReader ;
#[doc = "Field `PR5` writer - Pending bit 5"] pub type Pr5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR6` reader - Pending bit 6"] pub type Pr6R = crate :: BitReader ;
#[doc = "Field `PR6` writer - Pending bit 6"] pub type Pr6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR7` reader - Pending bit 7"] pub type Pr7R = crate :: BitReader ;
#[doc = "Field `PR7` writer - Pending bit 7"] pub type Pr7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR8` reader - Pending bit 8"] pub type Pr8R = crate :: BitReader ;
#[doc = "Field `PR8` writer - Pending bit 8"] pub type Pr8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR9` reader - Pending bit 9"] pub type Pr9R = crate :: BitReader ;
#[doc = "Field `PR9` writer - Pending bit 9"] pub type Pr9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR10` reader - Pending bit 10"] pub type Pr10R = crate :: BitReader ;
#[doc = "Field `PR10` writer - Pending bit 10"] pub type Pr10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR11` reader - Pending bit 11"] pub type Pr11R = crate :: BitReader ;
#[doc = "Field `PR11` writer - Pending bit 11"] pub type Pr11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR12` reader - Pending bit 12"] pub type Pr12R = crate :: BitReader ;
#[doc = "Field `PR12` writer - Pending bit 12"] pub type Pr12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR13` reader - Pending bit 13"] pub type Pr13R = crate :: BitReader ;
#[doc = "Field `PR13` writer - Pending bit 13"] pub type Pr13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR14` reader - Pending bit 14"] pub type Pr14R = crate :: BitReader ;
#[doc = "Field `PR14` writer - Pending bit 14"] pub type Pr14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR15` reader - Pending bit 15"] pub type Pr15R = crate :: BitReader ;
#[doc = "Field `PR15` writer - Pending bit 15"] pub type Pr15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR16` reader - Pending bit 16"] pub type Pr16R = crate :: BitReader ;
#[doc = "Field `PR16` writer - Pending bit 16"] pub type Pr16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR17` reader - Pending bit 17"] pub type Pr17R = crate :: BitReader ;
#[doc = "Field `PR17` writer - Pending bit 17"] pub type Pr17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PR18` reader - Pending bit 18"] pub type Pr18R = crate :: BitReader ;
#[doc = "Field `PR18` writer - Pending bit 18"] pub type Pr18W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Pending bit 0"]
#[inline (always)] pub fn pr0 (& self) -> Pr0R { Pr0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Pending bit 1"]
#[inline (always)] pub fn pr1 (& self) -> Pr1R { Pr1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Pending bit 2"]
#[inline (always)] pub fn pr2 (& self) -> Pr2R { Pr2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Pending bit 3"]
#[inline (always)] pub fn pr3 (& self) -> Pr3R { Pr3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Pending bit 4"]
#[inline (always)] pub fn pr4 (& self) -> Pr4R { Pr4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Pending bit 5"]
#[inline (always)] pub fn pr5 (& self) -> Pr5R { Pr5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Pending bit 6"]
#[inline (always)] pub fn pr6 (& self) -> Pr6R { Pr6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Pending bit 7"]
#[inline (always)] pub fn pr7 (& self) -> Pr7R { Pr7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Pending bit 8"]
#[inline (always)] pub fn pr8 (& self) -> Pr8R { Pr8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Pending bit 9"]
#[inline (always)] pub fn pr9 (& self) -> Pr9R { Pr9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Pending bit 10"]
#[inline (always)] pub fn pr10 (& self) -> Pr10R { Pr10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Pending bit 11"]
#[inline (always)] pub fn pr11 (& self) -> Pr11R { Pr11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Pending bit 12"]
#[inline (always)] pub fn pr12 (& self) -> Pr12R { Pr12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Pending bit 13"]
#[inline (always)] pub fn pr13 (& self) -> Pr13R { Pr13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Pending bit 14"]
#[inline (always)] pub fn pr14 (& self) -> Pr14R { Pr14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Pending bit 15"]
#[inline (always)] pub fn pr15 (& self) -> Pr15R { Pr15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Pending bit 16"]
#[inline (always)] pub fn pr16 (& self) -> Pr16R { Pr16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Pending bit 17"]
#[inline (always)] pub fn pr17 (& self) -> Pr17R { Pr17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Pending bit 18"]
#[inline (always)] pub fn pr18 (& self) -> Pr18R { Pr18R :: new (((self . bits >> 18) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Pending bit 0"]
#[inline (always)] pub fn pr0 (& mut self) -> Pr0W < '_ , PrSpec > { Pr0W :: new (self , 0) }
#[doc = "Bit 1 - Pending bit 1"]
#[inline (always)] pub fn pr1 (& mut self) -> Pr1W < '_ , PrSpec > { Pr1W :: new (self , 1) }
#[doc = "Bit 2 - Pending bit 2"]
#[inline (always)] pub fn pr2 (& mut self) -> Pr2W < '_ , PrSpec > { Pr2W :: new (self , 2) }
#[doc = "Bit 3 - Pending bit 3"]
#[inline (always)] pub fn pr3 (& mut self) -> Pr3W < '_ , PrSpec > { Pr3W :: new (self , 3) }
#[doc = "Bit 4 - Pending bit 4"]
#[inline (always)] pub fn pr4 (& mut self) -> Pr4W < '_ , PrSpec > { Pr4W :: new (self , 4) }
#[doc = "Bit 5 - Pending bit 5"]
#[inline (always)] pub fn pr5 (& mut self) -> Pr5W < '_ , PrSpec > { Pr5W :: new (self , 5) }
#[doc = "Bit 6 - Pending bit 6"]
#[inline (always)] pub fn pr6 (& mut self) -> Pr6W < '_ , PrSpec > { Pr6W :: new (self , 6) }
#[doc = "Bit 7 - Pending bit 7"]
#[inline (always)] pub fn pr7 (& mut self) -> Pr7W < '_ , PrSpec > { Pr7W :: new (self , 7) }
#[doc = "Bit 8 - Pending bit 8"]
#[inline (always)] pub fn pr8 (& mut self) -> Pr8W < '_ , PrSpec > { Pr8W :: new (self , 8) }
#[doc = "Bit 9 - Pending bit 9"]
#[inline (always)] pub fn pr9 (& mut self) -> Pr9W < '_ , PrSpec > { Pr9W :: new (self , 9) }
#[doc = "Bit 10 - Pending bit 10"]
#[inline (always)] pub fn pr10 (& mut self) -> Pr10W < '_ , PrSpec > { Pr10W :: new (self , 10) }
#[doc = "Bit 11 - Pending bit 11"]
#[inline (always)] pub fn pr11 (& mut self) -> Pr11W < '_ , PrSpec > { Pr11W :: new (self , 11) }
#[doc = "Bit 12 - Pending bit 12"]
#[inline (always)] pub fn pr12 (& mut self) -> Pr12W < '_ , PrSpec > { Pr12W :: new (self , 12) }
#[doc = "Bit 13 - Pending bit 13"]
#[inline (always)] pub fn pr13 (& mut self) -> Pr13W < '_ , PrSpec > { Pr13W :: new (self , 13) }
#[doc = "Bit 14 - Pending bit 14"]
#[inline (always)] pub fn pr14 (& mut self) -> Pr14W < '_ , PrSpec > { Pr14W :: new (self , 14) }
#[doc = "Bit 15 - Pending bit 15"]
#[inline (always)] pub fn pr15 (& mut self) -> Pr15W < '_ , PrSpec > { Pr15W :: new (self , 15) }
#[doc = "Bit 16 - Pending bit 16"]
#[inline (always)] pub fn pr16 (& mut self) -> Pr16W < '_ , PrSpec > { Pr16W :: new (self , 16) }
#[doc = "Bit 17 - Pending bit 17"]
#[inline (always)] pub fn pr17 (& mut self) -> Pr17W < '_ , PrSpec > { Pr17W :: new (self , 17) }
#[doc = "Bit 18 - Pending bit 18"]
#[inline (always)] pub fn pr18 (& mut self) -> Pr18W < '_ , PrSpec > { Pr18W :: new (self , 18) } }
#[doc = "Pending register (EXTI_PR)\n\nYou can [`read`](crate::Reg::read) this register and get [`pr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PrSpec ; impl crate :: RegisterSpec for PrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`pr::R`](R) reader structure"] impl crate :: Readable for PrSpec { }
#[doc = "`write(|w| ..)` method takes [`pr::W`](W) writer structure"] impl crate :: Writable for PrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PR to value 0"] impl crate :: Resettable for PrSpec { } } }
#[doc = "DMA controller"] pub type Dma1 = crate :: Periph < dma1 :: RegisterBlock , 0x4002_0000 > ; impl core :: fmt :: Debug for Dma1 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Dma1") . finish () } }
#[doc = "DMA controller"] pub mod dma1 {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { isr : Isr , ifcr : Ifcr , ccr1 : Ccr1 , cndtr1 : Cndtr1 , cpar1 : Cpar1 , cmar1 : Cmar1 , _reserved6 : [u8 ; 0x04] , ccr2 : Ccr2 , cndtr2 : Cndtr2 , cpar2 : Cpar2 , cmar2 : Cmar2 , _reserved10 : [u8 ; 0x04] , ccr3 : Ccr3 , cndtr3 : Cndtr3 , cpar3 : Cpar3 , cmar3 : Cmar3 , _reserved14 : [u8 ; 0x04] , ccr4 : Ccr4 , cndtr4 : Cndtr4 , cpar4 : Cpar4 , cmar4 : Cmar4 , _reserved18 : [u8 ; 0x04] , ccr5 : Ccr5 , cndtr5 : Cndtr5 , cpar5 : Cpar5 , cmar5 : Cmar5 , _reserved22 : [u8 ; 0x04] , ccr6 : Ccr6 , cndtr6 : Cndtr6 , cpar6 : Cpar6 , cmar6 : Cmar6 , _reserved26 : [u8 ; 0x04] , ccr7 : Ccr7 , cndtr7 : Cndtr7 , cpar7 : Cpar7 , cmar7 : Cmar7 , } impl RegisterBlock {
#[doc = "0x00 - DMA interrupt status register (DMA_ISR)"]
#[inline (always)] pub const fn isr (& self) -> & Isr { & self . isr }
#[doc = "0x04 - DMA interrupt flag clear register (DMA_IFCR)"]
#[inline (always)] pub const fn ifcr (& self) -> & Ifcr { & self . ifcr }
#[doc = "0x08 - DMA channel configuration register (DMA_CCR)"]
#[inline (always)] pub const fn ccr1 (& self) -> & Ccr1 { & self . ccr1 }
#[doc = "0x0c - DMA channel 1 number of data register"]
#[inline (always)] pub const fn cndtr1 (& self) -> & Cndtr1 { & self . cndtr1 }
#[doc = "0x10 - DMA channel 1 peripheral address register"]
#[inline (always)] pub const fn cpar1 (& self) -> & Cpar1 { & self . cpar1 }
#[doc = "0x14 - DMA channel 1 memory address register"]
#[inline (always)] pub const fn cmar1 (& self) -> & Cmar1 { & self . cmar1 }
#[doc = "0x1c - DMA channel configuration register (DMA_CCR)"]
#[inline (always)] pub const fn ccr2 (& self) -> & Ccr2 { & self . ccr2 }
#[doc = "0x20 - DMA channel 2 number of data register"]
#[inline (always)] pub const fn cndtr2 (& self) -> & Cndtr2 { & self . cndtr2 }
#[doc = "0x24 - DMA channel 2 peripheral address register"]
#[inline (always)] pub const fn cpar2 (& self) -> & Cpar2 { & self . cpar2 }
#[doc = "0x28 - DMA channel 2 memory address register"]
#[inline (always)] pub const fn cmar2 (& self) -> & Cmar2 { & self . cmar2 }
#[doc = "0x30 - DMA channel configuration register (DMA_CCR)"]
#[inline (always)] pub const fn ccr3 (& self) -> & Ccr3 { & self . ccr3 }
#[doc = "0x34 - DMA channel 3 number of data register"]
#[inline (always)] pub const fn cndtr3 (& self) -> & Cndtr3 { & self . cndtr3 }
#[doc = "0x38 - DMA channel 3 peripheral address register"]
#[inline (always)] pub const fn cpar3 (& self) -> & Cpar3 { & self . cpar3 }
#[doc = "0x3c - DMA channel 3 memory address register"]
#[inline (always)] pub const fn cmar3 (& self) -> & Cmar3 { & self . cmar3 }
#[doc = "0x44 - DMA channel configuration register (DMA_CCR)"]
#[inline (always)] pub const fn ccr4 (& self) -> & Ccr4 { & self . ccr4 }
#[doc = "0x48 - DMA channel 4 number of data register"]
#[inline (always)] pub const fn cndtr4 (& self) -> & Cndtr4 { & self . cndtr4 }
#[doc = "0x4c - DMA channel 4 peripheral address register"]
#[inline (always)] pub const fn cpar4 (& self) -> & Cpar4 { & self . cpar4 }
#[doc = "0x50 - DMA channel 4 memory address register"]
#[inline (always)] pub const fn cmar4 (& self) -> & Cmar4 { & self . cmar4 }
#[doc = "0x58 - DMA channel configuration register (DMA_CCR)"]
#[inline (always)] pub const fn ccr5 (& self) -> & Ccr5 { & self . ccr5 }
#[doc = "0x5c - DMA channel 5 number of data register"]
#[inline (always)] pub const fn cndtr5 (& self) -> & Cndtr5 { & self . cndtr5 }
#[doc = "0x60 - DMA channel 5 peripheral address register"]
#[inline (always)] pub const fn cpar5 (& self) -> & Cpar5 { & self . cpar5 }
#[doc = "0x64 - DMA channel 5 memory address register"]
#[inline (always)] pub const fn cmar5 (& self) -> & Cmar5 { & self . cmar5 }
#[doc = "0x6c - DMA channel configuration register (DMA_CCR)"]
#[inline (always)] pub const fn ccr6 (& self) -> & Ccr6 { & self . ccr6 }
#[doc = "0x70 - DMA channel 6 number of data register"]
#[inline (always)] pub const fn cndtr6 (& self) -> & Cndtr6 { & self . cndtr6 }
#[doc = "0x74 - DMA channel 6 peripheral address register"]
#[inline (always)] pub const fn cpar6 (& self) -> & Cpar6 { & self . cpar6 }
#[doc = "0x78 - DMA channel 6 memory address register"]
#[inline (always)] pub const fn cmar6 (& self) -> & Cmar6 { & self . cmar6 }
#[doc = "0x80 - DMA channel configuration register (DMA_CCR)"]
#[inline (always)] pub const fn ccr7 (& self) -> & Ccr7 { & self . ccr7 }
#[doc = "0x84 - DMA channel 7 number of data register"]
#[inline (always)] pub const fn cndtr7 (& self) -> & Cndtr7 { & self . cndtr7 }
#[doc = "0x88 - DMA channel 7 peripheral address register"]
#[inline (always)] pub const fn cpar7 (& self) -> & Cpar7 { & self . cpar7 }
#[doc = "0x8c - DMA channel 7 memory address register"]
#[inline (always)] pub const fn cmar7 (& self) -> & Cmar7 { & self . cmar7 } }
#[doc = "ISR (r) register accessor: DMA interrupt status register (DMA_ISR)\n\nYou can [`read`](crate::Reg::read) this register and get [`isr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@isr`] module"]
#[doc (alias = "ISR")] pub type Isr = crate :: Reg < isr :: IsrSpec > ;
#[doc = "DMA interrupt status register (DMA_ISR)"] pub mod isr {
#[doc = "Register `ISR` reader"] pub type R = crate :: R < IsrSpec > ;
#[doc = "Field `GIF1` reader - Channel 1 Global interrupt flag"] pub type Gif1R = crate :: BitReader ;
#[doc = "Field `TCIF1` reader - Channel 1 Transfer Complete flag"] pub type Tcif1R = crate :: BitReader ;
#[doc = "Field `HTIF1` reader - Channel 1 Half Transfer Complete flag"] pub type Htif1R = crate :: BitReader ;
#[doc = "Field `TEIF1` reader - Channel 1 Transfer Error flag"] pub type Teif1R = crate :: BitReader ;
#[doc = "Field `GIF2` reader - Channel 2 Global interrupt flag"] pub type Gif2R = crate :: BitReader ;
#[doc = "Field `TCIF2` reader - Channel 2 Transfer Complete flag"] pub type Tcif2R = crate :: BitReader ;
#[doc = "Field `HTIF2` reader - Channel 2 Half Transfer Complete flag"] pub type Htif2R = crate :: BitReader ;
#[doc = "Field `TEIF2` reader - Channel 2 Transfer Error flag"] pub type Teif2R = crate :: BitReader ;
#[doc = "Field `GIF3` reader - Channel 3 Global interrupt flag"] pub type Gif3R = crate :: BitReader ;
#[doc = "Field `TCIF3` reader - Channel 3 Transfer Complete flag"] pub type Tcif3R = crate :: BitReader ;
#[doc = "Field `HTIF3` reader - Channel 3 Half Transfer Complete flag"] pub type Htif3R = crate :: BitReader ;
#[doc = "Field `TEIF3` reader - Channel 3 Transfer Error flag"] pub type Teif3R = crate :: BitReader ;
#[doc = "Field `GIF4` reader - Channel 4 Global interrupt flag"] pub type Gif4R = crate :: BitReader ;
#[doc = "Field `TCIF4` reader - Channel 4 Transfer Complete flag"] pub type Tcif4R = crate :: BitReader ;
#[doc = "Field `HTIF4` reader - Channel 4 Half Transfer Complete flag"] pub type Htif4R = crate :: BitReader ;
#[doc = "Field `TEIF4` reader - Channel 4 Transfer Error flag"] pub type Teif4R = crate :: BitReader ;
#[doc = "Field `GIF5` reader - Channel 5 Global interrupt flag"] pub type Gif5R = crate :: BitReader ;
#[doc = "Field `TCIF5` reader - Channel 5 Transfer Complete flag"] pub type Tcif5R = crate :: BitReader ;
#[doc = "Field `HTIF5` reader - Channel 5 Half Transfer Complete flag"] pub type Htif5R = crate :: BitReader ;
#[doc = "Field `TEIF5` reader - Channel 5 Transfer Error flag"] pub type Teif5R = crate :: BitReader ;
#[doc = "Field `GIF6` reader - Channel 6 Global interrupt flag"] pub type Gif6R = crate :: BitReader ;
#[doc = "Field `TCIF6` reader - Channel 6 Transfer Complete flag"] pub type Tcif6R = crate :: BitReader ;
#[doc = "Field `HTIF6` reader - Channel 6 Half Transfer Complete flag"] pub type Htif6R = crate :: BitReader ;
#[doc = "Field `TEIF6` reader - Channel 6 Transfer Error flag"] pub type Teif6R = crate :: BitReader ;
#[doc = "Field `GIF7` reader - Channel 7 Global interrupt flag"] pub type Gif7R = crate :: BitReader ;
#[doc = "Field `TCIF7` reader - Channel 7 Transfer Complete flag"] pub type Tcif7R = crate :: BitReader ;
#[doc = "Field `HTIF7` reader - Channel 7 Half Transfer Complete flag"] pub type Htif7R = crate :: BitReader ;
#[doc = "Field `TEIF7` reader - Channel 7 Transfer Error flag"] pub type Teif7R = crate :: BitReader ; impl R {
#[doc = "Bit 0 - Channel 1 Global interrupt flag"]
#[inline (always)] pub fn gif1 (& self) -> Gif1R { Gif1R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel 1 Transfer Complete flag"]
#[inline (always)] pub fn tcif1 (& self) -> Tcif1R { Tcif1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Channel 1 Half Transfer Complete flag"]
#[inline (always)] pub fn htif1 (& self) -> Htif1R { Htif1R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Channel 1 Transfer Error flag"]
#[inline (always)] pub fn teif1 (& self) -> Teif1R { Teif1R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Channel 2 Global interrupt flag"]
#[inline (always)] pub fn gif2 (& self) -> Gif2R { Gif2R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Channel 2 Transfer Complete flag"]
#[inline (always)] pub fn tcif2 (& self) -> Tcif2R { Tcif2R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Channel 2 Half Transfer Complete flag"]
#[inline (always)] pub fn htif2 (& self) -> Htif2R { Htif2R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Channel 2 Transfer Error flag"]
#[inline (always)] pub fn teif2 (& self) -> Teif2R { Teif2R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Channel 3 Global interrupt flag"]
#[inline (always)] pub fn gif3 (& self) -> Gif3R { Gif3R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Channel 3 Transfer Complete flag"]
#[inline (always)] pub fn tcif3 (& self) -> Tcif3R { Tcif3R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Channel 3 Half Transfer Complete flag"]
#[inline (always)] pub fn htif3 (& self) -> Htif3R { Htif3R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Channel 3 Transfer Error flag"]
#[inline (always)] pub fn teif3 (& self) -> Teif3R { Teif3R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Channel 4 Global interrupt flag"]
#[inline (always)] pub fn gif4 (& self) -> Gif4R { Gif4R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Channel 4 Transfer Complete flag"]
#[inline (always)] pub fn tcif4 (& self) -> Tcif4R { Tcif4R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Channel 4 Half Transfer Complete flag"]
#[inline (always)] pub fn htif4 (& self) -> Htif4R { Htif4R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Channel 4 Transfer Error flag"]
#[inline (always)] pub fn teif4 (& self) -> Teif4R { Teif4R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Channel 5 Global interrupt flag"]
#[inline (always)] pub fn gif5 (& self) -> Gif5R { Gif5R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Channel 5 Transfer Complete flag"]
#[inline (always)] pub fn tcif5 (& self) -> Tcif5R { Tcif5R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Channel 5 Half Transfer Complete flag"]
#[inline (always)] pub fn htif5 (& self) -> Htif5R { Htif5R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Channel 5 Transfer Error flag"]
#[inline (always)] pub fn teif5 (& self) -> Teif5R { Teif5R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Channel 6 Global interrupt flag"]
#[inline (always)] pub fn gif6 (& self) -> Gif6R { Gif6R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Channel 6 Transfer Complete flag"]
#[inline (always)] pub fn tcif6 (& self) -> Tcif6R { Tcif6R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Channel 6 Half Transfer Complete flag"]
#[inline (always)] pub fn htif6 (& self) -> Htif6R { Htif6R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Channel 6 Transfer Error flag"]
#[inline (always)] pub fn teif6 (& self) -> Teif6R { Teif6R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Channel 7 Global interrupt flag"]
#[inline (always)] pub fn gif7 (& self) -> Gif7R { Gif7R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Channel 7 Transfer Complete flag"]
#[inline (always)] pub fn tcif7 (& self) -> Tcif7R { Tcif7R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Channel 7 Half Transfer Complete flag"]
#[inline (always)] pub fn htif7 (& self) -> Htif7R { Htif7R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Channel 7 Transfer Error flag"]
#[inline (always)] pub fn teif7 (& self) -> Teif7R { Teif7R :: new (((self . bits >> 27) & 1) != 0) } }
#[doc = "DMA interrupt status register (DMA_ISR)\n\nYou can [`read`](crate::Reg::read) this register and get [`isr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct IsrSpec ; impl crate :: RegisterSpec for IsrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`isr::R`](R) reader structure"] impl crate :: Readable for IsrSpec { }
#[doc = "`reset()` method sets ISR to value 0"] impl crate :: Resettable for IsrSpec { } }
#[doc = "IFCR (w) register accessor: DMA interrupt flag clear register (DMA_IFCR)\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ifcr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ifcr`] module"]
#[doc (alias = "IFCR")] pub type Ifcr = crate :: Reg < ifcr :: IfcrSpec > ;
#[doc = "DMA interrupt flag clear register (DMA_IFCR)"] pub mod ifcr {
#[doc = "Register `IFCR` writer"] pub type W = crate :: W < IfcrSpec > ;
#[doc = "Field `CGIF1` writer - Channel 1 Global interrupt clear"] pub type Cgif1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTCIF1` writer - Channel 1 Transfer Complete clear"] pub type Ctcif1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHTIF1` writer - Channel 1 Half Transfer clear"] pub type Chtif1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTEIF1` writer - Channel 1 Transfer Error clear"] pub type Cteif1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CGIF2` writer - Channel 2 Global interrupt clear"] pub type Cgif2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTCIF2` writer - Channel 2 Transfer Complete clear"] pub type Ctcif2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHTIF2` writer - Channel 2 Half Transfer clear"] pub type Chtif2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTEIF2` writer - Channel 2 Transfer Error clear"] pub type Cteif2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CGIF3` writer - Channel 3 Global interrupt clear"] pub type Cgif3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTCIF3` writer - Channel 3 Transfer Complete clear"] pub type Ctcif3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHTIF3` writer - Channel 3 Half Transfer clear"] pub type Chtif3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTEIF3` writer - Channel 3 Transfer Error clear"] pub type Cteif3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CGIF4` writer - Channel 4 Global interrupt clear"] pub type Cgif4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTCIF4` writer - Channel 4 Transfer Complete clear"] pub type Ctcif4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHTIF4` writer - Channel 4 Half Transfer clear"] pub type Chtif4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTEIF4` writer - Channel 4 Transfer Error clear"] pub type Cteif4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CGIF5` writer - Channel 5 Global interrupt clear"] pub type Cgif5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTCIF5` writer - Channel 5 Transfer Complete clear"] pub type Ctcif5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHTIF5` writer - Channel 5 Half Transfer clear"] pub type Chtif5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTEIF5` writer - Channel 5 Transfer Error clear"] pub type Cteif5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CGIF6` writer - Channel 6 Global interrupt clear"] pub type Cgif6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTCIF6` writer - Channel 6 Transfer Complete clear"] pub type Ctcif6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHTIF6` writer - Channel 6 Half Transfer clear"] pub type Chtif6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTEIF6` writer - Channel 6 Transfer Error clear"] pub type Cteif6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CGIF7` writer - Channel 7 Global interrupt clear"] pub type Cgif7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTCIF7` writer - Channel 7 Transfer Complete clear"] pub type Ctcif7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHTIF7` writer - Channel 7 Half Transfer clear"] pub type Chtif7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTEIF7` writer - Channel 7 Transfer Error clear"] pub type Cteif7W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl W {
#[doc = "Bit 0 - Channel 1 Global interrupt clear"]
#[inline (always)] pub fn cgif1 (& mut self) -> Cgif1W < '_ , IfcrSpec > { Cgif1W :: new (self , 0) }
#[doc = "Bit 1 - Channel 1 Transfer Complete clear"]
#[inline (always)] pub fn ctcif1 (& mut self) -> Ctcif1W < '_ , IfcrSpec > { Ctcif1W :: new (self , 1) }
#[doc = "Bit 2 - Channel 1 Half Transfer clear"]
#[inline (always)] pub fn chtif1 (& mut self) -> Chtif1W < '_ , IfcrSpec > { Chtif1W :: new (self , 2) }
#[doc = "Bit 3 - Channel 1 Transfer Error clear"]
#[inline (always)] pub fn cteif1 (& mut self) -> Cteif1W < '_ , IfcrSpec > { Cteif1W :: new (self , 3) }
#[doc = "Bit 4 - Channel 2 Global interrupt clear"]
#[inline (always)] pub fn cgif2 (& mut self) -> Cgif2W < '_ , IfcrSpec > { Cgif2W :: new (self , 4) }
#[doc = "Bit 5 - Channel 2 Transfer Complete clear"]
#[inline (always)] pub fn ctcif2 (& mut self) -> Ctcif2W < '_ , IfcrSpec > { Ctcif2W :: new (self , 5) }
#[doc = "Bit 6 - Channel 2 Half Transfer clear"]
#[inline (always)] pub fn chtif2 (& mut self) -> Chtif2W < '_ , IfcrSpec > { Chtif2W :: new (self , 6) }
#[doc = "Bit 7 - Channel 2 Transfer Error clear"]
#[inline (always)] pub fn cteif2 (& mut self) -> Cteif2W < '_ , IfcrSpec > { Cteif2W :: new (self , 7) }
#[doc = "Bit 8 - Channel 3 Global interrupt clear"]
#[inline (always)] pub fn cgif3 (& mut self) -> Cgif3W < '_ , IfcrSpec > { Cgif3W :: new (self , 8) }
#[doc = "Bit 9 - Channel 3 Transfer Complete clear"]
#[inline (always)] pub fn ctcif3 (& mut self) -> Ctcif3W < '_ , IfcrSpec > { Ctcif3W :: new (self , 9) }
#[doc = "Bit 10 - Channel 3 Half Transfer clear"]
#[inline (always)] pub fn chtif3 (& mut self) -> Chtif3W < '_ , IfcrSpec > { Chtif3W :: new (self , 10) }
#[doc = "Bit 11 - Channel 3 Transfer Error clear"]
#[inline (always)] pub fn cteif3 (& mut self) -> Cteif3W < '_ , IfcrSpec > { Cteif3W :: new (self , 11) }
#[doc = "Bit 12 - Channel 4 Global interrupt clear"]
#[inline (always)] pub fn cgif4 (& mut self) -> Cgif4W < '_ , IfcrSpec > { Cgif4W :: new (self , 12) }
#[doc = "Bit 13 - Channel 4 Transfer Complete clear"]
#[inline (always)] pub fn ctcif4 (& mut self) -> Ctcif4W < '_ , IfcrSpec > { Ctcif4W :: new (self , 13) }
#[doc = "Bit 14 - Channel 4 Half Transfer clear"]
#[inline (always)] pub fn chtif4 (& mut self) -> Chtif4W < '_ , IfcrSpec > { Chtif4W :: new (self , 14) }
#[doc = "Bit 15 - Channel 4 Transfer Error clear"]
#[inline (always)] pub fn cteif4 (& mut self) -> Cteif4W < '_ , IfcrSpec > { Cteif4W :: new (self , 15) }
#[doc = "Bit 16 - Channel 5 Global interrupt clear"]
#[inline (always)] pub fn cgif5 (& mut self) -> Cgif5W < '_ , IfcrSpec > { Cgif5W :: new (self , 16) }
#[doc = "Bit 17 - Channel 5 Transfer Complete clear"]
#[inline (always)] pub fn ctcif5 (& mut self) -> Ctcif5W < '_ , IfcrSpec > { Ctcif5W :: new (self , 17) }
#[doc = "Bit 18 - Channel 5 Half Transfer clear"]
#[inline (always)] pub fn chtif5 (& mut self) -> Chtif5W < '_ , IfcrSpec > { Chtif5W :: new (self , 18) }
#[doc = "Bit 19 - Channel 5 Transfer Error clear"]
#[inline (always)] pub fn cteif5 (& mut self) -> Cteif5W < '_ , IfcrSpec > { Cteif5W :: new (self , 19) }
#[doc = "Bit 20 - Channel 6 Global interrupt clear"]
#[inline (always)] pub fn cgif6 (& mut self) -> Cgif6W < '_ , IfcrSpec > { Cgif6W :: new (self , 20) }
#[doc = "Bit 21 - Channel 6 Transfer Complete clear"]
#[inline (always)] pub fn ctcif6 (& mut self) -> Ctcif6W < '_ , IfcrSpec > { Ctcif6W :: new (self , 21) }
#[doc = "Bit 22 - Channel 6 Half Transfer clear"]
#[inline (always)] pub fn chtif6 (& mut self) -> Chtif6W < '_ , IfcrSpec > { Chtif6W :: new (self , 22) }
#[doc = "Bit 23 - Channel 6 Transfer Error clear"]
#[inline (always)] pub fn cteif6 (& mut self) -> Cteif6W < '_ , IfcrSpec > { Cteif6W :: new (self , 23) }
#[doc = "Bit 24 - Channel 7 Global interrupt clear"]
#[inline (always)] pub fn cgif7 (& mut self) -> Cgif7W < '_ , IfcrSpec > { Cgif7W :: new (self , 24) }
#[doc = "Bit 25 - Channel 7 Transfer Complete clear"]
#[inline (always)] pub fn ctcif7 (& mut self) -> Ctcif7W < '_ , IfcrSpec > { Ctcif7W :: new (self , 25) }
#[doc = "Bit 26 - Channel 7 Half Transfer clear"]
#[inline (always)] pub fn chtif7 (& mut self) -> Chtif7W < '_ , IfcrSpec > { Chtif7W :: new (self , 26) }
#[doc = "Bit 27 - Channel 7 Transfer Error clear"]
#[inline (always)] pub fn cteif7 (& mut self) -> Cteif7W < '_ , IfcrSpec > { Cteif7W :: new (self , 27) } }
#[doc = "DMA interrupt flag clear register (DMA_IFCR)\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ifcr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct IfcrSpec ; impl crate :: RegisterSpec for IfcrSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`ifcr::W`](W) writer structure"] impl crate :: Writable for IfcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets IFCR to value 0"] impl crate :: Resettable for IfcrSpec { } }
#[doc = "CCR1 (rw) register accessor: DMA channel configuration register (DMA_CCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr1`] module"]
#[doc (alias = "CCR1")] pub type Ccr1 = crate :: Reg < ccr1 :: Ccr1Spec > ;
#[doc = "DMA channel configuration register (DMA_CCR)"] pub mod ccr1 {
#[doc = "Register `CCR1` reader"] pub type R = crate :: R < Ccr1Spec > ;
#[doc = "Register `CCR1` writer"] pub type W = crate :: W < Ccr1Spec > ;
#[doc = "Field `EN` reader - Channel enable"] pub type EnR = crate :: BitReader ;
#[doc = "Field `EN` writer - Channel enable"] pub type EnW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TCIE` reader - Transfer complete interrupt enable"] pub type TcieR = crate :: BitReader ;
#[doc = "Field `TCIE` writer - Transfer complete interrupt enable"] pub type TcieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HTIE` reader - Half Transfer interrupt enable"] pub type HtieR = crate :: BitReader ;
#[doc = "Field `HTIE` writer - Half Transfer interrupt enable"] pub type HtieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TEIE` reader - Transfer error interrupt enable"] pub type TeieR = crate :: BitReader ;
#[doc = "Field `TEIE` writer - Transfer error interrupt enable"] pub type TeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DIR` reader - Data transfer direction"] pub type DirR = crate :: BitReader ;
#[doc = "Field `DIR` writer - Data transfer direction"] pub type DirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CIRC` reader - Circular mode"] pub type CircR = crate :: BitReader ;
#[doc = "Field `CIRC` writer - Circular mode"] pub type CircW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PINC` reader - Peripheral increment mode"] pub type PincR = crate :: BitReader ;
#[doc = "Field `PINC` writer - Peripheral increment mode"] pub type PincW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MINC` reader - Memory increment mode"] pub type MincR = crate :: BitReader ;
#[doc = "Field `MINC` writer - Memory increment mode"] pub type MincW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PSIZE` reader - Peripheral size"] pub type PsizeR = crate :: FieldReader ;
#[doc = "Field `PSIZE` writer - Peripheral size"] pub type PsizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MSIZE` reader - Memory size"] pub type MsizeR = crate :: FieldReader ;
#[doc = "Field `MSIZE` writer - Memory size"] pub type MsizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `PL` reader - Channel Priority level"] pub type PlR = crate :: FieldReader ;
#[doc = "Field `PL` writer - Channel Priority level"] pub type PlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MEM2MEM` reader - Memory to memory mode"] pub type Mem2memR = crate :: BitReader ;
#[doc = "Field `MEM2MEM` writer - Memory to memory mode"] pub type Mem2memW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Channel enable"]
#[inline (always)] pub fn en (& self) -> EnR { EnR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Transfer complete interrupt enable"]
#[inline (always)] pub fn tcie (& self) -> TcieR { TcieR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Half Transfer interrupt enable"]
#[inline (always)] pub fn htie (& self) -> HtieR { HtieR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Transfer error interrupt enable"]
#[inline (always)] pub fn teie (& self) -> TeieR { TeieR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Data transfer direction"]
#[inline (always)] pub fn dir (& self) -> DirR { DirR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Circular mode"]
#[inline (always)] pub fn circ (& self) -> CircR { CircR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Peripheral increment mode"]
#[inline (always)] pub fn pinc (& self) -> PincR { PincR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Memory increment mode"]
#[inline (always)] pub fn minc (& self) -> MincR { MincR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Peripheral size"]
#[inline (always)] pub fn psize (& self) -> PsizeR { PsizeR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - Memory size"]
#[inline (always)] pub fn msize (& self) -> MsizeR { MsizeR :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bits 12:13 - Channel Priority level"]
#[inline (always)] pub fn pl (& self) -> PlR { PlR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Memory to memory mode"]
#[inline (always)] pub fn mem2mem (& self) -> Mem2memR { Mem2memR :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Channel enable"]
#[inline (always)] pub fn en (& mut self) -> EnW < '_ , Ccr1Spec > { EnW :: new (self , 0) }
#[doc = "Bit 1 - Transfer complete interrupt enable"]
#[inline (always)] pub fn tcie (& mut self) -> TcieW < '_ , Ccr1Spec > { TcieW :: new (self , 1) }
#[doc = "Bit 2 - Half Transfer interrupt enable"]
#[inline (always)] pub fn htie (& mut self) -> HtieW < '_ , Ccr1Spec > { HtieW :: new (self , 2) }
#[doc = "Bit 3 - Transfer error interrupt enable"]
#[inline (always)] pub fn teie (& mut self) -> TeieW < '_ , Ccr1Spec > { TeieW :: new (self , 3) }
#[doc = "Bit 4 - Data transfer direction"]
#[inline (always)] pub fn dir (& mut self) -> DirW < '_ , Ccr1Spec > { DirW :: new (self , 4) }
#[doc = "Bit 5 - Circular mode"]
#[inline (always)] pub fn circ (& mut self) -> CircW < '_ , Ccr1Spec > { CircW :: new (self , 5) }
#[doc = "Bit 6 - Peripheral increment mode"]
#[inline (always)] pub fn pinc (& mut self) -> PincW < '_ , Ccr1Spec > { PincW :: new (self , 6) }
#[doc = "Bit 7 - Memory increment mode"]
#[inline (always)] pub fn minc (& mut self) -> MincW < '_ , Ccr1Spec > { MincW :: new (self , 7) }
#[doc = "Bits 8:9 - Peripheral size"]
#[inline (always)] pub fn psize (& mut self) -> PsizeW < '_ , Ccr1Spec > { PsizeW :: new (self , 8) }
#[doc = "Bits 10:11 - Memory size"]
#[inline (always)] pub fn msize (& mut self) -> MsizeW < '_ , Ccr1Spec > { MsizeW :: new (self , 10) }
#[doc = "Bits 12:13 - Channel Priority level"]
#[inline (always)] pub fn pl (& mut self) -> PlW < '_ , Ccr1Spec > { PlW :: new (self , 12) }
#[doc = "Bit 14 - Memory to memory mode"]
#[inline (always)] pub fn mem2mem (& mut self) -> Mem2memW < '_ , Ccr1Spec > { Mem2memW :: new (self , 14) } }
#[doc = "DMA channel configuration register (DMA_CCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr1Spec ; impl crate :: RegisterSpec for Ccr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr1::R`](R) reader structure"] impl crate :: Readable for Ccr1Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr1::W`](W) writer structure"] impl crate :: Writable for Ccr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR1 to value 0"] impl crate :: Resettable for Ccr1Spec { } }
#[doc = "CNDTR1 (rw) register accessor: DMA channel 1 number of data register\n\nYou can [`read`](crate::Reg::read) this register and get [`cndtr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cndtr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cndtr1`] module"]
#[doc (alias = "CNDTR1")] pub type Cndtr1 = crate :: Reg < cndtr1 :: Cndtr1Spec > ;
#[doc = "DMA channel 1 number of data register"] pub mod cndtr1 {
#[doc = "Register `CNDTR1` reader"] pub type R = crate :: R < Cndtr1Spec > ;
#[doc = "Register `CNDTR1` writer"] pub type W = crate :: W < Cndtr1Spec > ;
#[doc = "Field `NDT` reader - Number of data to transfer"] pub type NdtR = crate :: FieldReader < u16 > ;
#[doc = "Field `NDT` writer - Number of data to transfer"] pub type NdtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Number of data to transfer"]
#[inline (always)] pub fn ndt (& self) -> NdtR { NdtR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Number of data to transfer"]
#[inline (always)] pub fn ndt (& mut self) -> NdtW < '_ , Cndtr1Spec > { NdtW :: new (self , 0) } }
#[doc = "DMA channel 1 number of data register\n\nYou can [`read`](crate::Reg::read) this register and get [`cndtr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cndtr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cndtr1Spec ; impl crate :: RegisterSpec for Cndtr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cndtr1::R`](R) reader structure"] impl crate :: Readable for Cndtr1Spec { }
#[doc = "`write(|w| ..)` method takes [`cndtr1::W`](W) writer structure"] impl crate :: Writable for Cndtr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNDTR1 to value 0"] impl crate :: Resettable for Cndtr1Spec { } }
#[doc = "CPAR1 (rw) register accessor: DMA channel 1 peripheral address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cpar1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpar1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cpar1`] module"]
#[doc (alias = "CPAR1")] pub type Cpar1 = crate :: Reg < cpar1 :: Cpar1Spec > ;
#[doc = "DMA channel 1 peripheral address register"] pub mod cpar1 {
#[doc = "Register `CPAR1` reader"] pub type R = crate :: R < Cpar1Spec > ;
#[doc = "Register `CPAR1` writer"] pub type W = crate :: W < Cpar1Spec > ;
#[doc = "Field `PA` reader - Peripheral address"] pub type PaR = crate :: FieldReader < u32 > ;
#[doc = "Field `PA` writer - Peripheral address"] pub type PaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Peripheral address"]
#[inline (always)] pub fn pa (& self) -> PaR { PaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Peripheral address"]
#[inline (always)] pub fn pa (& mut self) -> PaW < '_ , Cpar1Spec > { PaW :: new (self , 0) } }
#[doc = "DMA channel 1 peripheral address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cpar1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpar1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cpar1Spec ; impl crate :: RegisterSpec for Cpar1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cpar1::R`](R) reader structure"] impl crate :: Readable for Cpar1Spec { }
#[doc = "`write(|w| ..)` method takes [`cpar1::W`](W) writer structure"] impl crate :: Writable for Cpar1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CPAR1 to value 0"] impl crate :: Resettable for Cpar1Spec { } }
#[doc = "CMAR1 (rw) register accessor: DMA channel 1 memory address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cmar1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmar1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmar1`] module"]
#[doc (alias = "CMAR1")] pub type Cmar1 = crate :: Reg < cmar1 :: Cmar1Spec > ;
#[doc = "DMA channel 1 memory address register"] pub mod cmar1 {
#[doc = "Register `CMAR1` reader"] pub type R = crate :: R < Cmar1Spec > ;
#[doc = "Register `CMAR1` writer"] pub type W = crate :: W < Cmar1Spec > ;
#[doc = "Field `MA` reader - Memory address"] pub type MaR = crate :: FieldReader < u32 > ;
#[doc = "Field `MA` writer - Memory address"] pub type MaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Memory address"]
#[inline (always)] pub fn ma (& self) -> MaR { MaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Memory address"]
#[inline (always)] pub fn ma (& mut self) -> MaW < '_ , Cmar1Spec > { MaW :: new (self , 0) } }
#[doc = "DMA channel 1 memory address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cmar1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmar1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cmar1Spec ; impl crate :: RegisterSpec for Cmar1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cmar1::R`](R) reader structure"] impl crate :: Readable for Cmar1Spec { }
#[doc = "`write(|w| ..)` method takes [`cmar1::W`](W) writer structure"] impl crate :: Writable for Cmar1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CMAR1 to value 0"] impl crate :: Resettable for Cmar1Spec { } }
#[doc = "CCR2 (rw) register accessor: DMA channel configuration register (DMA_CCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr2`] module"]
#[doc (alias = "CCR2")] pub type Ccr2 = crate :: Reg < ccr2 :: Ccr2Spec > ;
#[doc = "DMA channel configuration register (DMA_CCR)"] pub mod ccr2 {
#[doc = "Register `CCR2` reader"] pub type R = crate :: R < Ccr2Spec > ;
#[doc = "Register `CCR2` writer"] pub type W = crate :: W < Ccr2Spec > ;
#[doc = "Field `EN` reader - Channel enable"] pub type EnR = crate :: BitReader ;
#[doc = "Field `EN` writer - Channel enable"] pub type EnW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TCIE` reader - Transfer complete interrupt enable"] pub type TcieR = crate :: BitReader ;
#[doc = "Field `TCIE` writer - Transfer complete interrupt enable"] pub type TcieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HTIE` reader - Half Transfer interrupt enable"] pub type HtieR = crate :: BitReader ;
#[doc = "Field `HTIE` writer - Half Transfer interrupt enable"] pub type HtieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TEIE` reader - Transfer error interrupt enable"] pub type TeieR = crate :: BitReader ;
#[doc = "Field `TEIE` writer - Transfer error interrupt enable"] pub type TeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DIR` reader - Data transfer direction"] pub type DirR = crate :: BitReader ;
#[doc = "Field `DIR` writer - Data transfer direction"] pub type DirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CIRC` reader - Circular mode"] pub type CircR = crate :: BitReader ;
#[doc = "Field `CIRC` writer - Circular mode"] pub type CircW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PINC` reader - Peripheral increment mode"] pub type PincR = crate :: BitReader ;
#[doc = "Field `PINC` writer - Peripheral increment mode"] pub type PincW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MINC` reader - Memory increment mode"] pub type MincR = crate :: BitReader ;
#[doc = "Field `MINC` writer - Memory increment mode"] pub type MincW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PSIZE` reader - Peripheral size"] pub type PsizeR = crate :: FieldReader ;
#[doc = "Field `PSIZE` writer - Peripheral size"] pub type PsizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MSIZE` reader - Memory size"] pub type MsizeR = crate :: FieldReader ;
#[doc = "Field `MSIZE` writer - Memory size"] pub type MsizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `PL` reader - Channel Priority level"] pub type PlR = crate :: FieldReader ;
#[doc = "Field `PL` writer - Channel Priority level"] pub type PlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MEM2MEM` reader - Memory to memory mode"] pub type Mem2memR = crate :: BitReader ;
#[doc = "Field `MEM2MEM` writer - Memory to memory mode"] pub type Mem2memW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Channel enable"]
#[inline (always)] pub fn en (& self) -> EnR { EnR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Transfer complete interrupt enable"]
#[inline (always)] pub fn tcie (& self) -> TcieR { TcieR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Half Transfer interrupt enable"]
#[inline (always)] pub fn htie (& self) -> HtieR { HtieR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Transfer error interrupt enable"]
#[inline (always)] pub fn teie (& self) -> TeieR { TeieR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Data transfer direction"]
#[inline (always)] pub fn dir (& self) -> DirR { DirR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Circular mode"]
#[inline (always)] pub fn circ (& self) -> CircR { CircR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Peripheral increment mode"]
#[inline (always)] pub fn pinc (& self) -> PincR { PincR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Memory increment mode"]
#[inline (always)] pub fn minc (& self) -> MincR { MincR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Peripheral size"]
#[inline (always)] pub fn psize (& self) -> PsizeR { PsizeR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - Memory size"]
#[inline (always)] pub fn msize (& self) -> MsizeR { MsizeR :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bits 12:13 - Channel Priority level"]
#[inline (always)] pub fn pl (& self) -> PlR { PlR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Memory to memory mode"]
#[inline (always)] pub fn mem2mem (& self) -> Mem2memR { Mem2memR :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Channel enable"]
#[inline (always)] pub fn en (& mut self) -> EnW < '_ , Ccr2Spec > { EnW :: new (self , 0) }
#[doc = "Bit 1 - Transfer complete interrupt enable"]
#[inline (always)] pub fn tcie (& mut self) -> TcieW < '_ , Ccr2Spec > { TcieW :: new (self , 1) }
#[doc = "Bit 2 - Half Transfer interrupt enable"]
#[inline (always)] pub fn htie (& mut self) -> HtieW < '_ , Ccr2Spec > { HtieW :: new (self , 2) }
#[doc = "Bit 3 - Transfer error interrupt enable"]
#[inline (always)] pub fn teie (& mut self) -> TeieW < '_ , Ccr2Spec > { TeieW :: new (self , 3) }
#[doc = "Bit 4 - Data transfer direction"]
#[inline (always)] pub fn dir (& mut self) -> DirW < '_ , Ccr2Spec > { DirW :: new (self , 4) }
#[doc = "Bit 5 - Circular mode"]
#[inline (always)] pub fn circ (& mut self) -> CircW < '_ , Ccr2Spec > { CircW :: new (self , 5) }
#[doc = "Bit 6 - Peripheral increment mode"]
#[inline (always)] pub fn pinc (& mut self) -> PincW < '_ , Ccr2Spec > { PincW :: new (self , 6) }
#[doc = "Bit 7 - Memory increment mode"]
#[inline (always)] pub fn minc (& mut self) -> MincW < '_ , Ccr2Spec > { MincW :: new (self , 7) }
#[doc = "Bits 8:9 - Peripheral size"]
#[inline (always)] pub fn psize (& mut self) -> PsizeW < '_ , Ccr2Spec > { PsizeW :: new (self , 8) }
#[doc = "Bits 10:11 - Memory size"]
#[inline (always)] pub fn msize (& mut self) -> MsizeW < '_ , Ccr2Spec > { MsizeW :: new (self , 10) }
#[doc = "Bits 12:13 - Channel Priority level"]
#[inline (always)] pub fn pl (& mut self) -> PlW < '_ , Ccr2Spec > { PlW :: new (self , 12) }
#[doc = "Bit 14 - Memory to memory mode"]
#[inline (always)] pub fn mem2mem (& mut self) -> Mem2memW < '_ , Ccr2Spec > { Mem2memW :: new (self , 14) } }
#[doc = "DMA channel configuration register (DMA_CCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr2Spec ; impl crate :: RegisterSpec for Ccr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr2::R`](R) reader structure"] impl crate :: Readable for Ccr2Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr2::W`](W) writer structure"] impl crate :: Writable for Ccr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR2 to value 0"] impl crate :: Resettable for Ccr2Spec { } }
#[doc = "CNDTR2 (rw) register accessor: DMA channel 2 number of data register\n\nYou can [`read`](crate::Reg::read) this register and get [`cndtr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cndtr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cndtr2`] module"]
#[doc (alias = "CNDTR2")] pub type Cndtr2 = crate :: Reg < cndtr2 :: Cndtr2Spec > ;
#[doc = "DMA channel 2 number of data register"] pub mod cndtr2 {
#[doc = "Register `CNDTR2` reader"] pub type R = crate :: R < Cndtr2Spec > ;
#[doc = "Register `CNDTR2` writer"] pub type W = crate :: W < Cndtr2Spec > ;
#[doc = "Field `NDT` reader - Number of data to transfer"] pub type NdtR = crate :: FieldReader < u16 > ;
#[doc = "Field `NDT` writer - Number of data to transfer"] pub type NdtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Number of data to transfer"]
#[inline (always)] pub fn ndt (& self) -> NdtR { NdtR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Number of data to transfer"]
#[inline (always)] pub fn ndt (& mut self) -> NdtW < '_ , Cndtr2Spec > { NdtW :: new (self , 0) } }
#[doc = "DMA channel 2 number of data register\n\nYou can [`read`](crate::Reg::read) this register and get [`cndtr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cndtr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cndtr2Spec ; impl crate :: RegisterSpec for Cndtr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cndtr2::R`](R) reader structure"] impl crate :: Readable for Cndtr2Spec { }
#[doc = "`write(|w| ..)` method takes [`cndtr2::W`](W) writer structure"] impl crate :: Writable for Cndtr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNDTR2 to value 0"] impl crate :: Resettable for Cndtr2Spec { } }
#[doc = "CPAR2 (rw) register accessor: DMA channel 2 peripheral address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cpar2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpar2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cpar2`] module"]
#[doc (alias = "CPAR2")] pub type Cpar2 = crate :: Reg < cpar2 :: Cpar2Spec > ;
#[doc = "DMA channel 2 peripheral address register"] pub mod cpar2 {
#[doc = "Register `CPAR2` reader"] pub type R = crate :: R < Cpar2Spec > ;
#[doc = "Register `CPAR2` writer"] pub type W = crate :: W < Cpar2Spec > ;
#[doc = "Field `PA` reader - Peripheral address"] pub type PaR = crate :: FieldReader < u32 > ;
#[doc = "Field `PA` writer - Peripheral address"] pub type PaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Peripheral address"]
#[inline (always)] pub fn pa (& self) -> PaR { PaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Peripheral address"]
#[inline (always)] pub fn pa (& mut self) -> PaW < '_ , Cpar2Spec > { PaW :: new (self , 0) } }
#[doc = "DMA channel 2 peripheral address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cpar2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpar2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cpar2Spec ; impl crate :: RegisterSpec for Cpar2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cpar2::R`](R) reader structure"] impl crate :: Readable for Cpar2Spec { }
#[doc = "`write(|w| ..)` method takes [`cpar2::W`](W) writer structure"] impl crate :: Writable for Cpar2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CPAR2 to value 0"] impl crate :: Resettable for Cpar2Spec { } }
#[doc = "CMAR2 (rw) register accessor: DMA channel 2 memory address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cmar2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmar2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmar2`] module"]
#[doc (alias = "CMAR2")] pub type Cmar2 = crate :: Reg < cmar2 :: Cmar2Spec > ;
#[doc = "DMA channel 2 memory address register"] pub mod cmar2 {
#[doc = "Register `CMAR2` reader"] pub type R = crate :: R < Cmar2Spec > ;
#[doc = "Register `CMAR2` writer"] pub type W = crate :: W < Cmar2Spec > ;
#[doc = "Field `MA` reader - Memory address"] pub type MaR = crate :: FieldReader < u32 > ;
#[doc = "Field `MA` writer - Memory address"] pub type MaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Memory address"]
#[inline (always)] pub fn ma (& self) -> MaR { MaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Memory address"]
#[inline (always)] pub fn ma (& mut self) -> MaW < '_ , Cmar2Spec > { MaW :: new (self , 0) } }
#[doc = "DMA channel 2 memory address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cmar2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmar2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cmar2Spec ; impl crate :: RegisterSpec for Cmar2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cmar2::R`](R) reader structure"] impl crate :: Readable for Cmar2Spec { }
#[doc = "`write(|w| ..)` method takes [`cmar2::W`](W) writer structure"] impl crate :: Writable for Cmar2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CMAR2 to value 0"] impl crate :: Resettable for Cmar2Spec { } }
#[doc = "CCR3 (rw) register accessor: DMA channel configuration register (DMA_CCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr3`] module"]
#[doc (alias = "CCR3")] pub type Ccr3 = crate :: Reg < ccr3 :: Ccr3Spec > ;
#[doc = "DMA channel configuration register (DMA_CCR)"] pub mod ccr3 {
#[doc = "Register `CCR3` reader"] pub type R = crate :: R < Ccr3Spec > ;
#[doc = "Register `CCR3` writer"] pub type W = crate :: W < Ccr3Spec > ;
#[doc = "Field `EN` reader - Channel enable"] pub type EnR = crate :: BitReader ;
#[doc = "Field `EN` writer - Channel enable"] pub type EnW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TCIE` reader - Transfer complete interrupt enable"] pub type TcieR = crate :: BitReader ;
#[doc = "Field `TCIE` writer - Transfer complete interrupt enable"] pub type TcieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HTIE` reader - Half Transfer interrupt enable"] pub type HtieR = crate :: BitReader ;
#[doc = "Field `HTIE` writer - Half Transfer interrupt enable"] pub type HtieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TEIE` reader - Transfer error interrupt enable"] pub type TeieR = crate :: BitReader ;
#[doc = "Field `TEIE` writer - Transfer error interrupt enable"] pub type TeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DIR` reader - Data transfer direction"] pub type DirR = crate :: BitReader ;
#[doc = "Field `DIR` writer - Data transfer direction"] pub type DirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CIRC` reader - Circular mode"] pub type CircR = crate :: BitReader ;
#[doc = "Field `CIRC` writer - Circular mode"] pub type CircW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PINC` reader - Peripheral increment mode"] pub type PincR = crate :: BitReader ;
#[doc = "Field `PINC` writer - Peripheral increment mode"] pub type PincW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MINC` reader - Memory increment mode"] pub type MincR = crate :: BitReader ;
#[doc = "Field `MINC` writer - Memory increment mode"] pub type MincW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PSIZE` reader - Peripheral size"] pub type PsizeR = crate :: FieldReader ;
#[doc = "Field `PSIZE` writer - Peripheral size"] pub type PsizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MSIZE` reader - Memory size"] pub type MsizeR = crate :: FieldReader ;
#[doc = "Field `MSIZE` writer - Memory size"] pub type MsizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `PL` reader - Channel Priority level"] pub type PlR = crate :: FieldReader ;
#[doc = "Field `PL` writer - Channel Priority level"] pub type PlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MEM2MEM` reader - Memory to memory mode"] pub type Mem2memR = crate :: BitReader ;
#[doc = "Field `MEM2MEM` writer - Memory to memory mode"] pub type Mem2memW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Channel enable"]
#[inline (always)] pub fn en (& self) -> EnR { EnR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Transfer complete interrupt enable"]
#[inline (always)] pub fn tcie (& self) -> TcieR { TcieR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Half Transfer interrupt enable"]
#[inline (always)] pub fn htie (& self) -> HtieR { HtieR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Transfer error interrupt enable"]
#[inline (always)] pub fn teie (& self) -> TeieR { TeieR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Data transfer direction"]
#[inline (always)] pub fn dir (& self) -> DirR { DirR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Circular mode"]
#[inline (always)] pub fn circ (& self) -> CircR { CircR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Peripheral increment mode"]
#[inline (always)] pub fn pinc (& self) -> PincR { PincR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Memory increment mode"]
#[inline (always)] pub fn minc (& self) -> MincR { MincR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Peripheral size"]
#[inline (always)] pub fn psize (& self) -> PsizeR { PsizeR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - Memory size"]
#[inline (always)] pub fn msize (& self) -> MsizeR { MsizeR :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bits 12:13 - Channel Priority level"]
#[inline (always)] pub fn pl (& self) -> PlR { PlR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Memory to memory mode"]
#[inline (always)] pub fn mem2mem (& self) -> Mem2memR { Mem2memR :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Channel enable"]
#[inline (always)] pub fn en (& mut self) -> EnW < '_ , Ccr3Spec > { EnW :: new (self , 0) }
#[doc = "Bit 1 - Transfer complete interrupt enable"]
#[inline (always)] pub fn tcie (& mut self) -> TcieW < '_ , Ccr3Spec > { TcieW :: new (self , 1) }
#[doc = "Bit 2 - Half Transfer interrupt enable"]
#[inline (always)] pub fn htie (& mut self) -> HtieW < '_ , Ccr3Spec > { HtieW :: new (self , 2) }
#[doc = "Bit 3 - Transfer error interrupt enable"]
#[inline (always)] pub fn teie (& mut self) -> TeieW < '_ , Ccr3Spec > { TeieW :: new (self , 3) }
#[doc = "Bit 4 - Data transfer direction"]
#[inline (always)] pub fn dir (& mut self) -> DirW < '_ , Ccr3Spec > { DirW :: new (self , 4) }
#[doc = "Bit 5 - Circular mode"]
#[inline (always)] pub fn circ (& mut self) -> CircW < '_ , Ccr3Spec > { CircW :: new (self , 5) }
#[doc = "Bit 6 - Peripheral increment mode"]
#[inline (always)] pub fn pinc (& mut self) -> PincW < '_ , Ccr3Spec > { PincW :: new (self , 6) }
#[doc = "Bit 7 - Memory increment mode"]
#[inline (always)] pub fn minc (& mut self) -> MincW < '_ , Ccr3Spec > { MincW :: new (self , 7) }
#[doc = "Bits 8:9 - Peripheral size"]
#[inline (always)] pub fn psize (& mut self) -> PsizeW < '_ , Ccr3Spec > { PsizeW :: new (self , 8) }
#[doc = "Bits 10:11 - Memory size"]
#[inline (always)] pub fn msize (& mut self) -> MsizeW < '_ , Ccr3Spec > { MsizeW :: new (self , 10) }
#[doc = "Bits 12:13 - Channel Priority level"]
#[inline (always)] pub fn pl (& mut self) -> PlW < '_ , Ccr3Spec > { PlW :: new (self , 12) }
#[doc = "Bit 14 - Memory to memory mode"]
#[inline (always)] pub fn mem2mem (& mut self) -> Mem2memW < '_ , Ccr3Spec > { Mem2memW :: new (self , 14) } }
#[doc = "DMA channel configuration register (DMA_CCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr3Spec ; impl crate :: RegisterSpec for Ccr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr3::R`](R) reader structure"] impl crate :: Readable for Ccr3Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr3::W`](W) writer structure"] impl crate :: Writable for Ccr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR3 to value 0"] impl crate :: Resettable for Ccr3Spec { } }
#[doc = "CNDTR3 (rw) register accessor: DMA channel 3 number of data register\n\nYou can [`read`](crate::Reg::read) this register and get [`cndtr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cndtr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cndtr3`] module"]
#[doc (alias = "CNDTR3")] pub type Cndtr3 = crate :: Reg < cndtr3 :: Cndtr3Spec > ;
#[doc = "DMA channel 3 number of data register"] pub mod cndtr3 {
#[doc = "Register `CNDTR3` reader"] pub type R = crate :: R < Cndtr3Spec > ;
#[doc = "Register `CNDTR3` writer"] pub type W = crate :: W < Cndtr3Spec > ;
#[doc = "Field `NDT` reader - Number of data to transfer"] pub type NdtR = crate :: FieldReader < u16 > ;
#[doc = "Field `NDT` writer - Number of data to transfer"] pub type NdtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Number of data to transfer"]
#[inline (always)] pub fn ndt (& self) -> NdtR { NdtR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Number of data to transfer"]
#[inline (always)] pub fn ndt (& mut self) -> NdtW < '_ , Cndtr3Spec > { NdtW :: new (self , 0) } }
#[doc = "DMA channel 3 number of data register\n\nYou can [`read`](crate::Reg::read) this register and get [`cndtr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cndtr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cndtr3Spec ; impl crate :: RegisterSpec for Cndtr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cndtr3::R`](R) reader structure"] impl crate :: Readable for Cndtr3Spec { }
#[doc = "`write(|w| ..)` method takes [`cndtr3::W`](W) writer structure"] impl crate :: Writable for Cndtr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNDTR3 to value 0"] impl crate :: Resettable for Cndtr3Spec { } }
#[doc = "CPAR3 (rw) register accessor: DMA channel 3 peripheral address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cpar3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpar3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cpar3`] module"]
#[doc (alias = "CPAR3")] pub type Cpar3 = crate :: Reg < cpar3 :: Cpar3Spec > ;
#[doc = "DMA channel 3 peripheral address register"] pub mod cpar3 {
#[doc = "Register `CPAR3` reader"] pub type R = crate :: R < Cpar3Spec > ;
#[doc = "Register `CPAR3` writer"] pub type W = crate :: W < Cpar3Spec > ;
#[doc = "Field `PA` reader - Peripheral address"] pub type PaR = crate :: FieldReader < u32 > ;
#[doc = "Field `PA` writer - Peripheral address"] pub type PaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Peripheral address"]
#[inline (always)] pub fn pa (& self) -> PaR { PaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Peripheral address"]
#[inline (always)] pub fn pa (& mut self) -> PaW < '_ , Cpar3Spec > { PaW :: new (self , 0) } }
#[doc = "DMA channel 3 peripheral address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cpar3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpar3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cpar3Spec ; impl crate :: RegisterSpec for Cpar3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cpar3::R`](R) reader structure"] impl crate :: Readable for Cpar3Spec { }
#[doc = "`write(|w| ..)` method takes [`cpar3::W`](W) writer structure"] impl crate :: Writable for Cpar3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CPAR3 to value 0"] impl crate :: Resettable for Cpar3Spec { } }
#[doc = "CMAR3 (rw) register accessor: DMA channel 3 memory address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cmar3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmar3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmar3`] module"]
#[doc (alias = "CMAR3")] pub type Cmar3 = crate :: Reg < cmar3 :: Cmar3Spec > ;
#[doc = "DMA channel 3 memory address register"] pub mod cmar3 {
#[doc = "Register `CMAR3` reader"] pub type R = crate :: R < Cmar3Spec > ;
#[doc = "Register `CMAR3` writer"] pub type W = crate :: W < Cmar3Spec > ;
#[doc = "Field `MA` reader - Memory address"] pub type MaR = crate :: FieldReader < u32 > ;
#[doc = "Field `MA` writer - Memory address"] pub type MaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Memory address"]
#[inline (always)] pub fn ma (& self) -> MaR { MaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Memory address"]
#[inline (always)] pub fn ma (& mut self) -> MaW < '_ , Cmar3Spec > { MaW :: new (self , 0) } }
#[doc = "DMA channel 3 memory address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cmar3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmar3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cmar3Spec ; impl crate :: RegisterSpec for Cmar3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cmar3::R`](R) reader structure"] impl crate :: Readable for Cmar3Spec { }
#[doc = "`write(|w| ..)` method takes [`cmar3::W`](W) writer structure"] impl crate :: Writable for Cmar3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CMAR3 to value 0"] impl crate :: Resettable for Cmar3Spec { } }
#[doc = "CCR4 (rw) register accessor: DMA channel configuration register (DMA_CCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr4`] module"]
#[doc (alias = "CCR4")] pub type Ccr4 = crate :: Reg < ccr4 :: Ccr4Spec > ;
#[doc = "DMA channel configuration register (DMA_CCR)"] pub mod ccr4 {
#[doc = "Register `CCR4` reader"] pub type R = crate :: R < Ccr4Spec > ;
#[doc = "Register `CCR4` writer"] pub type W = crate :: W < Ccr4Spec > ;
#[doc = "Field `EN` reader - Channel enable"] pub type EnR = crate :: BitReader ;
#[doc = "Field `EN` writer - Channel enable"] pub type EnW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TCIE` reader - Transfer complete interrupt enable"] pub type TcieR = crate :: BitReader ;
#[doc = "Field `TCIE` writer - Transfer complete interrupt enable"] pub type TcieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HTIE` reader - Half Transfer interrupt enable"] pub type HtieR = crate :: BitReader ;
#[doc = "Field `HTIE` writer - Half Transfer interrupt enable"] pub type HtieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TEIE` reader - Transfer error interrupt enable"] pub type TeieR = crate :: BitReader ;
#[doc = "Field `TEIE` writer - Transfer error interrupt enable"] pub type TeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DIR` reader - Data transfer direction"] pub type DirR = crate :: BitReader ;
#[doc = "Field `DIR` writer - Data transfer direction"] pub type DirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CIRC` reader - Circular mode"] pub type CircR = crate :: BitReader ;
#[doc = "Field `CIRC` writer - Circular mode"] pub type CircW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PINC` reader - Peripheral increment mode"] pub type PincR = crate :: BitReader ;
#[doc = "Field `PINC` writer - Peripheral increment mode"] pub type PincW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MINC` reader - Memory increment mode"] pub type MincR = crate :: BitReader ;
#[doc = "Field `MINC` writer - Memory increment mode"] pub type MincW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PSIZE` reader - Peripheral size"] pub type PsizeR = crate :: FieldReader ;
#[doc = "Field `PSIZE` writer - Peripheral size"] pub type PsizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MSIZE` reader - Memory size"] pub type MsizeR = crate :: FieldReader ;
#[doc = "Field `MSIZE` writer - Memory size"] pub type MsizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `PL` reader - Channel Priority level"] pub type PlR = crate :: FieldReader ;
#[doc = "Field `PL` writer - Channel Priority level"] pub type PlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MEM2MEM` reader - Memory to memory mode"] pub type Mem2memR = crate :: BitReader ;
#[doc = "Field `MEM2MEM` writer - Memory to memory mode"] pub type Mem2memW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Channel enable"]
#[inline (always)] pub fn en (& self) -> EnR { EnR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Transfer complete interrupt enable"]
#[inline (always)] pub fn tcie (& self) -> TcieR { TcieR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Half Transfer interrupt enable"]
#[inline (always)] pub fn htie (& self) -> HtieR { HtieR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Transfer error interrupt enable"]
#[inline (always)] pub fn teie (& self) -> TeieR { TeieR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Data transfer direction"]
#[inline (always)] pub fn dir (& self) -> DirR { DirR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Circular mode"]
#[inline (always)] pub fn circ (& self) -> CircR { CircR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Peripheral increment mode"]
#[inline (always)] pub fn pinc (& self) -> PincR { PincR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Memory increment mode"]
#[inline (always)] pub fn minc (& self) -> MincR { MincR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Peripheral size"]
#[inline (always)] pub fn psize (& self) -> PsizeR { PsizeR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - Memory size"]
#[inline (always)] pub fn msize (& self) -> MsizeR { MsizeR :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bits 12:13 - Channel Priority level"]
#[inline (always)] pub fn pl (& self) -> PlR { PlR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Memory to memory mode"]
#[inline (always)] pub fn mem2mem (& self) -> Mem2memR { Mem2memR :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Channel enable"]
#[inline (always)] pub fn en (& mut self) -> EnW < '_ , Ccr4Spec > { EnW :: new (self , 0) }
#[doc = "Bit 1 - Transfer complete interrupt enable"]
#[inline (always)] pub fn tcie (& mut self) -> TcieW < '_ , Ccr4Spec > { TcieW :: new (self , 1) }
#[doc = "Bit 2 - Half Transfer interrupt enable"]
#[inline (always)] pub fn htie (& mut self) -> HtieW < '_ , Ccr4Spec > { HtieW :: new (self , 2) }
#[doc = "Bit 3 - Transfer error interrupt enable"]
#[inline (always)] pub fn teie (& mut self) -> TeieW < '_ , Ccr4Spec > { TeieW :: new (self , 3) }
#[doc = "Bit 4 - Data transfer direction"]
#[inline (always)] pub fn dir (& mut self) -> DirW < '_ , Ccr4Spec > { DirW :: new (self , 4) }
#[doc = "Bit 5 - Circular mode"]
#[inline (always)] pub fn circ (& mut self) -> CircW < '_ , Ccr4Spec > { CircW :: new (self , 5) }
#[doc = "Bit 6 - Peripheral increment mode"]
#[inline (always)] pub fn pinc (& mut self) -> PincW < '_ , Ccr4Spec > { PincW :: new (self , 6) }
#[doc = "Bit 7 - Memory increment mode"]
#[inline (always)] pub fn minc (& mut self) -> MincW < '_ , Ccr4Spec > { MincW :: new (self , 7) }
#[doc = "Bits 8:9 - Peripheral size"]
#[inline (always)] pub fn psize (& mut self) -> PsizeW < '_ , Ccr4Spec > { PsizeW :: new (self , 8) }
#[doc = "Bits 10:11 - Memory size"]
#[inline (always)] pub fn msize (& mut self) -> MsizeW < '_ , Ccr4Spec > { MsizeW :: new (self , 10) }
#[doc = "Bits 12:13 - Channel Priority level"]
#[inline (always)] pub fn pl (& mut self) -> PlW < '_ , Ccr4Spec > { PlW :: new (self , 12) }
#[doc = "Bit 14 - Memory to memory mode"]
#[inline (always)] pub fn mem2mem (& mut self) -> Mem2memW < '_ , Ccr4Spec > { Mem2memW :: new (self , 14) } }
#[doc = "DMA channel configuration register (DMA_CCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr4Spec ; impl crate :: RegisterSpec for Ccr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr4::R`](R) reader structure"] impl crate :: Readable for Ccr4Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr4::W`](W) writer structure"] impl crate :: Writable for Ccr4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR4 to value 0"] impl crate :: Resettable for Ccr4Spec { } }
#[doc = "CNDTR4 (rw) register accessor: DMA channel 4 number of data register\n\nYou can [`read`](crate::Reg::read) this register and get [`cndtr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cndtr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cndtr4`] module"]
#[doc (alias = "CNDTR4")] pub type Cndtr4 = crate :: Reg < cndtr4 :: Cndtr4Spec > ;
#[doc = "DMA channel 4 number of data register"] pub mod cndtr4 {
#[doc = "Register `CNDTR4` reader"] pub type R = crate :: R < Cndtr4Spec > ;
#[doc = "Register `CNDTR4` writer"] pub type W = crate :: W < Cndtr4Spec > ;
#[doc = "Field `NDT` reader - Number of data to transfer"] pub type NdtR = crate :: FieldReader < u16 > ;
#[doc = "Field `NDT` writer - Number of data to transfer"] pub type NdtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Number of data to transfer"]
#[inline (always)] pub fn ndt (& self) -> NdtR { NdtR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Number of data to transfer"]
#[inline (always)] pub fn ndt (& mut self) -> NdtW < '_ , Cndtr4Spec > { NdtW :: new (self , 0) } }
#[doc = "DMA channel 4 number of data register\n\nYou can [`read`](crate::Reg::read) this register and get [`cndtr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cndtr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cndtr4Spec ; impl crate :: RegisterSpec for Cndtr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cndtr4::R`](R) reader structure"] impl crate :: Readable for Cndtr4Spec { }
#[doc = "`write(|w| ..)` method takes [`cndtr4::W`](W) writer structure"] impl crate :: Writable for Cndtr4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNDTR4 to value 0"] impl crate :: Resettable for Cndtr4Spec { } }
#[doc = "CPAR4 (rw) register accessor: DMA channel 4 peripheral address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cpar4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpar4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cpar4`] module"]
#[doc (alias = "CPAR4")] pub type Cpar4 = crate :: Reg < cpar4 :: Cpar4Spec > ;
#[doc = "DMA channel 4 peripheral address register"] pub mod cpar4 {
#[doc = "Register `CPAR4` reader"] pub type R = crate :: R < Cpar4Spec > ;
#[doc = "Register `CPAR4` writer"] pub type W = crate :: W < Cpar4Spec > ;
#[doc = "Field `PA` reader - Peripheral address"] pub type PaR = crate :: FieldReader < u32 > ;
#[doc = "Field `PA` writer - Peripheral address"] pub type PaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Peripheral address"]
#[inline (always)] pub fn pa (& self) -> PaR { PaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Peripheral address"]
#[inline (always)] pub fn pa (& mut self) -> PaW < '_ , Cpar4Spec > { PaW :: new (self , 0) } }
#[doc = "DMA channel 4 peripheral address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cpar4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpar4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cpar4Spec ; impl crate :: RegisterSpec for Cpar4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cpar4::R`](R) reader structure"] impl crate :: Readable for Cpar4Spec { }
#[doc = "`write(|w| ..)` method takes [`cpar4::W`](W) writer structure"] impl crate :: Writable for Cpar4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CPAR4 to value 0"] impl crate :: Resettable for Cpar4Spec { } }
#[doc = "CMAR4 (rw) register accessor: DMA channel 4 memory address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cmar4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmar4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmar4`] module"]
#[doc (alias = "CMAR4")] pub type Cmar4 = crate :: Reg < cmar4 :: Cmar4Spec > ;
#[doc = "DMA channel 4 memory address register"] pub mod cmar4 {
#[doc = "Register `CMAR4` reader"] pub type R = crate :: R < Cmar4Spec > ;
#[doc = "Register `CMAR4` writer"] pub type W = crate :: W < Cmar4Spec > ;
#[doc = "Field `MA` reader - Memory address"] pub type MaR = crate :: FieldReader < u32 > ;
#[doc = "Field `MA` writer - Memory address"] pub type MaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Memory address"]
#[inline (always)] pub fn ma (& self) -> MaR { MaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Memory address"]
#[inline (always)] pub fn ma (& mut self) -> MaW < '_ , Cmar4Spec > { MaW :: new (self , 0) } }
#[doc = "DMA channel 4 memory address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cmar4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmar4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cmar4Spec ; impl crate :: RegisterSpec for Cmar4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cmar4::R`](R) reader structure"] impl crate :: Readable for Cmar4Spec { }
#[doc = "`write(|w| ..)` method takes [`cmar4::W`](W) writer structure"] impl crate :: Writable for Cmar4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CMAR4 to value 0"] impl crate :: Resettable for Cmar4Spec { } }
#[doc = "CCR5 (rw) register accessor: DMA channel configuration register (DMA_CCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr5::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr5::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr5`] module"]
#[doc (alias = "CCR5")] pub type Ccr5 = crate :: Reg < ccr5 :: Ccr5Spec > ;
#[doc = "DMA channel configuration register (DMA_CCR)"] pub mod ccr5 {
#[doc = "Register `CCR5` reader"] pub type R = crate :: R < Ccr5Spec > ;
#[doc = "Register `CCR5` writer"] pub type W = crate :: W < Ccr5Spec > ;
#[doc = "Field `EN` reader - Channel enable"] pub type EnR = crate :: BitReader ;
#[doc = "Field `EN` writer - Channel enable"] pub type EnW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TCIE` reader - Transfer complete interrupt enable"] pub type TcieR = crate :: BitReader ;
#[doc = "Field `TCIE` writer - Transfer complete interrupt enable"] pub type TcieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HTIE` reader - Half Transfer interrupt enable"] pub type HtieR = crate :: BitReader ;
#[doc = "Field `HTIE` writer - Half Transfer interrupt enable"] pub type HtieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TEIE` reader - Transfer error interrupt enable"] pub type TeieR = crate :: BitReader ;
#[doc = "Field `TEIE` writer - Transfer error interrupt enable"] pub type TeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DIR` reader - Data transfer direction"] pub type DirR = crate :: BitReader ;
#[doc = "Field `DIR` writer - Data transfer direction"] pub type DirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CIRC` reader - Circular mode"] pub type CircR = crate :: BitReader ;
#[doc = "Field `CIRC` writer - Circular mode"] pub type CircW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PINC` reader - Peripheral increment mode"] pub type PincR = crate :: BitReader ;
#[doc = "Field `PINC` writer - Peripheral increment mode"] pub type PincW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MINC` reader - Memory increment mode"] pub type MincR = crate :: BitReader ;
#[doc = "Field `MINC` writer - Memory increment mode"] pub type MincW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PSIZE` reader - Peripheral size"] pub type PsizeR = crate :: FieldReader ;
#[doc = "Field `PSIZE` writer - Peripheral size"] pub type PsizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MSIZE` reader - Memory size"] pub type MsizeR = crate :: FieldReader ;
#[doc = "Field `MSIZE` writer - Memory size"] pub type MsizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `PL` reader - Channel Priority level"] pub type PlR = crate :: FieldReader ;
#[doc = "Field `PL` writer - Channel Priority level"] pub type PlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MEM2MEM` reader - Memory to memory mode"] pub type Mem2memR = crate :: BitReader ;
#[doc = "Field `MEM2MEM` writer - Memory to memory mode"] pub type Mem2memW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Channel enable"]
#[inline (always)] pub fn en (& self) -> EnR { EnR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Transfer complete interrupt enable"]
#[inline (always)] pub fn tcie (& self) -> TcieR { TcieR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Half Transfer interrupt enable"]
#[inline (always)] pub fn htie (& self) -> HtieR { HtieR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Transfer error interrupt enable"]
#[inline (always)] pub fn teie (& self) -> TeieR { TeieR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Data transfer direction"]
#[inline (always)] pub fn dir (& self) -> DirR { DirR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Circular mode"]
#[inline (always)] pub fn circ (& self) -> CircR { CircR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Peripheral increment mode"]
#[inline (always)] pub fn pinc (& self) -> PincR { PincR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Memory increment mode"]
#[inline (always)] pub fn minc (& self) -> MincR { MincR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Peripheral size"]
#[inline (always)] pub fn psize (& self) -> PsizeR { PsizeR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - Memory size"]
#[inline (always)] pub fn msize (& self) -> MsizeR { MsizeR :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bits 12:13 - Channel Priority level"]
#[inline (always)] pub fn pl (& self) -> PlR { PlR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Memory to memory mode"]
#[inline (always)] pub fn mem2mem (& self) -> Mem2memR { Mem2memR :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Channel enable"]
#[inline (always)] pub fn en (& mut self) -> EnW < '_ , Ccr5Spec > { EnW :: new (self , 0) }
#[doc = "Bit 1 - Transfer complete interrupt enable"]
#[inline (always)] pub fn tcie (& mut self) -> TcieW < '_ , Ccr5Spec > { TcieW :: new (self , 1) }
#[doc = "Bit 2 - Half Transfer interrupt enable"]
#[inline (always)] pub fn htie (& mut self) -> HtieW < '_ , Ccr5Spec > { HtieW :: new (self , 2) }
#[doc = "Bit 3 - Transfer error interrupt enable"]
#[inline (always)] pub fn teie (& mut self) -> TeieW < '_ , Ccr5Spec > { TeieW :: new (self , 3) }
#[doc = "Bit 4 - Data transfer direction"]
#[inline (always)] pub fn dir (& mut self) -> DirW < '_ , Ccr5Spec > { DirW :: new (self , 4) }
#[doc = "Bit 5 - Circular mode"]
#[inline (always)] pub fn circ (& mut self) -> CircW < '_ , Ccr5Spec > { CircW :: new (self , 5) }
#[doc = "Bit 6 - Peripheral increment mode"]
#[inline (always)] pub fn pinc (& mut self) -> PincW < '_ , Ccr5Spec > { PincW :: new (self , 6) }
#[doc = "Bit 7 - Memory increment mode"]
#[inline (always)] pub fn minc (& mut self) -> MincW < '_ , Ccr5Spec > { MincW :: new (self , 7) }
#[doc = "Bits 8:9 - Peripheral size"]
#[inline (always)] pub fn psize (& mut self) -> PsizeW < '_ , Ccr5Spec > { PsizeW :: new (self , 8) }
#[doc = "Bits 10:11 - Memory size"]
#[inline (always)] pub fn msize (& mut self) -> MsizeW < '_ , Ccr5Spec > { MsizeW :: new (self , 10) }
#[doc = "Bits 12:13 - Channel Priority level"]
#[inline (always)] pub fn pl (& mut self) -> PlW < '_ , Ccr5Spec > { PlW :: new (self , 12) }
#[doc = "Bit 14 - Memory to memory mode"]
#[inline (always)] pub fn mem2mem (& mut self) -> Mem2memW < '_ , Ccr5Spec > { Mem2memW :: new (self , 14) } }
#[doc = "DMA channel configuration register (DMA_CCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr5::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr5::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr5Spec ; impl crate :: RegisterSpec for Ccr5Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr5::R`](R) reader structure"] impl crate :: Readable for Ccr5Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr5::W`](W) writer structure"] impl crate :: Writable for Ccr5Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR5 to value 0"] impl crate :: Resettable for Ccr5Spec { } }
#[doc = "CNDTR5 (rw) register accessor: DMA channel 5 number of data register\n\nYou can [`read`](crate::Reg::read) this register and get [`cndtr5::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cndtr5::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cndtr5`] module"]
#[doc (alias = "CNDTR5")] pub type Cndtr5 = crate :: Reg < cndtr5 :: Cndtr5Spec > ;
#[doc = "DMA channel 5 number of data register"] pub mod cndtr5 {
#[doc = "Register `CNDTR5` reader"] pub type R = crate :: R < Cndtr5Spec > ;
#[doc = "Register `CNDTR5` writer"] pub type W = crate :: W < Cndtr5Spec > ;
#[doc = "Field `NDT` reader - Number of data to transfer"] pub type NdtR = crate :: FieldReader < u16 > ;
#[doc = "Field `NDT` writer - Number of data to transfer"] pub type NdtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Number of data to transfer"]
#[inline (always)] pub fn ndt (& self) -> NdtR { NdtR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Number of data to transfer"]
#[inline (always)] pub fn ndt (& mut self) -> NdtW < '_ , Cndtr5Spec > { NdtW :: new (self , 0) } }
#[doc = "DMA channel 5 number of data register\n\nYou can [`read`](crate::Reg::read) this register and get [`cndtr5::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cndtr5::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cndtr5Spec ; impl crate :: RegisterSpec for Cndtr5Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cndtr5::R`](R) reader structure"] impl crate :: Readable for Cndtr5Spec { }
#[doc = "`write(|w| ..)` method takes [`cndtr5::W`](W) writer structure"] impl crate :: Writable for Cndtr5Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNDTR5 to value 0"] impl crate :: Resettable for Cndtr5Spec { } }
#[doc = "CPAR5 (rw) register accessor: DMA channel 5 peripheral address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cpar5::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpar5::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cpar5`] module"]
#[doc (alias = "CPAR5")] pub type Cpar5 = crate :: Reg < cpar5 :: Cpar5Spec > ;
#[doc = "DMA channel 5 peripheral address register"] pub mod cpar5 {
#[doc = "Register `CPAR5` reader"] pub type R = crate :: R < Cpar5Spec > ;
#[doc = "Register `CPAR5` writer"] pub type W = crate :: W < Cpar5Spec > ;
#[doc = "Field `PA` reader - Peripheral address"] pub type PaR = crate :: FieldReader < u32 > ;
#[doc = "Field `PA` writer - Peripheral address"] pub type PaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Peripheral address"]
#[inline (always)] pub fn pa (& self) -> PaR { PaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Peripheral address"]
#[inline (always)] pub fn pa (& mut self) -> PaW < '_ , Cpar5Spec > { PaW :: new (self , 0) } }
#[doc = "DMA channel 5 peripheral address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cpar5::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpar5::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cpar5Spec ; impl crate :: RegisterSpec for Cpar5Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cpar5::R`](R) reader structure"] impl crate :: Readable for Cpar5Spec { }
#[doc = "`write(|w| ..)` method takes [`cpar5::W`](W) writer structure"] impl crate :: Writable for Cpar5Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CPAR5 to value 0"] impl crate :: Resettable for Cpar5Spec { } }
#[doc = "CMAR5 (rw) register accessor: DMA channel 5 memory address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cmar5::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmar5::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmar5`] module"]
#[doc (alias = "CMAR5")] pub type Cmar5 = crate :: Reg < cmar5 :: Cmar5Spec > ;
#[doc = "DMA channel 5 memory address register"] pub mod cmar5 {
#[doc = "Register `CMAR5` reader"] pub type R = crate :: R < Cmar5Spec > ;
#[doc = "Register `CMAR5` writer"] pub type W = crate :: W < Cmar5Spec > ;
#[doc = "Field `MA` reader - Memory address"] pub type MaR = crate :: FieldReader < u32 > ;
#[doc = "Field `MA` writer - Memory address"] pub type MaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Memory address"]
#[inline (always)] pub fn ma (& self) -> MaR { MaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Memory address"]
#[inline (always)] pub fn ma (& mut self) -> MaW < '_ , Cmar5Spec > { MaW :: new (self , 0) } }
#[doc = "DMA channel 5 memory address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cmar5::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmar5::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cmar5Spec ; impl crate :: RegisterSpec for Cmar5Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cmar5::R`](R) reader structure"] impl crate :: Readable for Cmar5Spec { }
#[doc = "`write(|w| ..)` method takes [`cmar5::W`](W) writer structure"] impl crate :: Writable for Cmar5Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CMAR5 to value 0"] impl crate :: Resettable for Cmar5Spec { } }
#[doc = "CCR6 (rw) register accessor: DMA channel configuration register (DMA_CCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr6::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr6::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr6`] module"]
#[doc (alias = "CCR6")] pub type Ccr6 = crate :: Reg < ccr6 :: Ccr6Spec > ;
#[doc = "DMA channel configuration register (DMA_CCR)"] pub mod ccr6 {
#[doc = "Register `CCR6` reader"] pub type R = crate :: R < Ccr6Spec > ;
#[doc = "Register `CCR6` writer"] pub type W = crate :: W < Ccr6Spec > ;
#[doc = "Field `EN` reader - Channel enable"] pub type EnR = crate :: BitReader ;
#[doc = "Field `EN` writer - Channel enable"] pub type EnW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TCIE` reader - Transfer complete interrupt enable"] pub type TcieR = crate :: BitReader ;
#[doc = "Field `TCIE` writer - Transfer complete interrupt enable"] pub type TcieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HTIE` reader - Half Transfer interrupt enable"] pub type HtieR = crate :: BitReader ;
#[doc = "Field `HTIE` writer - Half Transfer interrupt enable"] pub type HtieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TEIE` reader - Transfer error interrupt enable"] pub type TeieR = crate :: BitReader ;
#[doc = "Field `TEIE` writer - Transfer error interrupt enable"] pub type TeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DIR` reader - Data transfer direction"] pub type DirR = crate :: BitReader ;
#[doc = "Field `DIR` writer - Data transfer direction"] pub type DirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CIRC` reader - Circular mode"] pub type CircR = crate :: BitReader ;
#[doc = "Field `CIRC` writer - Circular mode"] pub type CircW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PINC` reader - Peripheral increment mode"] pub type PincR = crate :: BitReader ;
#[doc = "Field `PINC` writer - Peripheral increment mode"] pub type PincW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MINC` reader - Memory increment mode"] pub type MincR = crate :: BitReader ;
#[doc = "Field `MINC` writer - Memory increment mode"] pub type MincW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PSIZE` reader - Peripheral size"] pub type PsizeR = crate :: FieldReader ;
#[doc = "Field `PSIZE` writer - Peripheral size"] pub type PsizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MSIZE` reader - Memory size"] pub type MsizeR = crate :: FieldReader ;
#[doc = "Field `MSIZE` writer - Memory size"] pub type MsizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `PL` reader - Channel Priority level"] pub type PlR = crate :: FieldReader ;
#[doc = "Field `PL` writer - Channel Priority level"] pub type PlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MEM2MEM` reader - Memory to memory mode"] pub type Mem2memR = crate :: BitReader ;
#[doc = "Field `MEM2MEM` writer - Memory to memory mode"] pub type Mem2memW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Channel enable"]
#[inline (always)] pub fn en (& self) -> EnR { EnR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Transfer complete interrupt enable"]
#[inline (always)] pub fn tcie (& self) -> TcieR { TcieR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Half Transfer interrupt enable"]
#[inline (always)] pub fn htie (& self) -> HtieR { HtieR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Transfer error interrupt enable"]
#[inline (always)] pub fn teie (& self) -> TeieR { TeieR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Data transfer direction"]
#[inline (always)] pub fn dir (& self) -> DirR { DirR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Circular mode"]
#[inline (always)] pub fn circ (& self) -> CircR { CircR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Peripheral increment mode"]
#[inline (always)] pub fn pinc (& self) -> PincR { PincR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Memory increment mode"]
#[inline (always)] pub fn minc (& self) -> MincR { MincR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Peripheral size"]
#[inline (always)] pub fn psize (& self) -> PsizeR { PsizeR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - Memory size"]
#[inline (always)] pub fn msize (& self) -> MsizeR { MsizeR :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bits 12:13 - Channel Priority level"]
#[inline (always)] pub fn pl (& self) -> PlR { PlR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Memory to memory mode"]
#[inline (always)] pub fn mem2mem (& self) -> Mem2memR { Mem2memR :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Channel enable"]
#[inline (always)] pub fn en (& mut self) -> EnW < '_ , Ccr6Spec > { EnW :: new (self , 0) }
#[doc = "Bit 1 - Transfer complete interrupt enable"]
#[inline (always)] pub fn tcie (& mut self) -> TcieW < '_ , Ccr6Spec > { TcieW :: new (self , 1) }
#[doc = "Bit 2 - Half Transfer interrupt enable"]
#[inline (always)] pub fn htie (& mut self) -> HtieW < '_ , Ccr6Spec > { HtieW :: new (self , 2) }
#[doc = "Bit 3 - Transfer error interrupt enable"]
#[inline (always)] pub fn teie (& mut self) -> TeieW < '_ , Ccr6Spec > { TeieW :: new (self , 3) }
#[doc = "Bit 4 - Data transfer direction"]
#[inline (always)] pub fn dir (& mut self) -> DirW < '_ , Ccr6Spec > { DirW :: new (self , 4) }
#[doc = "Bit 5 - Circular mode"]
#[inline (always)] pub fn circ (& mut self) -> CircW < '_ , Ccr6Spec > { CircW :: new (self , 5) }
#[doc = "Bit 6 - Peripheral increment mode"]
#[inline (always)] pub fn pinc (& mut self) -> PincW < '_ , Ccr6Spec > { PincW :: new (self , 6) }
#[doc = "Bit 7 - Memory increment mode"]
#[inline (always)] pub fn minc (& mut self) -> MincW < '_ , Ccr6Spec > { MincW :: new (self , 7) }
#[doc = "Bits 8:9 - Peripheral size"]
#[inline (always)] pub fn psize (& mut self) -> PsizeW < '_ , Ccr6Spec > { PsizeW :: new (self , 8) }
#[doc = "Bits 10:11 - Memory size"]
#[inline (always)] pub fn msize (& mut self) -> MsizeW < '_ , Ccr6Spec > { MsizeW :: new (self , 10) }
#[doc = "Bits 12:13 - Channel Priority level"]
#[inline (always)] pub fn pl (& mut self) -> PlW < '_ , Ccr6Spec > { PlW :: new (self , 12) }
#[doc = "Bit 14 - Memory to memory mode"]
#[inline (always)] pub fn mem2mem (& mut self) -> Mem2memW < '_ , Ccr6Spec > { Mem2memW :: new (self , 14) } }
#[doc = "DMA channel configuration register (DMA_CCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr6::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr6::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr6Spec ; impl crate :: RegisterSpec for Ccr6Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr6::R`](R) reader structure"] impl crate :: Readable for Ccr6Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr6::W`](W) writer structure"] impl crate :: Writable for Ccr6Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR6 to value 0"] impl crate :: Resettable for Ccr6Spec { } }
#[doc = "CNDTR6 (rw) register accessor: DMA channel 6 number of data register\n\nYou can [`read`](crate::Reg::read) this register and get [`cndtr6::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cndtr6::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cndtr6`] module"]
#[doc (alias = "CNDTR6")] pub type Cndtr6 = crate :: Reg < cndtr6 :: Cndtr6Spec > ;
#[doc = "DMA channel 6 number of data register"] pub mod cndtr6 {
#[doc = "Register `CNDTR6` reader"] pub type R = crate :: R < Cndtr6Spec > ;
#[doc = "Register `CNDTR6` writer"] pub type W = crate :: W < Cndtr6Spec > ;
#[doc = "Field `NDT` reader - Number of data to transfer"] pub type NdtR = crate :: FieldReader < u16 > ;
#[doc = "Field `NDT` writer - Number of data to transfer"] pub type NdtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Number of data to transfer"]
#[inline (always)] pub fn ndt (& self) -> NdtR { NdtR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Number of data to transfer"]
#[inline (always)] pub fn ndt (& mut self) -> NdtW < '_ , Cndtr6Spec > { NdtW :: new (self , 0) } }
#[doc = "DMA channel 6 number of data register\n\nYou can [`read`](crate::Reg::read) this register and get [`cndtr6::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cndtr6::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cndtr6Spec ; impl crate :: RegisterSpec for Cndtr6Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cndtr6::R`](R) reader structure"] impl crate :: Readable for Cndtr6Spec { }
#[doc = "`write(|w| ..)` method takes [`cndtr6::W`](W) writer structure"] impl crate :: Writable for Cndtr6Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNDTR6 to value 0"] impl crate :: Resettable for Cndtr6Spec { } }
#[doc = "CPAR6 (rw) register accessor: DMA channel 6 peripheral address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cpar6::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpar6::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cpar6`] module"]
#[doc (alias = "CPAR6")] pub type Cpar6 = crate :: Reg < cpar6 :: Cpar6Spec > ;
#[doc = "DMA channel 6 peripheral address register"] pub mod cpar6 {
#[doc = "Register `CPAR6` reader"] pub type R = crate :: R < Cpar6Spec > ;
#[doc = "Register `CPAR6` writer"] pub type W = crate :: W < Cpar6Spec > ;
#[doc = "Field `PA` reader - Peripheral address"] pub type PaR = crate :: FieldReader < u32 > ;
#[doc = "Field `PA` writer - Peripheral address"] pub type PaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Peripheral address"]
#[inline (always)] pub fn pa (& self) -> PaR { PaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Peripheral address"]
#[inline (always)] pub fn pa (& mut self) -> PaW < '_ , Cpar6Spec > { PaW :: new (self , 0) } }
#[doc = "DMA channel 6 peripheral address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cpar6::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpar6::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cpar6Spec ; impl crate :: RegisterSpec for Cpar6Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cpar6::R`](R) reader structure"] impl crate :: Readable for Cpar6Spec { }
#[doc = "`write(|w| ..)` method takes [`cpar6::W`](W) writer structure"] impl crate :: Writable for Cpar6Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CPAR6 to value 0"] impl crate :: Resettable for Cpar6Spec { } }
#[doc = "CMAR6 (rw) register accessor: DMA channel 6 memory address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cmar6::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmar6::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmar6`] module"]
#[doc (alias = "CMAR6")] pub type Cmar6 = crate :: Reg < cmar6 :: Cmar6Spec > ;
#[doc = "DMA channel 6 memory address register"] pub mod cmar6 {
#[doc = "Register `CMAR6` reader"] pub type R = crate :: R < Cmar6Spec > ;
#[doc = "Register `CMAR6` writer"] pub type W = crate :: W < Cmar6Spec > ;
#[doc = "Field `MA` reader - Memory address"] pub type MaR = crate :: FieldReader < u32 > ;
#[doc = "Field `MA` writer - Memory address"] pub type MaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Memory address"]
#[inline (always)] pub fn ma (& self) -> MaR { MaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Memory address"]
#[inline (always)] pub fn ma (& mut self) -> MaW < '_ , Cmar6Spec > { MaW :: new (self , 0) } }
#[doc = "DMA channel 6 memory address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cmar6::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmar6::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cmar6Spec ; impl crate :: RegisterSpec for Cmar6Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cmar6::R`](R) reader structure"] impl crate :: Readable for Cmar6Spec { }
#[doc = "`write(|w| ..)` method takes [`cmar6::W`](W) writer structure"] impl crate :: Writable for Cmar6Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CMAR6 to value 0"] impl crate :: Resettable for Cmar6Spec { } }
#[doc = "CCR7 (rw) register accessor: DMA channel configuration register (DMA_CCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr7::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr7::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr7`] module"]
#[doc (alias = "CCR7")] pub type Ccr7 = crate :: Reg < ccr7 :: Ccr7Spec > ;
#[doc = "DMA channel configuration register (DMA_CCR)"] pub mod ccr7 {
#[doc = "Register `CCR7` reader"] pub type R = crate :: R < Ccr7Spec > ;
#[doc = "Register `CCR7` writer"] pub type W = crate :: W < Ccr7Spec > ;
#[doc = "Field `EN` reader - Channel enable"] pub type EnR = crate :: BitReader ;
#[doc = "Field `EN` writer - Channel enable"] pub type EnW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TCIE` reader - Transfer complete interrupt enable"] pub type TcieR = crate :: BitReader ;
#[doc = "Field `TCIE` writer - Transfer complete interrupt enable"] pub type TcieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HTIE` reader - Half Transfer interrupt enable"] pub type HtieR = crate :: BitReader ;
#[doc = "Field `HTIE` writer - Half Transfer interrupt enable"] pub type HtieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TEIE` reader - Transfer error interrupt enable"] pub type TeieR = crate :: BitReader ;
#[doc = "Field `TEIE` writer - Transfer error interrupt enable"] pub type TeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DIR` reader - Data transfer direction"] pub type DirR = crate :: BitReader ;
#[doc = "Field `DIR` writer - Data transfer direction"] pub type DirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CIRC` reader - Circular mode"] pub type CircR = crate :: BitReader ;
#[doc = "Field `CIRC` writer - Circular mode"] pub type CircW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PINC` reader - Peripheral increment mode"] pub type PincR = crate :: BitReader ;
#[doc = "Field `PINC` writer - Peripheral increment mode"] pub type PincW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MINC` reader - Memory increment mode"] pub type MincR = crate :: BitReader ;
#[doc = "Field `MINC` writer - Memory increment mode"] pub type MincW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PSIZE` reader - Peripheral size"] pub type PsizeR = crate :: FieldReader ;
#[doc = "Field `PSIZE` writer - Peripheral size"] pub type PsizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MSIZE` reader - Memory size"] pub type MsizeR = crate :: FieldReader ;
#[doc = "Field `MSIZE` writer - Memory size"] pub type MsizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `PL` reader - Channel Priority level"] pub type PlR = crate :: FieldReader ;
#[doc = "Field `PL` writer - Channel Priority level"] pub type PlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MEM2MEM` reader - Memory to memory mode"] pub type Mem2memR = crate :: BitReader ;
#[doc = "Field `MEM2MEM` writer - Memory to memory mode"] pub type Mem2memW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Channel enable"]
#[inline (always)] pub fn en (& self) -> EnR { EnR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Transfer complete interrupt enable"]
#[inline (always)] pub fn tcie (& self) -> TcieR { TcieR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Half Transfer interrupt enable"]
#[inline (always)] pub fn htie (& self) -> HtieR { HtieR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Transfer error interrupt enable"]
#[inline (always)] pub fn teie (& self) -> TeieR { TeieR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Data transfer direction"]
#[inline (always)] pub fn dir (& self) -> DirR { DirR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Circular mode"]
#[inline (always)] pub fn circ (& self) -> CircR { CircR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Peripheral increment mode"]
#[inline (always)] pub fn pinc (& self) -> PincR { PincR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Memory increment mode"]
#[inline (always)] pub fn minc (& self) -> MincR { MincR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Peripheral size"]
#[inline (always)] pub fn psize (& self) -> PsizeR { PsizeR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - Memory size"]
#[inline (always)] pub fn msize (& self) -> MsizeR { MsizeR :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bits 12:13 - Channel Priority level"]
#[inline (always)] pub fn pl (& self) -> PlR { PlR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Memory to memory mode"]
#[inline (always)] pub fn mem2mem (& self) -> Mem2memR { Mem2memR :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Channel enable"]
#[inline (always)] pub fn en (& mut self) -> EnW < '_ , Ccr7Spec > { EnW :: new (self , 0) }
#[doc = "Bit 1 - Transfer complete interrupt enable"]
#[inline (always)] pub fn tcie (& mut self) -> TcieW < '_ , Ccr7Spec > { TcieW :: new (self , 1) }
#[doc = "Bit 2 - Half Transfer interrupt enable"]
#[inline (always)] pub fn htie (& mut self) -> HtieW < '_ , Ccr7Spec > { HtieW :: new (self , 2) }
#[doc = "Bit 3 - Transfer error interrupt enable"]
#[inline (always)] pub fn teie (& mut self) -> TeieW < '_ , Ccr7Spec > { TeieW :: new (self , 3) }
#[doc = "Bit 4 - Data transfer direction"]
#[inline (always)] pub fn dir (& mut self) -> DirW < '_ , Ccr7Spec > { DirW :: new (self , 4) }
#[doc = "Bit 5 - Circular mode"]
#[inline (always)] pub fn circ (& mut self) -> CircW < '_ , Ccr7Spec > { CircW :: new (self , 5) }
#[doc = "Bit 6 - Peripheral increment mode"]
#[inline (always)] pub fn pinc (& mut self) -> PincW < '_ , Ccr7Spec > { PincW :: new (self , 6) }
#[doc = "Bit 7 - Memory increment mode"]
#[inline (always)] pub fn minc (& mut self) -> MincW < '_ , Ccr7Spec > { MincW :: new (self , 7) }
#[doc = "Bits 8:9 - Peripheral size"]
#[inline (always)] pub fn psize (& mut self) -> PsizeW < '_ , Ccr7Spec > { PsizeW :: new (self , 8) }
#[doc = "Bits 10:11 - Memory size"]
#[inline (always)] pub fn msize (& mut self) -> MsizeW < '_ , Ccr7Spec > { MsizeW :: new (self , 10) }
#[doc = "Bits 12:13 - Channel Priority level"]
#[inline (always)] pub fn pl (& mut self) -> PlW < '_ , Ccr7Spec > { PlW :: new (self , 12) }
#[doc = "Bit 14 - Memory to memory mode"]
#[inline (always)] pub fn mem2mem (& mut self) -> Mem2memW < '_ , Ccr7Spec > { Mem2memW :: new (self , 14) } }
#[doc = "DMA channel configuration register (DMA_CCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr7::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr7::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr7Spec ; impl crate :: RegisterSpec for Ccr7Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr7::R`](R) reader structure"] impl crate :: Readable for Ccr7Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr7::W`](W) writer structure"] impl crate :: Writable for Ccr7Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR7 to value 0"] impl crate :: Resettable for Ccr7Spec { } }
#[doc = "CNDTR7 (rw) register accessor: DMA channel 7 number of data register\n\nYou can [`read`](crate::Reg::read) this register and get [`cndtr7::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cndtr7::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cndtr7`] module"]
#[doc (alias = "CNDTR7")] pub type Cndtr7 = crate :: Reg < cndtr7 :: Cndtr7Spec > ;
#[doc = "DMA channel 7 number of data register"] pub mod cndtr7 {
#[doc = "Register `CNDTR7` reader"] pub type R = crate :: R < Cndtr7Spec > ;
#[doc = "Register `CNDTR7` writer"] pub type W = crate :: W < Cndtr7Spec > ;
#[doc = "Field `NDT` reader - Number of data to transfer"] pub type NdtR = crate :: FieldReader < u16 > ;
#[doc = "Field `NDT` writer - Number of data to transfer"] pub type NdtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Number of data to transfer"]
#[inline (always)] pub fn ndt (& self) -> NdtR { NdtR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Number of data to transfer"]
#[inline (always)] pub fn ndt (& mut self) -> NdtW < '_ , Cndtr7Spec > { NdtW :: new (self , 0) } }
#[doc = "DMA channel 7 number of data register\n\nYou can [`read`](crate::Reg::read) this register and get [`cndtr7::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cndtr7::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cndtr7Spec ; impl crate :: RegisterSpec for Cndtr7Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cndtr7::R`](R) reader structure"] impl crate :: Readable for Cndtr7Spec { }
#[doc = "`write(|w| ..)` method takes [`cndtr7::W`](W) writer structure"] impl crate :: Writable for Cndtr7Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNDTR7 to value 0"] impl crate :: Resettable for Cndtr7Spec { } }
#[doc = "CPAR7 (rw) register accessor: DMA channel 7 peripheral address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cpar7::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpar7::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cpar7`] module"]
#[doc (alias = "CPAR7")] pub type Cpar7 = crate :: Reg < cpar7 :: Cpar7Spec > ;
#[doc = "DMA channel 7 peripheral address register"] pub mod cpar7 {
#[doc = "Register `CPAR7` reader"] pub type R = crate :: R < Cpar7Spec > ;
#[doc = "Register `CPAR7` writer"] pub type W = crate :: W < Cpar7Spec > ;
#[doc = "Field `PA` reader - Peripheral address"] pub type PaR = crate :: FieldReader < u32 > ;
#[doc = "Field `PA` writer - Peripheral address"] pub type PaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Peripheral address"]
#[inline (always)] pub fn pa (& self) -> PaR { PaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Peripheral address"]
#[inline (always)] pub fn pa (& mut self) -> PaW < '_ , Cpar7Spec > { PaW :: new (self , 0) } }
#[doc = "DMA channel 7 peripheral address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cpar7::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpar7::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cpar7Spec ; impl crate :: RegisterSpec for Cpar7Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cpar7::R`](R) reader structure"] impl crate :: Readable for Cpar7Spec { }
#[doc = "`write(|w| ..)` method takes [`cpar7::W`](W) writer structure"] impl crate :: Writable for Cpar7Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CPAR7 to value 0"] impl crate :: Resettable for Cpar7Spec { } }
#[doc = "CMAR7 (rw) register accessor: DMA channel 7 memory address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cmar7::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmar7::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmar7`] module"]
#[doc (alias = "CMAR7")] pub type Cmar7 = crate :: Reg < cmar7 :: Cmar7Spec > ;
#[doc = "DMA channel 7 memory address register"] pub mod cmar7 {
#[doc = "Register `CMAR7` reader"] pub type R = crate :: R < Cmar7Spec > ;
#[doc = "Register `CMAR7` writer"] pub type W = crate :: W < Cmar7Spec > ;
#[doc = "Field `MA` reader - Memory address"] pub type MaR = crate :: FieldReader < u32 > ;
#[doc = "Field `MA` writer - Memory address"] pub type MaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Memory address"]
#[inline (always)] pub fn ma (& self) -> MaR { MaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Memory address"]
#[inline (always)] pub fn ma (& mut self) -> MaW < '_ , Cmar7Spec > { MaW :: new (self , 0) } }
#[doc = "DMA channel 7 memory address register\n\nYou can [`read`](crate::Reg::read) this register and get [`cmar7::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmar7::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cmar7Spec ; impl crate :: RegisterSpec for Cmar7Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cmar7::R`](R) reader structure"] impl crate :: Readable for Cmar7Spec { }
#[doc = "`write(|w| ..)` method takes [`cmar7::W`](W) writer structure"] impl crate :: Writable for Cmar7Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CMAR7 to value 0"] impl crate :: Resettable for Cmar7Spec { } } }
#[doc = "DMA controller"] pub type Dma2 = crate :: Periph < dma1 :: RegisterBlock , 0x4002_0400 > ; impl core :: fmt :: Debug for Dma2 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Dma2") . finish () } }
#[doc = "DMA controller"] pub use self :: dma1 as dma2 ;
#[doc = "Secure digital input/output interface"] pub type Sdio = crate :: Periph < sdio :: RegisterBlock , 0x4001_8000 > ; impl core :: fmt :: Debug for Sdio { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Sdio") . finish () } }
#[doc = "Secure digital input/output interface"] pub mod sdio {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { power : Power , clkcr : Clkcr , arg : Arg , cmd : Cmd , respcmd : Respcmd , respi1 : Respi1 , resp2 : Resp2 , resp3 : Resp3 , resp4 : Resp4 , dtimer : Dtimer , dlen : Dlen , dctrl : Dctrl , dcount : Dcount , sta : Sta , icr : Icr , mask : Mask , _reserved16 : [u8 ; 0x08] , fifocnt : Fifocnt , _reserved17 : [u8 ; 0x34] , fifo : Fifo , } impl RegisterBlock {
#[doc = "0x00 - Bits 1:0 = PWRCTRL: Power supply control bits"]
#[inline (always)] pub const fn power (& self) -> & Power { & self . power }
#[doc = "0x04 - SDI clock control register (SDIO_CLKCR)"]
#[inline (always)] pub const fn clkcr (& self) -> & Clkcr { & self . clkcr }
#[doc = "0x08 - Bits 31:0 = : Command argument"]
#[inline (always)] pub const fn arg (& self) -> & Arg { & self . arg }
#[doc = "0x0c - SDIO command register (SDIO_CMD)"]
#[inline (always)] pub const fn cmd (& self) -> & Cmd { & self . cmd }
#[doc = "0x10 - SDIO command register"]
#[inline (always)] pub const fn respcmd (& self) -> & Respcmd { & self . respcmd }
#[doc = "0x14 - Bits 31:0 = CARDSTATUS1"]
#[inline (always)] pub const fn respi1 (& self) -> & Respi1 { & self . respi1 }
#[doc = "0x18 - Bits 31:0 = CARDSTATUS2"]
#[inline (always)] pub const fn resp2 (& self) -> & Resp2 { & self . resp2 }
#[doc = "0x1c - Bits 31:0 = CARDSTATUS3"]
#[inline (always)] pub const fn resp3 (& self) -> & Resp3 { & self . resp3 }
#[doc = "0x20 - Bits 31:0 = CARDSTATUS4"]
#[inline (always)] pub const fn resp4 (& self) -> & Resp4 { & self . resp4 }
#[doc = "0x24 - Bits 31:0 = DATATIME: Data timeout period"]
#[inline (always)] pub const fn dtimer (& self) -> & Dtimer { & self . dtimer }
#[doc = "0x28 - Bits 24:0 = DATALENGTH: Data length value"]
#[inline (always)] pub const fn dlen (& self) -> & Dlen { & self . dlen }
#[doc = "0x2c - SDIO data control register (SDIO_DCTRL)"]
#[inline (always)] pub const fn dctrl (& self) -> & Dctrl { & self . dctrl }
#[doc = "0x30 - Bits 24:0 = DATACOUNT: Data count value"]
#[inline (always)] pub const fn dcount (& self) -> & Dcount { & self . dcount }
#[doc = "0x34 - SDIO status register (SDIO_STA)"]
#[inline (always)] pub const fn sta (& self) -> & Sta { & self . sta }
#[doc = "0x38 - SDIO interrupt clear register (SDIO_ICR)"]
#[inline (always)] pub const fn icr (& self) -> & Icr { & self . icr }
#[doc = "0x3c - SDIO mask register (SDIO_MASK)"]
#[inline (always)] pub const fn mask (& self) -> & Mask { & self . mask }
#[doc = "0x48 - Bits 23:0 = FIFOCOUNT: Remaining number of words to be written to or read from the FIFO"]
#[inline (always)] pub const fn fifocnt (& self) -> & Fifocnt { & self . fifocnt }
#[doc = "0x80 - bits 31:0 = FIFOData: Receive and transmit FIFO data"]
#[inline (always)] pub const fn fifo (& self) -> & Fifo { & self . fifo } }
#[doc = "POWER (rw) register accessor: Bits 1:0 = PWRCTRL: Power supply control bits\n\nYou can [`read`](crate::Reg::read) this register and get [`power::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`power::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@power`] module"]
#[doc (alias = "POWER")] pub type Power = crate :: Reg < power :: PowerSpec > ;
#[doc = "Bits 1:0 = PWRCTRL: Power supply control bits"] pub mod power {
#[doc = "Register `POWER` reader"] pub type R = crate :: R < PowerSpec > ;
#[doc = "Register `POWER` writer"] pub type W = crate :: W < PowerSpec > ;
#[doc = "Field `PWRCTRL` reader - PWRCTRL"] pub type PwrctrlR = crate :: FieldReader ;
#[doc = "Field `PWRCTRL` writer - PWRCTRL"] pub type PwrctrlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:1 - PWRCTRL"]
#[inline (always)] pub fn pwrctrl (& self) -> PwrctrlR { PwrctrlR :: new ((self . bits & 3) as u8) } } impl W {
#[doc = "Bits 0:1 - PWRCTRL"]
#[inline (always)] pub fn pwrctrl (& mut self) -> PwrctrlW < '_ , PowerSpec > { PwrctrlW :: new (self , 0) } }
#[doc = "Bits 1:0 = PWRCTRL: Power supply control bits\n\nYou can [`read`](crate::Reg::read) this register and get [`power::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`power::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PowerSpec ; impl crate :: RegisterSpec for PowerSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`power::R`](R) reader structure"] impl crate :: Readable for PowerSpec { }
#[doc = "`write(|w| ..)` method takes [`power::W`](W) writer structure"] impl crate :: Writable for PowerSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets POWER to value 0"] impl crate :: Resettable for PowerSpec { } }
#[doc = "CLKCR (rw) register accessor: SDI clock control register (SDIO_CLKCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`clkcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`clkcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clkcr`] module"]
#[doc (alias = "CLKCR")] pub type Clkcr = crate :: Reg < clkcr :: ClkcrSpec > ;
#[doc = "SDI clock control register (SDIO_CLKCR)"] pub mod clkcr {
#[doc = "Register `CLKCR` reader"] pub type R = crate :: R < ClkcrSpec > ;
#[doc = "Register `CLKCR` writer"] pub type W = crate :: W < ClkcrSpec > ;
#[doc = "Field `CLKDIV` reader - Clock divide factor"] pub type ClkdivR = crate :: FieldReader ;
#[doc = "Field `CLKDIV` writer - Clock divide factor"] pub type ClkdivW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `CLKEN` reader - Clock enable bit"] pub type ClkenR = crate :: BitReader ;
#[doc = "Field `CLKEN` writer - Clock enable bit"] pub type ClkenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PWRSAV` reader - Power saving configuration bit"] pub type PwrsavR = crate :: BitReader ;
#[doc = "Field `PWRSAV` writer - Power saving configuration bit"] pub type PwrsavW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BYPASS` reader - Clock divider bypass enable bit"] pub type BypassR = crate :: BitReader ;
#[doc = "Field `BYPASS` writer - Clock divider bypass enable bit"] pub type BypassW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WIDBUS` reader - Wide bus mode enable bit"] pub type WidbusR = crate :: FieldReader ;
#[doc = "Field `WIDBUS` writer - Wide bus mode enable bit"] pub type WidbusW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `NEGEDGE` reader - SDIO_CK dephasing selection bit"] pub type NegedgeR = crate :: BitReader ;
#[doc = "Field `NEGEDGE` writer - SDIO_CK dephasing selection bit"] pub type NegedgeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HWFC_EN` reader - HW Flow Control enable"] pub type HwfcEnR = crate :: BitReader ;
#[doc = "Field `HWFC_EN` writer - HW Flow Control enable"] pub type HwfcEnW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:7 - Clock divide factor"]
#[inline (always)] pub fn clkdiv (& self) -> ClkdivR { ClkdivR :: new ((self . bits & 0xff) as u8) }
#[doc = "Bit 8 - Clock enable bit"]
#[inline (always)] pub fn clken (& self) -> ClkenR { ClkenR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Power saving configuration bit"]
#[inline (always)] pub fn pwrsav (& self) -> PwrsavR { PwrsavR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Clock divider bypass enable bit"]
#[inline (always)] pub fn bypass (& self) -> BypassR { BypassR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bits 11:12 - Wide bus mode enable bit"]
#[inline (always)] pub fn widbus (& self) -> WidbusR { WidbusR :: new (((self . bits >> 11) & 3) as u8) }
#[doc = "Bit 13 - SDIO_CK dephasing selection bit"]
#[inline (always)] pub fn negedge (& self) -> NegedgeR { NegedgeR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - HW Flow Control enable"]
#[inline (always)] pub fn hwfc_en (& self) -> HwfcEnR { HwfcEnR :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bits 0:7 - Clock divide factor"]
#[inline (always)] pub fn clkdiv (& mut self) -> ClkdivW < '_ , ClkcrSpec > { ClkdivW :: new (self , 0) }
#[doc = "Bit 8 - Clock enable bit"]
#[inline (always)] pub fn clken (& mut self) -> ClkenW < '_ , ClkcrSpec > { ClkenW :: new (self , 8) }
#[doc = "Bit 9 - Power saving configuration bit"]
#[inline (always)] pub fn pwrsav (& mut self) -> PwrsavW < '_ , ClkcrSpec > { PwrsavW :: new (self , 9) }
#[doc = "Bit 10 - Clock divider bypass enable bit"]
#[inline (always)] pub fn bypass (& mut self) -> BypassW < '_ , ClkcrSpec > { BypassW :: new (self , 10) }
#[doc = "Bits 11:12 - Wide bus mode enable bit"]
#[inline (always)] pub fn widbus (& mut self) -> WidbusW < '_ , ClkcrSpec > { WidbusW :: new (self , 11) }
#[doc = "Bit 13 - SDIO_CK dephasing selection bit"]
#[inline (always)] pub fn negedge (& mut self) -> NegedgeW < '_ , ClkcrSpec > { NegedgeW :: new (self , 13) }
#[doc = "Bit 14 - HW Flow Control enable"]
#[inline (always)] pub fn hwfc_en (& mut self) -> HwfcEnW < '_ , ClkcrSpec > { HwfcEnW :: new (self , 14) } }
#[doc = "SDI clock control register (SDIO_CLKCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`clkcr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`clkcr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct ClkcrSpec ; impl crate :: RegisterSpec for ClkcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`clkcr::R`](R) reader structure"] impl crate :: Readable for ClkcrSpec { }
#[doc = "`write(|w| ..)` method takes [`clkcr::W`](W) writer structure"] impl crate :: Writable for ClkcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CLKCR to value 0"] impl crate :: Resettable for ClkcrSpec { } }
#[doc = "ARG (rw) register accessor: Bits 31:0 = : Command argument\n\nYou can [`read`](crate::Reg::read) this register and get [`arg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arg::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@arg`] module"]
#[doc (alias = "ARG")] pub type Arg = crate :: Reg < arg :: ArgSpec > ;
#[doc = "Bits 31:0 = : Command argument"] pub mod arg {
#[doc = "Register `ARG` reader"] pub type R = crate :: R < ArgSpec > ;
#[doc = "Register `ARG` writer"] pub type W = crate :: W < ArgSpec > ;
#[doc = "Field `CMDARG` reader - Command argument"] pub type CmdargR = crate :: FieldReader < u32 > ;
#[doc = "Field `CMDARG` writer - Command argument"] pub type CmdargW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Command argument"]
#[inline (always)] pub fn cmdarg (& self) -> CmdargR { CmdargR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Command argument"]
#[inline (always)] pub fn cmdarg (& mut self) -> CmdargW < '_ , ArgSpec > { CmdargW :: new (self , 0) } }
#[doc = "Bits 31:0 = : Command argument\n\nYou can [`read`](crate::Reg::read) this register and get [`arg::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arg::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct ArgSpec ; impl crate :: RegisterSpec for ArgSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`arg::R`](R) reader structure"] impl crate :: Readable for ArgSpec { }
#[doc = "`write(|w| ..)` method takes [`arg::W`](W) writer structure"] impl crate :: Writable for ArgSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets ARG to value 0"] impl crate :: Resettable for ArgSpec { } }
#[doc = "CMD (rw) register accessor: SDIO command register (SDIO_CMD)\n\nYou can [`read`](crate::Reg::read) this register and get [`cmd::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmd::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cmd`] module"]
#[doc (alias = "CMD")] pub type Cmd = crate :: Reg < cmd :: CmdSpec > ;
#[doc = "SDIO command register (SDIO_CMD)"] pub mod cmd {
#[doc = "Register `CMD` reader"] pub type R = crate :: R < CmdSpec > ;
#[doc = "Register `CMD` writer"] pub type W = crate :: W < CmdSpec > ;
#[doc = "Field `CMDINDEX` reader - CMDINDEX"] pub type CmdindexR = crate :: FieldReader ;
#[doc = "Field `CMDINDEX` writer - CMDINDEX"] pub type CmdindexW < 'a , REG > = crate :: FieldWriter < 'a , REG , 6 > ;
#[doc = "Field `WAITRESP` reader - WAITRESP"] pub type WaitrespR = crate :: FieldReader ;
#[doc = "Field `WAITRESP` writer - WAITRESP"] pub type WaitrespW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `WAITINT` reader - WAITINT"] pub type WaitintR = crate :: BitReader ;
#[doc = "Field `WAITINT` writer - WAITINT"] pub type WaitintW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAITPEND` reader - WAITPEND"] pub type WaitpendR = crate :: BitReader ;
#[doc = "Field `WAITPEND` writer - WAITPEND"] pub type WaitpendW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CPSMEN` reader - CPSMEN"] pub type CpsmenR = crate :: BitReader ;
#[doc = "Field `CPSMEN` writer - CPSMEN"] pub type CpsmenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SDIOSuspend` reader - SDIOSuspend"] pub type SdiosuspendR = crate :: BitReader ;
#[doc = "Field `SDIOSuspend` writer - SDIOSuspend"] pub type SdiosuspendW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ENCMDcompl` reader - ENCMDcompl"] pub type EncmdcomplR = crate :: BitReader ;
#[doc = "Field `ENCMDcompl` writer - ENCMDcompl"] pub type EncmdcomplW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `nIEN` reader - nIEN"] pub type NIenR = crate :: BitReader ;
#[doc = "Field `nIEN` writer - nIEN"] pub type NIenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CE_ATACMD` reader - CE_ATACMD"] pub type CeAtacmdR = crate :: BitReader ;
#[doc = "Field `CE_ATACMD` writer - CE_ATACMD"] pub type CeAtacmdW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:5 - CMDINDEX"]
#[inline (always)] pub fn cmdindex (& self) -> CmdindexR { CmdindexR :: new ((self . bits & 0x3f) as u8) }
#[doc = "Bits 6:7 - WAITRESP"]
#[inline (always)] pub fn waitresp (& self) -> WaitrespR { WaitrespR :: new (((self . bits >> 6) & 3) as u8) }
#[doc = "Bit 8 - WAITINT"]
#[inline (always)] pub fn waitint (& self) -> WaitintR { WaitintR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - WAITPEND"]
#[inline (always)] pub fn waitpend (& self) -> WaitpendR { WaitpendR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - CPSMEN"]
#[inline (always)] pub fn cpsmen (& self) -> CpsmenR { CpsmenR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - SDIOSuspend"]
#[inline (always)] pub fn sdiosuspend (& self) -> SdiosuspendR { SdiosuspendR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - ENCMDcompl"]
#[inline (always)] pub fn encmdcompl (& self) -> EncmdcomplR { EncmdcomplR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - nIEN"]
#[inline (always)] pub fn n_ien (& self) -> NIenR { NIenR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - CE_ATACMD"]
#[inline (always)] pub fn ce_atacmd (& self) -> CeAtacmdR { CeAtacmdR :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bits 0:5 - CMDINDEX"]
#[inline (always)] pub fn cmdindex (& mut self) -> CmdindexW < '_ , CmdSpec > { CmdindexW :: new (self , 0) }
#[doc = "Bits 6:7 - WAITRESP"]
#[inline (always)] pub fn waitresp (& mut self) -> WaitrespW < '_ , CmdSpec > { WaitrespW :: new (self , 6) }
#[doc = "Bit 8 - WAITINT"]
#[inline (always)] pub fn waitint (& mut self) -> WaitintW < '_ , CmdSpec > { WaitintW :: new (self , 8) }
#[doc = "Bit 9 - WAITPEND"]
#[inline (always)] pub fn waitpend (& mut self) -> WaitpendW < '_ , CmdSpec > { WaitpendW :: new (self , 9) }
#[doc = "Bit 10 - CPSMEN"]
#[inline (always)] pub fn cpsmen (& mut self) -> CpsmenW < '_ , CmdSpec > { CpsmenW :: new (self , 10) }
#[doc = "Bit 11 - SDIOSuspend"]
#[inline (always)] pub fn sdiosuspend (& mut self) -> SdiosuspendW < '_ , CmdSpec > { SdiosuspendW :: new (self , 11) }
#[doc = "Bit 12 - ENCMDcompl"]
#[inline (always)] pub fn encmdcompl (& mut self) -> EncmdcomplW < '_ , CmdSpec > { EncmdcomplW :: new (self , 12) }
#[doc = "Bit 13 - nIEN"]
#[inline (always)] pub fn n_ien (& mut self) -> NIenW < '_ , CmdSpec > { NIenW :: new (self , 13) }
#[doc = "Bit 14 - CE_ATACMD"]
#[inline (always)] pub fn ce_atacmd (& mut self) -> CeAtacmdW < '_ , CmdSpec > { CeAtacmdW :: new (self , 14) } }
#[doc = "SDIO command register (SDIO_CMD)\n\nYou can [`read`](crate::Reg::read) this register and get [`cmd::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmd::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CmdSpec ; impl crate :: RegisterSpec for CmdSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cmd::R`](R) reader structure"] impl crate :: Readable for CmdSpec { }
#[doc = "`write(|w| ..)` method takes [`cmd::W`](W) writer structure"] impl crate :: Writable for CmdSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CMD to value 0"] impl crate :: Resettable for CmdSpec { } }
#[doc = "RESPCMD (r) register accessor: SDIO command register\n\nYou can [`read`](crate::Reg::read) this register and get [`respcmd::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@respcmd`] module"]
#[doc (alias = "RESPCMD")] pub type Respcmd = crate :: Reg < respcmd :: RespcmdSpec > ;
#[doc = "SDIO command register"] pub mod respcmd {
#[doc = "Register `RESPCMD` reader"] pub type R = crate :: R < RespcmdSpec > ;
#[doc = "Field `RESPCMD` reader - RESPCMD"] pub type RespcmdR = crate :: FieldReader ; impl R {
#[doc = "Bits 0:5 - RESPCMD"]
#[inline (always)] pub fn respcmd (& self) -> RespcmdR { RespcmdR :: new ((self . bits & 0x3f) as u8) } }
#[doc = "SDIO command register\n\nYou can [`read`](crate::Reg::read) this register and get [`respcmd::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct RespcmdSpec ; impl crate :: RegisterSpec for RespcmdSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`respcmd::R`](R) reader structure"] impl crate :: Readable for RespcmdSpec { }
#[doc = "`reset()` method sets RESPCMD to value 0"] impl crate :: Resettable for RespcmdSpec { } }
#[doc = "RESPI1 (r) register accessor: Bits 31:0 = CARDSTATUS1\n\nYou can [`read`](crate::Reg::read) this register and get [`respi1::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@respi1`] module"]
#[doc (alias = "RESPI1")] pub type Respi1 = crate :: Reg < respi1 :: Respi1Spec > ;
#[doc = "Bits 31:0 = CARDSTATUS1"] pub mod respi1 {
#[doc = "Register `RESPI1` reader"] pub type R = crate :: R < Respi1Spec > ;
#[doc = "Field `CARDSTATUS1` reader - CARDSTATUS1"] pub type Cardstatus1R = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - CARDSTATUS1"]
#[inline (always)] pub fn cardstatus1 (& self) -> Cardstatus1R { Cardstatus1R :: new (self . bits) } }
#[doc = "Bits 31:0 = CARDSTATUS1\n\nYou can [`read`](crate::Reg::read) this register and get [`respi1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Respi1Spec ; impl crate :: RegisterSpec for Respi1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`respi1::R`](R) reader structure"] impl crate :: Readable for Respi1Spec { }
#[doc = "`reset()` method sets RESPI1 to value 0"] impl crate :: Resettable for Respi1Spec { } }
#[doc = "RESP2 (r) register accessor: Bits 31:0 = CARDSTATUS2\n\nYou can [`read`](crate::Reg::read) this register and get [`resp2::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@resp2`] module"]
#[doc (alias = "RESP2")] pub type Resp2 = crate :: Reg < resp2 :: Resp2Spec > ;
#[doc = "Bits 31:0 = CARDSTATUS2"] pub mod resp2 {
#[doc = "Register `RESP2` reader"] pub type R = crate :: R < Resp2Spec > ;
#[doc = "Field `CARDSTATUS2` reader - CARDSTATUS2"] pub type Cardstatus2R = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - CARDSTATUS2"]
#[inline (always)] pub fn cardstatus2 (& self) -> Cardstatus2R { Cardstatus2R :: new (self . bits) } }
#[doc = "Bits 31:0 = CARDSTATUS2\n\nYou can [`read`](crate::Reg::read) this register and get [`resp2::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Resp2Spec ; impl crate :: RegisterSpec for Resp2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`resp2::R`](R) reader structure"] impl crate :: Readable for Resp2Spec { }
#[doc = "`reset()` method sets RESP2 to value 0"] impl crate :: Resettable for Resp2Spec { } }
#[doc = "RESP3 (r) register accessor: Bits 31:0 = CARDSTATUS3\n\nYou can [`read`](crate::Reg::read) this register and get [`resp3::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@resp3`] module"]
#[doc (alias = "RESP3")] pub type Resp3 = crate :: Reg < resp3 :: Resp3Spec > ;
#[doc = "Bits 31:0 = CARDSTATUS3"] pub mod resp3 {
#[doc = "Register `RESP3` reader"] pub type R = crate :: R < Resp3Spec > ;
#[doc = "Field `CARDSTATUS3` reader - CARDSTATUS3"] pub type Cardstatus3R = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - CARDSTATUS3"]
#[inline (always)] pub fn cardstatus3 (& self) -> Cardstatus3R { Cardstatus3R :: new (self . bits) } }
#[doc = "Bits 31:0 = CARDSTATUS3\n\nYou can [`read`](crate::Reg::read) this register and get [`resp3::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Resp3Spec ; impl crate :: RegisterSpec for Resp3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`resp3::R`](R) reader structure"] impl crate :: Readable for Resp3Spec { }
#[doc = "`reset()` method sets RESP3 to value 0"] impl crate :: Resettable for Resp3Spec { } }
#[doc = "RESP4 (r) register accessor: Bits 31:0 = CARDSTATUS4\n\nYou can [`read`](crate::Reg::read) this register and get [`resp4::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@resp4`] module"]
#[doc (alias = "RESP4")] pub type Resp4 = crate :: Reg < resp4 :: Resp4Spec > ;
#[doc = "Bits 31:0 = CARDSTATUS4"] pub mod resp4 {
#[doc = "Register `RESP4` reader"] pub type R = crate :: R < Resp4Spec > ;
#[doc = "Field `CARDSTATUS4` reader - CARDSTATUS4"] pub type Cardstatus4R = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - CARDSTATUS4"]
#[inline (always)] pub fn cardstatus4 (& self) -> Cardstatus4R { Cardstatus4R :: new (self . bits) } }
#[doc = "Bits 31:0 = CARDSTATUS4\n\nYou can [`read`](crate::Reg::read) this register and get [`resp4::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Resp4Spec ; impl crate :: RegisterSpec for Resp4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`resp4::R`](R) reader structure"] impl crate :: Readable for Resp4Spec { }
#[doc = "`reset()` method sets RESP4 to value 0"] impl crate :: Resettable for Resp4Spec { } }
#[doc = "DTIMER (rw) register accessor: Bits 31:0 = DATATIME: Data timeout period\n\nYou can [`read`](crate::Reg::read) this register and get [`dtimer::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dtimer::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dtimer`] module"]
#[doc (alias = "DTIMER")] pub type Dtimer = crate :: Reg < dtimer :: DtimerSpec > ;
#[doc = "Bits 31:0 = DATATIME: Data timeout period"] pub mod dtimer {
#[doc = "Register `DTIMER` reader"] pub type R = crate :: R < DtimerSpec > ;
#[doc = "Register `DTIMER` writer"] pub type W = crate :: W < DtimerSpec > ;
#[doc = "Field `DATATIME` reader - Data timeout period"] pub type DatatimeR = crate :: FieldReader < u32 > ;
#[doc = "Field `DATATIME` writer - Data timeout period"] pub type DatatimeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Data timeout period"]
#[inline (always)] pub fn datatime (& self) -> DatatimeR { DatatimeR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Data timeout period"]
#[inline (always)] pub fn datatime (& mut self) -> DatatimeW < '_ , DtimerSpec > { DatatimeW :: new (self , 0) } }
#[doc = "Bits 31:0 = DATATIME: Data timeout period\n\nYou can [`read`](crate::Reg::read) this register and get [`dtimer::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dtimer::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DtimerSpec ; impl crate :: RegisterSpec for DtimerSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dtimer::R`](R) reader structure"] impl crate :: Readable for DtimerSpec { }
#[doc = "`write(|w| ..)` method takes [`dtimer::W`](W) writer structure"] impl crate :: Writable for DtimerSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DTIMER to value 0"] impl crate :: Resettable for DtimerSpec { } }
#[doc = "DLEN (rw) register accessor: Bits 24:0 = DATALENGTH: Data length value\n\nYou can [`read`](crate::Reg::read) this register and get [`dlen::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dlen::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dlen`] module"]
#[doc (alias = "DLEN")] pub type Dlen = crate :: Reg < dlen :: DlenSpec > ;
#[doc = "Bits 24:0 = DATALENGTH: Data length value"] pub mod dlen {
#[doc = "Register `DLEN` reader"] pub type R = crate :: R < DlenSpec > ;
#[doc = "Register `DLEN` writer"] pub type W = crate :: W < DlenSpec > ;
#[doc = "Field `DATALENGTH` reader - Data length value"] pub type DatalengthR = crate :: FieldReader < u32 > ;
#[doc = "Field `DATALENGTH` writer - Data length value"] pub type DatalengthW < 'a , REG > = crate :: FieldWriter < 'a , REG , 25 , u32 > ; impl R {
#[doc = "Bits 0:24 - Data length value"]
#[inline (always)] pub fn datalength (& self) -> DatalengthR { DatalengthR :: new (self . bits & 0x01ff_ffff) } } impl W {
#[doc = "Bits 0:24 - Data length value"]
#[inline (always)] pub fn datalength (& mut self) -> DatalengthW < '_ , DlenSpec > { DatalengthW :: new (self , 0) } }
#[doc = "Bits 24:0 = DATALENGTH: Data length value\n\nYou can [`read`](crate::Reg::read) this register and get [`dlen::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dlen::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DlenSpec ; impl crate :: RegisterSpec for DlenSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dlen::R`](R) reader structure"] impl crate :: Readable for DlenSpec { }
#[doc = "`write(|w| ..)` method takes [`dlen::W`](W) writer structure"] impl crate :: Writable for DlenSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DLEN to value 0"] impl crate :: Resettable for DlenSpec { } }
#[doc = "DCTRL (rw) register accessor: SDIO data control register (SDIO_DCTRL)\n\nYou can [`read`](crate::Reg::read) this register and get [`dctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dctrl`] module"]
#[doc (alias = "DCTRL")] pub type Dctrl = crate :: Reg < dctrl :: DctrlSpec > ;
#[doc = "SDIO data control register (SDIO_DCTRL)"] pub mod dctrl {
#[doc = "Register `DCTRL` reader"] pub type R = crate :: R < DctrlSpec > ;
#[doc = "Register `DCTRL` writer"] pub type W = crate :: W < DctrlSpec > ;
#[doc = "Field `DTEN` reader - DTEN"] pub type DtenR = crate :: BitReader ;
#[doc = "Field `DTEN` writer - DTEN"] pub type DtenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTDIR` reader - DTDIR"] pub type DtdirR = crate :: BitReader ;
#[doc = "Field `DTDIR` writer - DTDIR"] pub type DtdirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTMODE` reader - DTMODE"] pub type DtmodeR = crate :: BitReader ;
#[doc = "Field `DTMODE` writer - DTMODE"] pub type DtmodeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DMAEN` reader - DMAEN"] pub type DmaenR = crate :: BitReader ;
#[doc = "Field `DMAEN` writer - DMAEN"] pub type DmaenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBLOCKSIZE` reader - DBLOCKSIZE"] pub type DblocksizeR = crate :: FieldReader ;
#[doc = "Field `DBLOCKSIZE` writer - DBLOCKSIZE"] pub type DblocksizeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `PWSTART` reader - PWSTART"] pub type PwstartR = crate :: BitReader ;
#[doc = "Field `PWSTART` writer - PWSTART"] pub type PwstartW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PWSTOP` reader - PWSTOP"] pub type PwstopR = crate :: BitReader ;
#[doc = "Field `PWSTOP` writer - PWSTOP"] pub type PwstopW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RWMOD` reader - RWMOD"] pub type RwmodR = crate :: BitReader ;
#[doc = "Field `RWMOD` writer - RWMOD"] pub type RwmodW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SDIOEN` reader - SDIOEN"] pub type SdioenR = crate :: BitReader ;
#[doc = "Field `SDIOEN` writer - SDIOEN"] pub type SdioenW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - DTEN"]
#[inline (always)] pub fn dten (& self) -> DtenR { DtenR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - DTDIR"]
#[inline (always)] pub fn dtdir (& self) -> DtdirR { DtdirR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - DTMODE"]
#[inline (always)] pub fn dtmode (& self) -> DtmodeR { DtmodeR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - DMAEN"]
#[inline (always)] pub fn dmaen (& self) -> DmaenR { DmaenR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:7 - DBLOCKSIZE"]
#[inline (always)] pub fn dblocksize (& self) -> DblocksizeR { DblocksizeR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bit 8 - PWSTART"]
#[inline (always)] pub fn pwstart (& self) -> PwstartR { PwstartR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - PWSTOP"]
#[inline (always)] pub fn pwstop (& self) -> PwstopR { PwstopR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - RWMOD"]
#[inline (always)] pub fn rwmod (& self) -> RwmodR { RwmodR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - SDIOEN"]
#[inline (always)] pub fn sdioen (& self) -> SdioenR { SdioenR :: new (((self . bits >> 11) & 1) != 0) } } impl W {
#[doc = "Bit 0 - DTEN"]
#[inline (always)] pub fn dten (& mut self) -> DtenW < '_ , DctrlSpec > { DtenW :: new (self , 0) }
#[doc = "Bit 1 - DTDIR"]
#[inline (always)] pub fn dtdir (& mut self) -> DtdirW < '_ , DctrlSpec > { DtdirW :: new (self , 1) }
#[doc = "Bit 2 - DTMODE"]
#[inline (always)] pub fn dtmode (& mut self) -> DtmodeW < '_ , DctrlSpec > { DtmodeW :: new (self , 2) }
#[doc = "Bit 3 - DMAEN"]
#[inline (always)] pub fn dmaen (& mut self) -> DmaenW < '_ , DctrlSpec > { DmaenW :: new (self , 3) }
#[doc = "Bits 4:7 - DBLOCKSIZE"]
#[inline (always)] pub fn dblocksize (& mut self) -> DblocksizeW < '_ , DctrlSpec > { DblocksizeW :: new (self , 4) }
#[doc = "Bit 8 - PWSTART"]
#[inline (always)] pub fn pwstart (& mut self) -> PwstartW < '_ , DctrlSpec > { PwstartW :: new (self , 8) }
#[doc = "Bit 9 - PWSTOP"]
#[inline (always)] pub fn pwstop (& mut self) -> PwstopW < '_ , DctrlSpec > { PwstopW :: new (self , 9) }
#[doc = "Bit 10 - RWMOD"]
#[inline (always)] pub fn rwmod (& mut self) -> RwmodW < '_ , DctrlSpec > { RwmodW :: new (self , 10) }
#[doc = "Bit 11 - SDIOEN"]
#[inline (always)] pub fn sdioen (& mut self) -> SdioenW < '_ , DctrlSpec > { SdioenW :: new (self , 11) } }
#[doc = "SDIO data control register (SDIO_DCTRL)\n\nYou can [`read`](crate::Reg::read) this register and get [`dctrl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dctrl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DctrlSpec ; impl crate :: RegisterSpec for DctrlSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dctrl::R`](R) reader structure"] impl crate :: Readable for DctrlSpec { }
#[doc = "`write(|w| ..)` method takes [`dctrl::W`](W) writer structure"] impl crate :: Writable for DctrlSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DCTRL to value 0"] impl crate :: Resettable for DctrlSpec { } }
#[doc = "DCOUNT (r) register accessor: Bits 24:0 = DATACOUNT: Data count value\n\nYou can [`read`](crate::Reg::read) this register and get [`dcount::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dcount`] module"]
#[doc (alias = "DCOUNT")] pub type Dcount = crate :: Reg < dcount :: DcountSpec > ;
#[doc = "Bits 24:0 = DATACOUNT: Data count value"] pub mod dcount {
#[doc = "Register `DCOUNT` reader"] pub type R = crate :: R < DcountSpec > ;
#[doc = "Field `DATACOUNT` reader - Data count value"] pub type DatacountR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:24 - Data count value"]
#[inline (always)] pub fn datacount (& self) -> DatacountR { DatacountR :: new (self . bits & 0x01ff_ffff) } }
#[doc = "Bits 24:0 = DATACOUNT: Data count value\n\nYou can [`read`](crate::Reg::read) this register and get [`dcount::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DcountSpec ; impl crate :: RegisterSpec for DcountSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dcount::R`](R) reader structure"] impl crate :: Readable for DcountSpec { }
#[doc = "`reset()` method sets DCOUNT to value 0"] impl crate :: Resettable for DcountSpec { } }
#[doc = "STA (r) register accessor: SDIO status register (SDIO_STA)\n\nYou can [`read`](crate::Reg::read) this register and get [`sta::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sta`] module"]
#[doc (alias = "STA")] pub type Sta = crate :: Reg < sta :: StaSpec > ;
#[doc = "SDIO status register (SDIO_STA)"] pub mod sta {
#[doc = "Register `STA` reader"] pub type R = crate :: R < StaSpec > ;
#[doc = "Field `CCRCFAIL` reader - CCRCFAIL"] pub type CcrcfailR = crate :: BitReader ;
#[doc = "Field `DCRCFAIL` reader - DCRCFAIL"] pub type DcrcfailR = crate :: BitReader ;
#[doc = "Field `CTIMEOUT` reader - CTIMEOUT"] pub type CtimeoutR = crate :: BitReader ;
#[doc = "Field `DTIMEOUT` reader - DTIMEOUT"] pub type DtimeoutR = crate :: BitReader ;
#[doc = "Field `TXUNDERR` reader - TXUNDERR"] pub type TxunderrR = crate :: BitReader ;
#[doc = "Field `RXOVERR` reader - RXOVERR"] pub type RxoverrR = crate :: BitReader ;
#[doc = "Field `CMDREND` reader - CMDREND"] pub type CmdrendR = crate :: BitReader ;
#[doc = "Field `CMDSENT` reader - CMDSENT"] pub type CmdsentR = crate :: BitReader ;
#[doc = "Field `DATAEND` reader - DATAEND"] pub type DataendR = crate :: BitReader ;
#[doc = "Field `STBITERR` reader - STBITERR"] pub type StbiterrR = crate :: BitReader ;
#[doc = "Field `DBCKEND` reader - DBCKEND"] pub type DbckendR = crate :: BitReader ;
#[doc = "Field `CMDACT` reader - CMDACT"] pub type CmdactR = crate :: BitReader ;
#[doc = "Field `TXACT` reader - TXACT"] pub type TxactR = crate :: BitReader ;
#[doc = "Field `RXACT` reader - RXACT"] pub type RxactR = crate :: BitReader ;
#[doc = "Field `TXFIFOHE` reader - TXFIFOHE"] pub type TxfifoheR = crate :: BitReader ;
#[doc = "Field `RXFIFOHF` reader - RXFIFOHF"] pub type RxfifohfR = crate :: BitReader ;
#[doc = "Field `TXFIFOF` reader - TXFIFOF"] pub type TxfifofR = crate :: BitReader ;
#[doc = "Field `RXFIFOF` reader - RXFIFOF"] pub type RxfifofR = crate :: BitReader ;
#[doc = "Field `TXFIFOE` reader - TXFIFOE"] pub type TxfifoeR = crate :: BitReader ;
#[doc = "Field `RXFIFOE` reader - RXFIFOE"] pub type RxfifoeR = crate :: BitReader ;
#[doc = "Field `TXDAVL` reader - TXDAVL"] pub type TxdavlR = crate :: BitReader ;
#[doc = "Field `RXDAVL` reader - RXDAVL"] pub type RxdavlR = crate :: BitReader ;
#[doc = "Field `SDIOIT` reader - SDIOIT"] pub type SdioitR = crate :: BitReader ;
#[doc = "Field `CEATAEND` reader - CEATAEND"] pub type CeataendR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - CCRCFAIL"]
#[inline (always)] pub fn ccrcfail (& self) -> CcrcfailR { CcrcfailR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - DCRCFAIL"]
#[inline (always)] pub fn dcrcfail (& self) -> DcrcfailR { DcrcfailR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - CTIMEOUT"]
#[inline (always)] pub fn ctimeout (& self) -> CtimeoutR { CtimeoutR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - DTIMEOUT"]
#[inline (always)] pub fn dtimeout (& self) -> DtimeoutR { DtimeoutR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - TXUNDERR"]
#[inline (always)] pub fn txunderr (& self) -> TxunderrR { TxunderrR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - RXOVERR"]
#[inline (always)] pub fn rxoverr (& self) -> RxoverrR { RxoverrR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - CMDREND"]
#[inline (always)] pub fn cmdrend (& self) -> CmdrendR { CmdrendR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - CMDSENT"]
#[inline (always)] pub fn cmdsent (& self) -> CmdsentR { CmdsentR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - DATAEND"]
#[inline (always)] pub fn dataend (& self) -> DataendR { DataendR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - STBITERR"]
#[inline (always)] pub fn stbiterr (& self) -> StbiterrR { StbiterrR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - DBCKEND"]
#[inline (always)] pub fn dbckend (& self) -> DbckendR { DbckendR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - CMDACT"]
#[inline (always)] pub fn cmdact (& self) -> CmdactR { CmdactR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - TXACT"]
#[inline (always)] pub fn txact (& self) -> TxactR { TxactR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - RXACT"]
#[inline (always)] pub fn rxact (& self) -> RxactR { RxactR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - TXFIFOHE"]
#[inline (always)] pub fn txfifohe (& self) -> TxfifoheR { TxfifoheR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - RXFIFOHF"]
#[inline (always)] pub fn rxfifohf (& self) -> RxfifohfR { RxfifohfR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - TXFIFOF"]
#[inline (always)] pub fn txfifof (& self) -> TxfifofR { TxfifofR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - RXFIFOF"]
#[inline (always)] pub fn rxfifof (& self) -> RxfifofR { RxfifofR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - TXFIFOE"]
#[inline (always)] pub fn txfifoe (& self) -> TxfifoeR { TxfifoeR :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - RXFIFOE"]
#[inline (always)] pub fn rxfifoe (& self) -> RxfifoeR { RxfifoeR :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - TXDAVL"]
#[inline (always)] pub fn txdavl (& self) -> TxdavlR { TxdavlR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - RXDAVL"]
#[inline (always)] pub fn rxdavl (& self) -> RxdavlR { RxdavlR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - SDIOIT"]
#[inline (always)] pub fn sdioit (& self) -> SdioitR { SdioitR :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - CEATAEND"]
#[inline (always)] pub fn ceataend (& self) -> CeataendR { CeataendR :: new (((self . bits >> 23) & 1) != 0) } }
#[doc = "SDIO status register (SDIO_STA)\n\nYou can [`read`](crate::Reg::read) this register and get [`sta::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct StaSpec ; impl crate :: RegisterSpec for StaSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sta::R`](R) reader structure"] impl crate :: Readable for StaSpec { }
#[doc = "`reset()` method sets STA to value 0"] impl crate :: Resettable for StaSpec { } }
#[doc = "ICR (rw) register accessor: SDIO interrupt clear register (SDIO_ICR)\n\nYou can [`read`](crate::Reg::read) this register and get [`icr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`icr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@icr`] module"]
#[doc (alias = "ICR")] pub type Icr = crate :: Reg < icr :: IcrSpec > ;
#[doc = "SDIO interrupt clear register (SDIO_ICR)"] pub mod icr {
#[doc = "Register `ICR` reader"] pub type R = crate :: R < IcrSpec > ;
#[doc = "Register `ICR` writer"] pub type W = crate :: W < IcrSpec > ;
#[doc = "Field `CCRCFAILC` reader - CCRCFAILC"] pub type CcrcfailcR = crate :: BitReader ;
#[doc = "Field `CCRCFAILC` writer - CCRCFAILC"] pub type CcrcfailcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DCRCFAILC` reader - DCRCFAILC"] pub type DcrcfailcR = crate :: BitReader ;
#[doc = "Field `DCRCFAILC` writer - DCRCFAILC"] pub type DcrcfailcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTIMEOUTC` reader - CTIMEOUTC"] pub type CtimeoutcR = crate :: BitReader ;
#[doc = "Field `CTIMEOUTC` writer - CTIMEOUTC"] pub type CtimeoutcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTIMEOUTC` reader - DTIMEOUTC"] pub type DtimeoutcR = crate :: BitReader ;
#[doc = "Field `DTIMEOUTC` writer - DTIMEOUTC"] pub type DtimeoutcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXUNDERRC` reader - TXUNDERRC"] pub type TxunderrcR = crate :: BitReader ;
#[doc = "Field `TXUNDERRC` writer - TXUNDERRC"] pub type TxunderrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXOVERRC` reader - RXOVERRC"] pub type RxoverrcR = crate :: BitReader ;
#[doc = "Field `RXOVERRC` writer - RXOVERRC"] pub type RxoverrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CMDRENDC` reader - CMDRENDC"] pub type CmdrendcR = crate :: BitReader ;
#[doc = "Field `CMDRENDC` writer - CMDRENDC"] pub type CmdrendcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CMDSENTC` reader - CMDSENTC"] pub type CmdsentcR = crate :: BitReader ;
#[doc = "Field `CMDSENTC` writer - CMDSENTC"] pub type CmdsentcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DATAENDC` reader - DATAENDC"] pub type DataendcR = crate :: BitReader ;
#[doc = "Field `DATAENDC` writer - DATAENDC"] pub type DataendcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STBITERRC` reader - STBITERRC"] pub type StbiterrcR = crate :: BitReader ;
#[doc = "Field `STBITERRC` writer - STBITERRC"] pub type StbiterrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBCKENDC` reader - DBCKENDC"] pub type DbckendcR = crate :: BitReader ;
#[doc = "Field `DBCKENDC` writer - DBCKENDC"] pub type DbckendcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SDIOITC` reader - SDIOITC"] pub type SdioitcR = crate :: BitReader ;
#[doc = "Field `SDIOITC` writer - SDIOITC"] pub type SdioitcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CEATAENDC` reader - CEATAENDC"] pub type CeataendcR = crate :: BitReader ;
#[doc = "Field `CEATAENDC` writer - CEATAENDC"] pub type CeataendcW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - CCRCFAILC"]
#[inline (always)] pub fn ccrcfailc (& self) -> CcrcfailcR { CcrcfailcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - DCRCFAILC"]
#[inline (always)] pub fn dcrcfailc (& self) -> DcrcfailcR { DcrcfailcR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - CTIMEOUTC"]
#[inline (always)] pub fn ctimeoutc (& self) -> CtimeoutcR { CtimeoutcR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - DTIMEOUTC"]
#[inline (always)] pub fn dtimeoutc (& self) -> DtimeoutcR { DtimeoutcR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - TXUNDERRC"]
#[inline (always)] pub fn txunderrc (& self) -> TxunderrcR { TxunderrcR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - RXOVERRC"]
#[inline (always)] pub fn rxoverrc (& self) -> RxoverrcR { RxoverrcR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - CMDRENDC"]
#[inline (always)] pub fn cmdrendc (& self) -> CmdrendcR { CmdrendcR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - CMDSENTC"]
#[inline (always)] pub fn cmdsentc (& self) -> CmdsentcR { CmdsentcR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - DATAENDC"]
#[inline (always)] pub fn dataendc (& self) -> DataendcR { DataendcR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - STBITERRC"]
#[inline (always)] pub fn stbiterrc (& self) -> StbiterrcR { StbiterrcR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - DBCKENDC"]
#[inline (always)] pub fn dbckendc (& self) -> DbckendcR { DbckendcR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 22 - SDIOITC"]
#[inline (always)] pub fn sdioitc (& self) -> SdioitcR { SdioitcR :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - CEATAENDC"]
#[inline (always)] pub fn ceataendc (& self) -> CeataendcR { CeataendcR :: new (((self . bits >> 23) & 1) != 0) } } impl W {
#[doc = "Bit 0 - CCRCFAILC"]
#[inline (always)] pub fn ccrcfailc (& mut self) -> CcrcfailcW < '_ , IcrSpec > { CcrcfailcW :: new (self , 0) }
#[doc = "Bit 1 - DCRCFAILC"]
#[inline (always)] pub fn dcrcfailc (& mut self) -> DcrcfailcW < '_ , IcrSpec > { DcrcfailcW :: new (self , 1) }
#[doc = "Bit 2 - CTIMEOUTC"]
#[inline (always)] pub fn ctimeoutc (& mut self) -> CtimeoutcW < '_ , IcrSpec > { CtimeoutcW :: new (self , 2) }
#[doc = "Bit 3 - DTIMEOUTC"]
#[inline (always)] pub fn dtimeoutc (& mut self) -> DtimeoutcW < '_ , IcrSpec > { DtimeoutcW :: new (self , 3) }
#[doc = "Bit 4 - TXUNDERRC"]
#[inline (always)] pub fn txunderrc (& mut self) -> TxunderrcW < '_ , IcrSpec > { TxunderrcW :: new (self , 4) }
#[doc = "Bit 5 - RXOVERRC"]
#[inline (always)] pub fn rxoverrc (& mut self) -> RxoverrcW < '_ , IcrSpec > { RxoverrcW :: new (self , 5) }
#[doc = "Bit 6 - CMDRENDC"]
#[inline (always)] pub fn cmdrendc (& mut self) -> CmdrendcW < '_ , IcrSpec > { CmdrendcW :: new (self , 6) }
#[doc = "Bit 7 - CMDSENTC"]
#[inline (always)] pub fn cmdsentc (& mut self) -> CmdsentcW < '_ , IcrSpec > { CmdsentcW :: new (self , 7) }
#[doc = "Bit 8 - DATAENDC"]
#[inline (always)] pub fn dataendc (& mut self) -> DataendcW < '_ , IcrSpec > { DataendcW :: new (self , 8) }
#[doc = "Bit 9 - STBITERRC"]
#[inline (always)] pub fn stbiterrc (& mut self) -> StbiterrcW < '_ , IcrSpec > { StbiterrcW :: new (self , 9) }
#[doc = "Bit 10 - DBCKENDC"]
#[inline (always)] pub fn dbckendc (& mut self) -> DbckendcW < '_ , IcrSpec > { DbckendcW :: new (self , 10) }
#[doc = "Bit 22 - SDIOITC"]
#[inline (always)] pub fn sdioitc (& mut self) -> SdioitcW < '_ , IcrSpec > { SdioitcW :: new (self , 22) }
#[doc = "Bit 23 - CEATAENDC"]
#[inline (always)] pub fn ceataendc (& mut self) -> CeataendcW < '_ , IcrSpec > { CeataendcW :: new (self , 23) } }
#[doc = "SDIO interrupt clear register (SDIO_ICR)\n\nYou can [`read`](crate::Reg::read) this register and get [`icr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`icr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct IcrSpec ; impl crate :: RegisterSpec for IcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`icr::R`](R) reader structure"] impl crate :: Readable for IcrSpec { }
#[doc = "`write(|w| ..)` method takes [`icr::W`](W) writer structure"] impl crate :: Writable for IcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets ICR to value 0"] impl crate :: Resettable for IcrSpec { } }
#[doc = "MASK (rw) register accessor: SDIO mask register (SDIO_MASK)\n\nYou can [`read`](crate::Reg::read) this register and get [`mask::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mask::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mask`] module"]
#[doc (alias = "MASK")] pub type Mask = crate :: Reg < mask :: MaskSpec > ;
#[doc = "SDIO mask register (SDIO_MASK)"] pub mod mask {
#[doc = "Register `MASK` reader"] pub type R = crate :: R < MaskSpec > ;
#[doc = "Register `MASK` writer"] pub type W = crate :: W < MaskSpec > ;
#[doc = "Field `CCRCFAILIE` reader - CCRCFAILIE"] pub type CcrcfailieR = crate :: BitReader ;
#[doc = "Field `CCRCFAILIE` writer - CCRCFAILIE"] pub type CcrcfailieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DCRCFAILIE` reader - DCRCFAILIE"] pub type DcrcfailieR = crate :: BitReader ;
#[doc = "Field `DCRCFAILIE` writer - DCRCFAILIE"] pub type DcrcfailieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTIMEOUTIE` reader - CTIMEOUTIE"] pub type CtimeoutieR = crate :: BitReader ;
#[doc = "Field `CTIMEOUTIE` writer - CTIMEOUTIE"] pub type CtimeoutieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTIMEOUTIE` reader - DTIMEOUTIE"] pub type DtimeoutieR = crate :: BitReader ;
#[doc = "Field `DTIMEOUTIE` writer - DTIMEOUTIE"] pub type DtimeoutieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXUNDERRIE` reader - TXUNDERRIE"] pub type TxunderrieR = crate :: BitReader ;
#[doc = "Field `TXUNDERRIE` writer - TXUNDERRIE"] pub type TxunderrieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXOVERRIE` reader - RXOVERRIE"] pub type RxoverrieR = crate :: BitReader ;
#[doc = "Field `RXOVERRIE` writer - RXOVERRIE"] pub type RxoverrieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CMDRENDIE` reader - CMDRENDIE"] pub type CmdrendieR = crate :: BitReader ;
#[doc = "Field `CMDRENDIE` writer - CMDRENDIE"] pub type CmdrendieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CMDSENTIE` reader - CMDSENTIE"] pub type CmdsentieR = crate :: BitReader ;
#[doc = "Field `CMDSENTIE` writer - CMDSENTIE"] pub type CmdsentieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DATAENDIE` reader - DATAENDIE"] pub type DataendieR = crate :: BitReader ;
#[doc = "Field `DATAENDIE` writer - DATAENDIE"] pub type DataendieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STBITERRIE` reader - STBITERRIE"] pub type StbiterrieR = crate :: BitReader ;
#[doc = "Field `STBITERRIE` writer - STBITERRIE"] pub type StbiterrieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBACKENDIE` reader - DBACKENDIE"] pub type DbackendieR = crate :: BitReader ;
#[doc = "Field `DBACKENDIE` writer - DBACKENDIE"] pub type DbackendieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CMDACTIE` reader - CMDACTIE"] pub type CmdactieR = crate :: BitReader ;
#[doc = "Field `CMDACTIE` writer - CMDACTIE"] pub type CmdactieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXACTIE` reader - TXACTIE"] pub type TxactieR = crate :: BitReader ;
#[doc = "Field `TXACTIE` writer - TXACTIE"] pub type TxactieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXACTIE` reader - RXACTIE"] pub type RxactieR = crate :: BitReader ;
#[doc = "Field `RXACTIE` writer - RXACTIE"] pub type RxactieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFIFOHEIE` reader - TXFIFOHEIE"] pub type TxfifoheieR = crate :: BitReader ;
#[doc = "Field `TXFIFOHEIE` writer - TXFIFOHEIE"] pub type TxfifoheieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXFIFOHFIE` reader - RXFIFOHFIE"] pub type RxfifohfieR = crate :: BitReader ;
#[doc = "Field `RXFIFOHFIE` writer - RXFIFOHFIE"] pub type RxfifohfieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFIFOFIE` reader - TXFIFOFIE"] pub type TxfifofieR = crate :: BitReader ;
#[doc = "Field `TXFIFOFIE` writer - TXFIFOFIE"] pub type TxfifofieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXFIFOFIE` reader - RXFIFOFIE"] pub type RxfifofieR = crate :: BitReader ;
#[doc = "Field `RXFIFOFIE` writer - RXFIFOFIE"] pub type RxfifofieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFIFOEIE` reader - TXFIFOEIE"] pub type TxfifoeieR = crate :: BitReader ;
#[doc = "Field `TXFIFOEIE` writer - TXFIFOEIE"] pub type TxfifoeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXFIFOEIE` reader - RXFIFOEIE"] pub type RxfifoeieR = crate :: BitReader ;
#[doc = "Field `RXFIFOEIE` writer - RXFIFOEIE"] pub type RxfifoeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXDAVLIE` reader - TXDAVLIE"] pub type TxdavlieR = crate :: BitReader ;
#[doc = "Field `TXDAVLIE` writer - TXDAVLIE"] pub type TxdavlieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXDAVLIE` reader - RXDAVLIE"] pub type RxdavlieR = crate :: BitReader ;
#[doc = "Field `RXDAVLIE` writer - RXDAVLIE"] pub type RxdavlieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SDIOITIE` reader - SDIOITIE"] pub type SdioitieR = crate :: BitReader ;
#[doc = "Field `SDIOITIE` writer - SDIOITIE"] pub type SdioitieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CEATENDIE` reader - CEATENDIE"] pub type CeatendieR = crate :: BitReader ;
#[doc = "Field `CEATENDIE` writer - CEATENDIE"] pub type CeatendieW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - CCRCFAILIE"]
#[inline (always)] pub fn ccrcfailie (& self) -> CcrcfailieR { CcrcfailieR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - DCRCFAILIE"]
#[inline (always)] pub fn dcrcfailie (& self) -> DcrcfailieR { DcrcfailieR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - CTIMEOUTIE"]
#[inline (always)] pub fn ctimeoutie (& self) -> CtimeoutieR { CtimeoutieR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - DTIMEOUTIE"]
#[inline (always)] pub fn dtimeoutie (& self) -> DtimeoutieR { DtimeoutieR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - TXUNDERRIE"]
#[inline (always)] pub fn txunderrie (& self) -> TxunderrieR { TxunderrieR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - RXOVERRIE"]
#[inline (always)] pub fn rxoverrie (& self) -> RxoverrieR { RxoverrieR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - CMDRENDIE"]
#[inline (always)] pub fn cmdrendie (& self) -> CmdrendieR { CmdrendieR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - CMDSENTIE"]
#[inline (always)] pub fn cmdsentie (& self) -> CmdsentieR { CmdsentieR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - DATAENDIE"]
#[inline (always)] pub fn dataendie (& self) -> DataendieR { DataendieR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - STBITERRIE"]
#[inline (always)] pub fn stbiterrie (& self) -> StbiterrieR { StbiterrieR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - DBACKENDIE"]
#[inline (always)] pub fn dbackendie (& self) -> DbackendieR { DbackendieR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - CMDACTIE"]
#[inline (always)] pub fn cmdactie (& self) -> CmdactieR { CmdactieR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - TXACTIE"]
#[inline (always)] pub fn txactie (& self) -> TxactieR { TxactieR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - RXACTIE"]
#[inline (always)] pub fn rxactie (& self) -> RxactieR { RxactieR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - TXFIFOHEIE"]
#[inline (always)] pub fn txfifoheie (& self) -> TxfifoheieR { TxfifoheieR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - RXFIFOHFIE"]
#[inline (always)] pub fn rxfifohfie (& self) -> RxfifohfieR { RxfifohfieR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - TXFIFOFIE"]
#[inline (always)] pub fn txfifofie (& self) -> TxfifofieR { TxfifofieR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - RXFIFOFIE"]
#[inline (always)] pub fn rxfifofie (& self) -> RxfifofieR { RxfifofieR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - TXFIFOEIE"]
#[inline (always)] pub fn txfifoeie (& self) -> TxfifoeieR { TxfifoeieR :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - RXFIFOEIE"]
#[inline (always)] pub fn rxfifoeie (& self) -> RxfifoeieR { RxfifoeieR :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - TXDAVLIE"]
#[inline (always)] pub fn txdavlie (& self) -> TxdavlieR { TxdavlieR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - RXDAVLIE"]
#[inline (always)] pub fn rxdavlie (& self) -> RxdavlieR { RxdavlieR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - SDIOITIE"]
#[inline (always)] pub fn sdioitie (& self) -> SdioitieR { SdioitieR :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - CEATENDIE"]
#[inline (always)] pub fn ceatendie (& self) -> CeatendieR { CeatendieR :: new (((self . bits >> 23) & 1) != 0) } } impl W {
#[doc = "Bit 0 - CCRCFAILIE"]
#[inline (always)] pub fn ccrcfailie (& mut self) -> CcrcfailieW < '_ , MaskSpec > { CcrcfailieW :: new (self , 0) }
#[doc = "Bit 1 - DCRCFAILIE"]
#[inline (always)] pub fn dcrcfailie (& mut self) -> DcrcfailieW < '_ , MaskSpec > { DcrcfailieW :: new (self , 1) }
#[doc = "Bit 2 - CTIMEOUTIE"]
#[inline (always)] pub fn ctimeoutie (& mut self) -> CtimeoutieW < '_ , MaskSpec > { CtimeoutieW :: new (self , 2) }
#[doc = "Bit 3 - DTIMEOUTIE"]
#[inline (always)] pub fn dtimeoutie (& mut self) -> DtimeoutieW < '_ , MaskSpec > { DtimeoutieW :: new (self , 3) }
#[doc = "Bit 4 - TXUNDERRIE"]
#[inline (always)] pub fn txunderrie (& mut self) -> TxunderrieW < '_ , MaskSpec > { TxunderrieW :: new (self , 4) }
#[doc = "Bit 5 - RXOVERRIE"]
#[inline (always)] pub fn rxoverrie (& mut self) -> RxoverrieW < '_ , MaskSpec > { RxoverrieW :: new (self , 5) }
#[doc = "Bit 6 - CMDRENDIE"]
#[inline (always)] pub fn cmdrendie (& mut self) -> CmdrendieW < '_ , MaskSpec > { CmdrendieW :: new (self , 6) }
#[doc = "Bit 7 - CMDSENTIE"]
#[inline (always)] pub fn cmdsentie (& mut self) -> CmdsentieW < '_ , MaskSpec > { CmdsentieW :: new (self , 7) }
#[doc = "Bit 8 - DATAENDIE"]
#[inline (always)] pub fn dataendie (& mut self) -> DataendieW < '_ , MaskSpec > { DataendieW :: new (self , 8) }
#[doc = "Bit 9 - STBITERRIE"]
#[inline (always)] pub fn stbiterrie (& mut self) -> StbiterrieW < '_ , MaskSpec > { StbiterrieW :: new (self , 9) }
#[doc = "Bit 10 - DBACKENDIE"]
#[inline (always)] pub fn dbackendie (& mut self) -> DbackendieW < '_ , MaskSpec > { DbackendieW :: new (self , 10) }
#[doc = "Bit 11 - CMDACTIE"]
#[inline (always)] pub fn cmdactie (& mut self) -> CmdactieW < '_ , MaskSpec > { CmdactieW :: new (self , 11) }
#[doc = "Bit 12 - TXACTIE"]
#[inline (always)] pub fn txactie (& mut self) -> TxactieW < '_ , MaskSpec > { TxactieW :: new (self , 12) }
#[doc = "Bit 13 - RXACTIE"]
#[inline (always)] pub fn rxactie (& mut self) -> RxactieW < '_ , MaskSpec > { RxactieW :: new (self , 13) }
#[doc = "Bit 14 - TXFIFOHEIE"]
#[inline (always)] pub fn txfifoheie (& mut self) -> TxfifoheieW < '_ , MaskSpec > { TxfifoheieW :: new (self , 14) }
#[doc = "Bit 15 - RXFIFOHFIE"]
#[inline (always)] pub fn rxfifohfie (& mut self) -> RxfifohfieW < '_ , MaskSpec > { RxfifohfieW :: new (self , 15) }
#[doc = "Bit 16 - TXFIFOFIE"]
#[inline (always)] pub fn txfifofie (& mut self) -> TxfifofieW < '_ , MaskSpec > { TxfifofieW :: new (self , 16) }
#[doc = "Bit 17 - RXFIFOFIE"]
#[inline (always)] pub fn rxfifofie (& mut self) -> RxfifofieW < '_ , MaskSpec > { RxfifofieW :: new (self , 17) }
#[doc = "Bit 18 - TXFIFOEIE"]
#[inline (always)] pub fn txfifoeie (& mut self) -> TxfifoeieW < '_ , MaskSpec > { TxfifoeieW :: new (self , 18) }
#[doc = "Bit 19 - RXFIFOEIE"]
#[inline (always)] pub fn rxfifoeie (& mut self) -> RxfifoeieW < '_ , MaskSpec > { RxfifoeieW :: new (self , 19) }
#[doc = "Bit 20 - TXDAVLIE"]
#[inline (always)] pub fn txdavlie (& mut self) -> TxdavlieW < '_ , MaskSpec > { TxdavlieW :: new (self , 20) }
#[doc = "Bit 21 - RXDAVLIE"]
#[inline (always)] pub fn rxdavlie (& mut self) -> RxdavlieW < '_ , MaskSpec > { RxdavlieW :: new (self , 21) }
#[doc = "Bit 22 - SDIOITIE"]
#[inline (always)] pub fn sdioitie (& mut self) -> SdioitieW < '_ , MaskSpec > { SdioitieW :: new (self , 22) }
#[doc = "Bit 23 - CEATENDIE"]
#[inline (always)] pub fn ceatendie (& mut self) -> CeatendieW < '_ , MaskSpec > { CeatendieW :: new (self , 23) } }
#[doc = "SDIO mask register (SDIO_MASK)\n\nYou can [`read`](crate::Reg::read) this register and get [`mask::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mask::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MaskSpec ; impl crate :: RegisterSpec for MaskSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`mask::R`](R) reader structure"] impl crate :: Readable for MaskSpec { }
#[doc = "`write(|w| ..)` method takes [`mask::W`](W) writer structure"] impl crate :: Writable for MaskSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MASK to value 0"] impl crate :: Resettable for MaskSpec { } }
#[doc = "FIFOCNT (r) register accessor: Bits 23:0 = FIFOCOUNT: Remaining number of words to be written to or read from the FIFO\n\nYou can [`read`](crate::Reg::read) this register and get [`fifocnt::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fifocnt`] module"]
#[doc (alias = "FIFOCNT")] pub type Fifocnt = crate :: Reg < fifocnt :: FifocntSpec > ;
#[doc = "Bits 23:0 = FIFOCOUNT: Remaining number of words to be written to or read from the FIFO"] pub mod fifocnt {
#[doc = "Register `FIFOCNT` reader"] pub type R = crate :: R < FifocntSpec > ;
#[doc = "Field `FIF0COUNT` reader - FIF0COUNT"] pub type Fif0countR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:23 - FIF0COUNT"]
#[inline (always)] pub fn fif0count (& self) -> Fif0countR { Fif0countR :: new (self . bits & 0x00ff_ffff) } }
#[doc = "Bits 23:0 = FIFOCOUNT: Remaining number of words to be written to or read from the FIFO\n\nYou can [`read`](crate::Reg::read) this register and get [`fifocnt::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FifocntSpec ; impl crate :: RegisterSpec for FifocntSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fifocnt::R`](R) reader structure"] impl crate :: Readable for FifocntSpec { }
#[doc = "`reset()` method sets FIFOCNT to value 0"] impl crate :: Resettable for FifocntSpec { } }
#[doc = "FIFO (rw) register accessor: bits 31:0 = FIFOData: Receive and transmit FIFO data\n\nYou can [`read`](crate::Reg::read) this register and get [`fifo::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fifo::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fifo`] module"]
#[doc (alias = "FIFO")] pub type Fifo = crate :: Reg < fifo :: FifoSpec > ;
#[doc = "bits 31:0 = FIFOData: Receive and transmit FIFO data"] pub mod fifo {
#[doc = "Register `FIFO` reader"] pub type R = crate :: R < FifoSpec > ;
#[doc = "Register `FIFO` writer"] pub type W = crate :: W < FifoSpec > ;
#[doc = "Field `FIFOData` reader - FIFOData"] pub type FifodataR = crate :: FieldReader < u32 > ;
#[doc = "Field `FIFOData` writer - FIFOData"] pub type FifodataW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - FIFOData"]
#[inline (always)] pub fn fifodata (& self) -> FifodataR { FifodataR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - FIFOData"]
#[inline (always)] pub fn fifodata (& mut self) -> FifodataW < '_ , FifoSpec > { FifodataW :: new (self , 0) } }
#[doc = "bits 31:0 = FIFOData: Receive and transmit FIFO data\n\nYou can [`read`](crate::Reg::read) this register and get [`fifo::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fifo::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FifoSpec ; impl crate :: RegisterSpec for FifoSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fifo::R`](R) reader structure"] impl crate :: Readable for FifoSpec { }
#[doc = "`write(|w| ..)` method takes [`fifo::W`](W) writer structure"] impl crate :: Writable for FifoSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FIFO to value 0"] impl crate :: Resettable for FifoSpec { } } }
#[doc = "Real time clock"] pub type Rtc = crate :: Periph < rtc :: RegisterBlock , 0x4000_2800 > ; impl core :: fmt :: Debug for Rtc { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Rtc") . finish () } }
#[doc = "Real time clock"] pub mod rtc {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { crh : Crh , crl : Crl , prlh : Prlh , prll : Prll , divh : Divh , divl : Divl , cnth : Cnth , cntl : Cntl , alrh : Alrh , alrl : Alrl , } impl RegisterBlock {
#[doc = "0x00 - RTC Control Register High"]
#[inline (always)] pub const fn crh (& self) -> & Crh { & self . crh }
#[doc = "0x04 - RTC Control Register Low"]
#[inline (always)] pub const fn crl (& self) -> & Crl { & self . crl }
#[doc = "0x08 - RTC Prescaler Load Register High"]
#[inline (always)] pub const fn prlh (& self) -> & Prlh { & self . prlh }
#[doc = "0x0c - RTC Prescaler Load Register Low"]
#[inline (always)] pub const fn prll (& self) -> & Prll { & self . prll }
#[doc = "0x10 - RTC Prescaler Divider Register High"]
#[inline (always)] pub const fn divh (& self) -> & Divh { & self . divh }
#[doc = "0x14 - RTC Prescaler Divider Register Low"]
#[inline (always)] pub const fn divl (& self) -> & Divl { & self . divl }
#[doc = "0x18 - RTC Counter Register High"]
#[inline (always)] pub const fn cnth (& self) -> & Cnth { & self . cnth }
#[doc = "0x1c - RTC Counter Register Low"]
#[inline (always)] pub const fn cntl (& self) -> & Cntl { & self . cntl }
#[doc = "0x20 - RTC Alarm Register High"]
#[inline (always)] pub const fn alrh (& self) -> & Alrh { & self . alrh }
#[doc = "0x24 - RTC Alarm Register Low"]
#[inline (always)] pub const fn alrl (& self) -> & Alrl { & self . alrl } }
#[doc = "CRH (rw) register accessor: RTC Control Register High\n\nYou can [`read`](crate::Reg::read) this register and get [`crh::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`crh::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@crh`] module"]
#[doc (alias = "CRH")] pub type Crh = crate :: Reg < crh :: CrhSpec > ;
#[doc = "RTC Control Register High"] pub mod crh {
#[doc = "Register `CRH` reader"] pub type R = crate :: R < CrhSpec > ;
#[doc = "Register `CRH` writer"] pub type W = crate :: W < CrhSpec > ;
#[doc = "Field `SECIE` reader - Second interrupt Enable"] pub type SecieR = crate :: BitReader ;
#[doc = "Field `SECIE` writer - Second interrupt Enable"] pub type SecieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ALRIE` reader - Alarm interrupt Enable"] pub type AlrieR = crate :: BitReader ;
#[doc = "Field `ALRIE` writer - Alarm interrupt Enable"] pub type AlrieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OWIE` reader - Overflow interrupt Enable"] pub type OwieR = crate :: BitReader ;
#[doc = "Field `OWIE` writer - Overflow interrupt Enable"] pub type OwieW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Second interrupt Enable"]
#[inline (always)] pub fn secie (& self) -> SecieR { SecieR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Alarm interrupt Enable"]
#[inline (always)] pub fn alrie (& self) -> AlrieR { AlrieR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Overflow interrupt Enable"]
#[inline (always)] pub fn owie (& self) -> OwieR { OwieR :: new (((self . bits >> 2) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Second interrupt Enable"]
#[inline (always)] pub fn secie (& mut self) -> SecieW < '_ , CrhSpec > { SecieW :: new (self , 0) }
#[doc = "Bit 1 - Alarm interrupt Enable"]
#[inline (always)] pub fn alrie (& mut self) -> AlrieW < '_ , CrhSpec > { AlrieW :: new (self , 1) }
#[doc = "Bit 2 - Overflow interrupt Enable"]
#[inline (always)] pub fn owie (& mut self) -> OwieW < '_ , CrhSpec > { OwieW :: new (self , 2) } }
#[doc = "RTC Control Register High\n\nYou can [`read`](crate::Reg::read) this register and get [`crh::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`crh::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CrhSpec ; impl crate :: RegisterSpec for CrhSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`crh::R`](R) reader structure"] impl crate :: Readable for CrhSpec { }
#[doc = "`write(|w| ..)` method takes [`crh::W`](W) writer structure"] impl crate :: Writable for CrhSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CRH to value 0"] impl crate :: Resettable for CrhSpec { } }
#[doc = "CRL (rw) register accessor: RTC Control Register Low\n\nYou can [`read`](crate::Reg::read) this register and get [`crl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`crl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@crl`] module"]
#[doc (alias = "CRL")] pub type Crl = crate :: Reg < crl :: CrlSpec > ;
#[doc = "RTC Control Register Low"] pub mod crl {
#[doc = "Register `CRL` reader"] pub type R = crate :: R < CrlSpec > ;
#[doc = "Register `CRL` writer"] pub type W = crate :: W < CrlSpec > ;
#[doc = "Field `SECF` reader - Second Flag"] pub type SecfR = crate :: BitReader ;
#[doc = "Field `SECF` writer - Second Flag"] pub type SecfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ALRF` reader - Alarm Flag"] pub type AlrfR = crate :: BitReader ;
#[doc = "Field `ALRF` writer - Alarm Flag"] pub type AlrfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OWF` reader - Overflow Flag"] pub type OwfR = crate :: BitReader ;
#[doc = "Field `OWF` writer - Overflow Flag"] pub type OwfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RSF` reader - Registers Synchronized Flag"] pub type RsfR = crate :: BitReader ;
#[doc = "Field `RSF` writer - Registers Synchronized Flag"] pub type RsfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CNF` reader - Configuration Flag"] pub type CnfR = crate :: BitReader ;
#[doc = "Field `CNF` writer - Configuration Flag"] pub type CnfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RTOFF` reader - RTC operation OFF"] pub type RtoffR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - Second Flag"]
#[inline (always)] pub fn secf (& self) -> SecfR { SecfR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Alarm Flag"]
#[inline (always)] pub fn alrf (& self) -> AlrfR { AlrfR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Overflow Flag"]
#[inline (always)] pub fn owf (& self) -> OwfR { OwfR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Registers Synchronized Flag"]
#[inline (always)] pub fn rsf (& self) -> RsfR { RsfR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Configuration Flag"]
#[inline (always)] pub fn cnf (& self) -> CnfR { CnfR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - RTC operation OFF"]
#[inline (always)] pub fn rtoff (& self) -> RtoffR { RtoffR :: new (((self . bits >> 5) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Second Flag"]
#[inline (always)] pub fn secf (& mut self) -> SecfW < '_ , CrlSpec > { SecfW :: new (self , 0) }
#[doc = "Bit 1 - Alarm Flag"]
#[inline (always)] pub fn alrf (& mut self) -> AlrfW < '_ , CrlSpec > { AlrfW :: new (self , 1) }
#[doc = "Bit 2 - Overflow Flag"]
#[inline (always)] pub fn owf (& mut self) -> OwfW < '_ , CrlSpec > { OwfW :: new (self , 2) }
#[doc = "Bit 3 - Registers Synchronized Flag"]
#[inline (always)] pub fn rsf (& mut self) -> RsfW < '_ , CrlSpec > { RsfW :: new (self , 3) }
#[doc = "Bit 4 - Configuration Flag"]
#[inline (always)] pub fn cnf (& mut self) -> CnfW < '_ , CrlSpec > { CnfW :: new (self , 4) } }
#[doc = "RTC Control Register Low\n\nYou can [`read`](crate::Reg::read) this register and get [`crl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`crl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CrlSpec ; impl crate :: RegisterSpec for CrlSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`crl::R`](R) reader structure"] impl crate :: Readable for CrlSpec { }
#[doc = "`write(|w| ..)` method takes [`crl::W`](W) writer structure"] impl crate :: Writable for CrlSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CRL to value 0x20"] impl crate :: Resettable for CrlSpec { const RESET_VALUE : u32 = 0x20 ; } }
#[doc = "PRLH (w) register accessor: RTC Prescaler Load Register High\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`prlh::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@prlh`] module"]
#[doc (alias = "PRLH")] pub type Prlh = crate :: Reg < prlh :: PrlhSpec > ;
#[doc = "RTC Prescaler Load Register High"] pub mod prlh {
#[doc = "Register `PRLH` writer"] pub type W = crate :: W < PrlhSpec > ;
#[doc = "Field `PRLH` writer - RTC Prescaler Load Register High"] pub type PrlhW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ; impl W {
#[doc = "Bits 0:3 - RTC Prescaler Load Register High"]
#[inline (always)] pub fn prlh (& mut self) -> PrlhW < '_ , PrlhSpec > { PrlhW :: new (self , 0) } }
#[doc = "RTC Prescaler Load Register High\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`prlh::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PrlhSpec ; impl crate :: RegisterSpec for PrlhSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`prlh::W`](W) writer structure"] impl crate :: Writable for PrlhSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PRLH to value 0"] impl crate :: Resettable for PrlhSpec { } }
#[doc = "PRLL (w) register accessor: RTC Prescaler Load Register Low\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`prll::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@prll`] module"]
#[doc (alias = "PRLL")] pub type Prll = crate :: Reg < prll :: PrllSpec > ;
#[doc = "RTC Prescaler Load Register Low"] pub mod prll {
#[doc = "Register `PRLL` writer"] pub type W = crate :: W < PrllSpec > ;
#[doc = "Field `PRLL` writer - RTC Prescaler Divider Register Low"] pub type PrllW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl W {
#[doc = "Bits 0:15 - RTC Prescaler Divider Register Low"]
#[inline (always)] pub fn prll (& mut self) -> PrllW < '_ , PrllSpec > { PrllW :: new (self , 0) } }
#[doc = "RTC Prescaler Load Register Low\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`prll::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PrllSpec ; impl crate :: RegisterSpec for PrllSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`prll::W`](W) writer structure"] impl crate :: Writable for PrllSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PRLL to value 0x8000"] impl crate :: Resettable for PrllSpec { const RESET_VALUE : u32 = 0x8000 ; } }
#[doc = "DIVH (r) register accessor: RTC Prescaler Divider Register High\n\nYou can [`read`](crate::Reg::read) this register and get [`divh::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@divh`] module"]
#[doc (alias = "DIVH")] pub type Divh = crate :: Reg < divh :: DivhSpec > ;
#[doc = "RTC Prescaler Divider Register High"] pub mod divh {
#[doc = "Register `DIVH` reader"] pub type R = crate :: R < DivhSpec > ;
#[doc = "Field `DIVH` reader - RTC prescaler divider register high"] pub type DivhR = crate :: FieldReader ; impl R {
#[doc = "Bits 0:3 - RTC prescaler divider register high"]
#[inline (always)] pub fn divh (& self) -> DivhR { DivhR :: new ((self . bits & 0x0f) as u8) } }
#[doc = "RTC Prescaler Divider Register High\n\nYou can [`read`](crate::Reg::read) this register and get [`divh::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DivhSpec ; impl crate :: RegisterSpec for DivhSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`divh::R`](R) reader structure"] impl crate :: Readable for DivhSpec { }
#[doc = "`reset()` method sets DIVH to value 0"] impl crate :: Resettable for DivhSpec { } }
#[doc = "DIVL (r) register accessor: RTC Prescaler Divider Register Low\n\nYou can [`read`](crate::Reg::read) this register and get [`divl::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@divl`] module"]
#[doc (alias = "DIVL")] pub type Divl = crate :: Reg < divl :: DivlSpec > ;
#[doc = "RTC Prescaler Divider Register Low"] pub mod divl {
#[doc = "Register `DIVL` reader"] pub type R = crate :: R < DivlSpec > ;
#[doc = "Field `DIVL` reader - RTC prescaler divider register Low"] pub type DivlR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - RTC prescaler divider register Low"]
#[inline (always)] pub fn divl (& self) -> DivlR { DivlR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "RTC Prescaler Divider Register Low\n\nYou can [`read`](crate::Reg::read) this register and get [`divl::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DivlSpec ; impl crate :: RegisterSpec for DivlSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`divl::R`](R) reader structure"] impl crate :: Readable for DivlSpec { }
#[doc = "`reset()` method sets DIVL to value 0x8000"] impl crate :: Resettable for DivlSpec { const RESET_VALUE : u32 = 0x8000 ; } }
#[doc = "CNTH (rw) register accessor: RTC Counter Register High\n\nYou can [`read`](crate::Reg::read) this register and get [`cnth::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnth::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cnth`] module"]
#[doc (alias = "CNTH")] pub type Cnth = crate :: Reg < cnth :: CnthSpec > ;
#[doc = "RTC Counter Register High"] pub mod cnth {
#[doc = "Register `CNTH` reader"] pub type R = crate :: R < CnthSpec > ;
#[doc = "Register `CNTH` writer"] pub type W = crate :: W < CnthSpec > ;
#[doc = "Field `CNTH` reader - RTC counter register high"] pub type CnthR = crate :: FieldReader < u16 > ;
#[doc = "Field `CNTH` writer - RTC counter register high"] pub type CnthW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - RTC counter register high"]
#[inline (always)] pub fn cnth (& self) -> CnthR { CnthR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - RTC counter register high"]
#[inline (always)] pub fn cnth (& mut self) -> CnthW < '_ , CnthSpec > { CnthW :: new (self , 0) } }
#[doc = "RTC Counter Register High\n\nYou can [`read`](crate::Reg::read) this register and get [`cnth::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnth::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CnthSpec ; impl crate :: RegisterSpec for CnthSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cnth::R`](R) reader structure"] impl crate :: Readable for CnthSpec { }
#[doc = "`write(|w| ..)` method takes [`cnth::W`](W) writer structure"] impl crate :: Writable for CnthSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNTH to value 0"] impl crate :: Resettable for CnthSpec { } }
#[doc = "CNTL (rw) register accessor: RTC Counter Register Low\n\nYou can [`read`](crate::Reg::read) this register and get [`cntl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cntl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cntl`] module"]
#[doc (alias = "CNTL")] pub type Cntl = crate :: Reg < cntl :: CntlSpec > ;
#[doc = "RTC Counter Register Low"] pub mod cntl {
#[doc = "Register `CNTL` reader"] pub type R = crate :: R < CntlSpec > ;
#[doc = "Register `CNTL` writer"] pub type W = crate :: W < CntlSpec > ;
#[doc = "Field `CNTL` reader - RTC counter register Low"] pub type CntlR = crate :: FieldReader < u16 > ;
#[doc = "Field `CNTL` writer - RTC counter register Low"] pub type CntlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - RTC counter register Low"]
#[inline (always)] pub fn cntl (& self) -> CntlR { CntlR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - RTC counter register Low"]
#[inline (always)] pub fn cntl (& mut self) -> CntlW < '_ , CntlSpec > { CntlW :: new (self , 0) } }
#[doc = "RTC Counter Register Low\n\nYou can [`read`](crate::Reg::read) this register and get [`cntl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cntl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CntlSpec ; impl crate :: RegisterSpec for CntlSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cntl::R`](R) reader structure"] impl crate :: Readable for CntlSpec { }
#[doc = "`write(|w| ..)` method takes [`cntl::W`](W) writer structure"] impl crate :: Writable for CntlSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNTL to value 0"] impl crate :: Resettable for CntlSpec { } }
#[doc = "ALRH (w) register accessor: RTC Alarm Register High\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`alrh::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@alrh`] module"]
#[doc (alias = "ALRH")] pub type Alrh = crate :: Reg < alrh :: AlrhSpec > ;
#[doc = "RTC Alarm Register High"] pub mod alrh {
#[doc = "Register `ALRH` writer"] pub type W = crate :: W < AlrhSpec > ;
#[doc = "Field `ALRH` writer - RTC alarm register high"] pub type AlrhW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl W {
#[doc = "Bits 0:15 - RTC alarm register high"]
#[inline (always)] pub fn alrh (& mut self) -> AlrhW < '_ , AlrhSpec > { AlrhW :: new (self , 0) } }
#[doc = "RTC Alarm Register High\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`alrh::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct AlrhSpec ; impl crate :: RegisterSpec for AlrhSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`alrh::W`](W) writer structure"] impl crate :: Writable for AlrhSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets ALRH to value 0xffff"] impl crate :: Resettable for AlrhSpec { const RESET_VALUE : u32 = 0xffff ; } }
#[doc = "ALRL (w) register accessor: RTC Alarm Register Low\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`alrl::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@alrl`] module"]
#[doc (alias = "ALRL")] pub type Alrl = crate :: Reg < alrl :: AlrlSpec > ;
#[doc = "RTC Alarm Register Low"] pub mod alrl {
#[doc = "Register `ALRL` writer"] pub type W = crate :: W < AlrlSpec > ;
#[doc = "Field `ALRL` writer - RTC alarm register low"] pub type AlrlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl W {
#[doc = "Bits 0:15 - RTC alarm register low"]
#[inline (always)] pub fn alrl (& mut self) -> AlrlW < '_ , AlrlSpec > { AlrlW :: new (self , 0) } }
#[doc = "RTC Alarm Register Low\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`alrl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct AlrlSpec ; impl crate :: RegisterSpec for AlrlSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`alrl::W`](W) writer structure"] impl crate :: Writable for AlrlSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets ALRL to value 0xffff"] impl crate :: Resettable for AlrlSpec { const RESET_VALUE : u32 = 0xffff ; } } }
#[doc = "Backup registers"] pub type Bkp = crate :: Periph < bkp :: RegisterBlock , 0x4000_6c00 > ; impl core :: fmt :: Debug for Bkp { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Bkp") . finish () } }
#[doc = "Backup registers"] pub mod bkp {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { dr1 : Dr1 , dr2 : Dr2 , dr3 : Dr3 , dr4 : Dr4 , dr5 : Dr5 , dr6 : Dr6 , dr7 : Dr7 , dr8 : Dr8 , dr9 : Dr9 , dr10 : Dr10 , rtccr : Rtccr , cr : Cr , csr : Csr , _reserved13 : [u8 ; 0x08] , dr11 : Dr11 , dr12 : Dr12 , dr13 : Dr13 , dr14 : Dr14 , dr15 : Dr15 , dr16 : Dr16 , dr17 : Dr17 , dr18 : Dr18 , dr19 : Dr19 , dr20 : Dr20 , dr21 : Dr21 , dr22 : Dr22 , dr23 : Dr23 , dr24 : Dr24 , dr25 : Dr25 , dr26 : Dr26 , dr27 : Dr27 , dr28 : Dr28 , dr29 : Dr29 , dr30 : Dr30 , dr31 : Dr31 , dr32 : Dr32 , dr33 : Dr33 , dr34 : Dr34 , dr35 : Dr35 , dr36 : Dr36 , dr37 : Dr37 , dr38 : Dr38 , dr39 : Dr39 , dr40 : Dr40 , dr41 : Dr41 , dr42 : Dr42 , } impl RegisterBlock {
#[doc = "0x00 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr1 (& self) -> & Dr1 { & self . dr1 }
#[doc = "0x04 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr2 (& self) -> & Dr2 { & self . dr2 }
#[doc = "0x08 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr3 (& self) -> & Dr3 { & self . dr3 }
#[doc = "0x0c - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr4 (& self) -> & Dr4 { & self . dr4 }
#[doc = "0x10 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr5 (& self) -> & Dr5 { & self . dr5 }
#[doc = "0x14 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr6 (& self) -> & Dr6 { & self . dr6 }
#[doc = "0x18 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr7 (& self) -> & Dr7 { & self . dr7 }
#[doc = "0x1c - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr8 (& self) -> & Dr8 { & self . dr8 }
#[doc = "0x20 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr9 (& self) -> & Dr9 { & self . dr9 }
#[doc = "0x24 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr10 (& self) -> & Dr10 { & self . dr10 }
#[doc = "0x28 - RTC clock calibration register (BKP_RTCCR)"]
#[inline (always)] pub const fn rtccr (& self) -> & Rtccr { & self . rtccr }
#[doc = "0x2c - Backup control register (BKP_CR)"]
#[inline (always)] pub const fn cr (& self) -> & Cr { & self . cr }
#[doc = "0x30 - BKP_CSR control/status register (BKP_CSR)"]
#[inline (always)] pub const fn csr (& self) -> & Csr { & self . csr }
#[doc = "0x3c - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr11 (& self) -> & Dr11 { & self . dr11 }
#[doc = "0x40 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr12 (& self) -> & Dr12 { & self . dr12 }
#[doc = "0x44 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr13 (& self) -> & Dr13 { & self . dr13 }
#[doc = "0x48 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr14 (& self) -> & Dr14 { & self . dr14 }
#[doc = "0x4c - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr15 (& self) -> & Dr15 { & self . dr15 }
#[doc = "0x50 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr16 (& self) -> & Dr16 { & self . dr16 }
#[doc = "0x54 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr17 (& self) -> & Dr17 { & self . dr17 }
#[doc = "0x58 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr18 (& self) -> & Dr18 { & self . dr18 }
#[doc = "0x5c - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr19 (& self) -> & Dr19 { & self . dr19 }
#[doc = "0x60 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr20 (& self) -> & Dr20 { & self . dr20 }
#[doc = "0x64 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr21 (& self) -> & Dr21 { & self . dr21 }
#[doc = "0x68 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr22 (& self) -> & Dr22 { & self . dr22 }
#[doc = "0x6c - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr23 (& self) -> & Dr23 { & self . dr23 }
#[doc = "0x70 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr24 (& self) -> & Dr24 { & self . dr24 }
#[doc = "0x74 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr25 (& self) -> & Dr25 { & self . dr25 }
#[doc = "0x78 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr26 (& self) -> & Dr26 { & self . dr26 }
#[doc = "0x7c - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr27 (& self) -> & Dr27 { & self . dr27 }
#[doc = "0x80 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr28 (& self) -> & Dr28 { & self . dr28 }
#[doc = "0x84 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr29 (& self) -> & Dr29 { & self . dr29 }
#[doc = "0x88 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr30 (& self) -> & Dr30 { & self . dr30 }
#[doc = "0x8c - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr31 (& self) -> & Dr31 { & self . dr31 }
#[doc = "0x90 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr32 (& self) -> & Dr32 { & self . dr32 }
#[doc = "0x94 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr33 (& self) -> & Dr33 { & self . dr33 }
#[doc = "0x98 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr34 (& self) -> & Dr34 { & self . dr34 }
#[doc = "0x9c - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr35 (& self) -> & Dr35 { & self . dr35 }
#[doc = "0xa0 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr36 (& self) -> & Dr36 { & self . dr36 }
#[doc = "0xa4 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr37 (& self) -> & Dr37 { & self . dr37 }
#[doc = "0xa8 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr38 (& self) -> & Dr38 { & self . dr38 }
#[doc = "0xac - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr39 (& self) -> & Dr39 { & self . dr39 }
#[doc = "0xb0 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr40 (& self) -> & Dr40 { & self . dr40 }
#[doc = "0xb4 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr41 (& self) -> & Dr41 { & self . dr41 }
#[doc = "0xb8 - Backup data register (BKP_DR)"]
#[inline (always)] pub const fn dr42 (& self) -> & Dr42 { & self . dr42 } }
#[doc = "DR1 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr1`] module"]
#[doc (alias = "DR1")] pub type Dr1 = crate :: Reg < dr1 :: Dr1Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr1 {
#[doc = "Register `DR1` reader"] pub type R = crate :: R < Dr1Spec > ;
#[doc = "Register `DR1` writer"] pub type W = crate :: W < Dr1Spec > ;
#[doc = "Field `D1` reader - Backup data"] pub type D1R = crate :: FieldReader < u16 > ;
#[doc = "Field `D1` writer - Backup data"] pub type D1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d1 (& self) -> D1R { D1R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d1 (& mut self) -> D1W < '_ , Dr1Spec > { D1W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr1Spec ; impl crate :: RegisterSpec for Dr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr1::R`](R) reader structure"] impl crate :: Readable for Dr1Spec { }
#[doc = "`write(|w| ..)` method takes [`dr1::W`](W) writer structure"] impl crate :: Writable for Dr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR1 to value 0"] impl crate :: Resettable for Dr1Spec { } }
#[doc = "DR2 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr2`] module"]
#[doc (alias = "DR2")] pub type Dr2 = crate :: Reg < dr2 :: Dr2Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr2 {
#[doc = "Register `DR2` reader"] pub type R = crate :: R < Dr2Spec > ;
#[doc = "Register `DR2` writer"] pub type W = crate :: W < Dr2Spec > ;
#[doc = "Field `D2` reader - Backup data"] pub type D2R = crate :: FieldReader < u16 > ;
#[doc = "Field `D2` writer - Backup data"] pub type D2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d2 (& self) -> D2R { D2R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d2 (& mut self) -> D2W < '_ , Dr2Spec > { D2W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr2Spec ; impl crate :: RegisterSpec for Dr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr2::R`](R) reader structure"] impl crate :: Readable for Dr2Spec { }
#[doc = "`write(|w| ..)` method takes [`dr2::W`](W) writer structure"] impl crate :: Writable for Dr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR2 to value 0"] impl crate :: Resettable for Dr2Spec { } }
#[doc = "DR3 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr3`] module"]
#[doc (alias = "DR3")] pub type Dr3 = crate :: Reg < dr3 :: Dr3Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr3 {
#[doc = "Register `DR3` reader"] pub type R = crate :: R < Dr3Spec > ;
#[doc = "Register `DR3` writer"] pub type W = crate :: W < Dr3Spec > ;
#[doc = "Field `D3` reader - Backup data"] pub type D3R = crate :: FieldReader < u16 > ;
#[doc = "Field `D3` writer - Backup data"] pub type D3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d3 (& self) -> D3R { D3R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d3 (& mut self) -> D3W < '_ , Dr3Spec > { D3W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr3Spec ; impl crate :: RegisterSpec for Dr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr3::R`](R) reader structure"] impl crate :: Readable for Dr3Spec { }
#[doc = "`write(|w| ..)` method takes [`dr3::W`](W) writer structure"] impl crate :: Writable for Dr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR3 to value 0"] impl crate :: Resettable for Dr3Spec { } }
#[doc = "DR4 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr4`] module"]
#[doc (alias = "DR4")] pub type Dr4 = crate :: Reg < dr4 :: Dr4Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr4 {
#[doc = "Register `DR4` reader"] pub type R = crate :: R < Dr4Spec > ;
#[doc = "Register `DR4` writer"] pub type W = crate :: W < Dr4Spec > ;
#[doc = "Field `D4` reader - Backup data"] pub type D4R = crate :: FieldReader < u16 > ;
#[doc = "Field `D4` writer - Backup data"] pub type D4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d4 (& self) -> D4R { D4R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d4 (& mut self) -> D4W < '_ , Dr4Spec > { D4W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr4Spec ; impl crate :: RegisterSpec for Dr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr4::R`](R) reader structure"] impl crate :: Readable for Dr4Spec { }
#[doc = "`write(|w| ..)` method takes [`dr4::W`](W) writer structure"] impl crate :: Writable for Dr4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR4 to value 0"] impl crate :: Resettable for Dr4Spec { } }
#[doc = "DR5 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr5::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr5::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr5`] module"]
#[doc (alias = "DR5")] pub type Dr5 = crate :: Reg < dr5 :: Dr5Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr5 {
#[doc = "Register `DR5` reader"] pub type R = crate :: R < Dr5Spec > ;
#[doc = "Register `DR5` writer"] pub type W = crate :: W < Dr5Spec > ;
#[doc = "Field `D5` reader - Backup data"] pub type D5R = crate :: FieldReader < u16 > ;
#[doc = "Field `D5` writer - Backup data"] pub type D5W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d5 (& self) -> D5R { D5R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d5 (& mut self) -> D5W < '_ , Dr5Spec > { D5W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr5::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr5::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr5Spec ; impl crate :: RegisterSpec for Dr5Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr5::R`](R) reader structure"] impl crate :: Readable for Dr5Spec { }
#[doc = "`write(|w| ..)` method takes [`dr5::W`](W) writer structure"] impl crate :: Writable for Dr5Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR5 to value 0"] impl crate :: Resettable for Dr5Spec { } }
#[doc = "DR6 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr6::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr6::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr6`] module"]
#[doc (alias = "DR6")] pub type Dr6 = crate :: Reg < dr6 :: Dr6Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr6 {
#[doc = "Register `DR6` reader"] pub type R = crate :: R < Dr6Spec > ;
#[doc = "Register `DR6` writer"] pub type W = crate :: W < Dr6Spec > ;
#[doc = "Field `D6` reader - Backup data"] pub type D6R = crate :: FieldReader < u16 > ;
#[doc = "Field `D6` writer - Backup data"] pub type D6W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d6 (& self) -> D6R { D6R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d6 (& mut self) -> D6W < '_ , Dr6Spec > { D6W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr6::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr6::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr6Spec ; impl crate :: RegisterSpec for Dr6Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr6::R`](R) reader structure"] impl crate :: Readable for Dr6Spec { }
#[doc = "`write(|w| ..)` method takes [`dr6::W`](W) writer structure"] impl crate :: Writable for Dr6Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR6 to value 0"] impl crate :: Resettable for Dr6Spec { } }
#[doc = "DR7 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr7::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr7::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr7`] module"]
#[doc (alias = "DR7")] pub type Dr7 = crate :: Reg < dr7 :: Dr7Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr7 {
#[doc = "Register `DR7` reader"] pub type R = crate :: R < Dr7Spec > ;
#[doc = "Register `DR7` writer"] pub type W = crate :: W < Dr7Spec > ;
#[doc = "Field `D7` reader - Backup data"] pub type D7R = crate :: FieldReader < u16 > ;
#[doc = "Field `D7` writer - Backup data"] pub type D7W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d7 (& self) -> D7R { D7R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d7 (& mut self) -> D7W < '_ , Dr7Spec > { D7W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr7::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr7::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr7Spec ; impl crate :: RegisterSpec for Dr7Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr7::R`](R) reader structure"] impl crate :: Readable for Dr7Spec { }
#[doc = "`write(|w| ..)` method takes [`dr7::W`](W) writer structure"] impl crate :: Writable for Dr7Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR7 to value 0"] impl crate :: Resettable for Dr7Spec { } }
#[doc = "DR8 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr8::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr8::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr8`] module"]
#[doc (alias = "DR8")] pub type Dr8 = crate :: Reg < dr8 :: Dr8Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr8 {
#[doc = "Register `DR8` reader"] pub type R = crate :: R < Dr8Spec > ;
#[doc = "Register `DR8` writer"] pub type W = crate :: W < Dr8Spec > ;
#[doc = "Field `D8` reader - Backup data"] pub type D8R = crate :: FieldReader < u16 > ;
#[doc = "Field `D8` writer - Backup data"] pub type D8W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d8 (& self) -> D8R { D8R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d8 (& mut self) -> D8W < '_ , Dr8Spec > { D8W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr8::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr8::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr8Spec ; impl crate :: RegisterSpec for Dr8Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr8::R`](R) reader structure"] impl crate :: Readable for Dr8Spec { }
#[doc = "`write(|w| ..)` method takes [`dr8::W`](W) writer structure"] impl crate :: Writable for Dr8Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR8 to value 0"] impl crate :: Resettable for Dr8Spec { } }
#[doc = "DR9 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr9::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr9::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr9`] module"]
#[doc (alias = "DR9")] pub type Dr9 = crate :: Reg < dr9 :: Dr9Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr9 {
#[doc = "Register `DR9` reader"] pub type R = crate :: R < Dr9Spec > ;
#[doc = "Register `DR9` writer"] pub type W = crate :: W < Dr9Spec > ;
#[doc = "Field `D9` reader - Backup data"] pub type D9R = crate :: FieldReader < u16 > ;
#[doc = "Field `D9` writer - Backup data"] pub type D9W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d9 (& self) -> D9R { D9R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d9 (& mut self) -> D9W < '_ , Dr9Spec > { D9W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr9::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr9::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr9Spec ; impl crate :: RegisterSpec for Dr9Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr9::R`](R) reader structure"] impl crate :: Readable for Dr9Spec { }
#[doc = "`write(|w| ..)` method takes [`dr9::W`](W) writer structure"] impl crate :: Writable for Dr9Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR9 to value 0"] impl crate :: Resettable for Dr9Spec { } }
#[doc = "DR10 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr10::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr10::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr10`] module"]
#[doc (alias = "DR10")] pub type Dr10 = crate :: Reg < dr10 :: Dr10Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr10 {
#[doc = "Register `DR10` reader"] pub type R = crate :: R < Dr10Spec > ;
#[doc = "Register `DR10` writer"] pub type W = crate :: W < Dr10Spec > ;
#[doc = "Field `D10` reader - Backup data"] pub type D10R = crate :: FieldReader < u16 > ;
#[doc = "Field `D10` writer - Backup data"] pub type D10W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d10 (& self) -> D10R { D10R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d10 (& mut self) -> D10W < '_ , Dr10Spec > { D10W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr10::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr10::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr10Spec ; impl crate :: RegisterSpec for Dr10Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr10::R`](R) reader structure"] impl crate :: Readable for Dr10Spec { }
#[doc = "`write(|w| ..)` method takes [`dr10::W`](W) writer structure"] impl crate :: Writable for Dr10Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR10 to value 0"] impl crate :: Resettable for Dr10Spec { } }
#[doc = "DR11 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr11::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr11::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr11`] module"]
#[doc (alias = "DR11")] pub type Dr11 = crate :: Reg < dr11 :: Dr11Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr11 {
#[doc = "Register `DR11` reader"] pub type R = crate :: R < Dr11Spec > ;
#[doc = "Register `DR11` writer"] pub type W = crate :: W < Dr11Spec > ;
#[doc = "Field `DR11` reader - Backup data"] pub type Dr11R = crate :: FieldReader < u16 > ;
#[doc = "Field `DR11` writer - Backup data"] pub type Dr11W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn dr11 (& self) -> Dr11R { Dr11R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn dr11 (& mut self) -> Dr11W < '_ , Dr11Spec > { Dr11W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr11::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr11::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr11Spec ; impl crate :: RegisterSpec for Dr11Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr11::R`](R) reader structure"] impl crate :: Readable for Dr11Spec { }
#[doc = "`write(|w| ..)` method takes [`dr11::W`](W) writer structure"] impl crate :: Writable for Dr11Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR11 to value 0"] impl crate :: Resettable for Dr11Spec { } }
#[doc = "DR12 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr12::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr12::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr12`] module"]
#[doc (alias = "DR12")] pub type Dr12 = crate :: Reg < dr12 :: Dr12Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr12 {
#[doc = "Register `DR12` reader"] pub type R = crate :: R < Dr12Spec > ;
#[doc = "Register `DR12` writer"] pub type W = crate :: W < Dr12Spec > ;
#[doc = "Field `DR12` reader - Backup data"] pub type Dr12R = crate :: FieldReader < u16 > ;
#[doc = "Field `DR12` writer - Backup data"] pub type Dr12W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn dr12 (& self) -> Dr12R { Dr12R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn dr12 (& mut self) -> Dr12W < '_ , Dr12Spec > { Dr12W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr12::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr12::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr12Spec ; impl crate :: RegisterSpec for Dr12Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr12::R`](R) reader structure"] impl crate :: Readable for Dr12Spec { }
#[doc = "`write(|w| ..)` method takes [`dr12::W`](W) writer structure"] impl crate :: Writable for Dr12Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR12 to value 0"] impl crate :: Resettable for Dr12Spec { } }
#[doc = "DR13 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr13::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr13::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr13`] module"]
#[doc (alias = "DR13")] pub type Dr13 = crate :: Reg < dr13 :: Dr13Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr13 {
#[doc = "Register `DR13` reader"] pub type R = crate :: R < Dr13Spec > ;
#[doc = "Register `DR13` writer"] pub type W = crate :: W < Dr13Spec > ;
#[doc = "Field `DR13` reader - Backup data"] pub type Dr13R = crate :: FieldReader < u16 > ;
#[doc = "Field `DR13` writer - Backup data"] pub type Dr13W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn dr13 (& self) -> Dr13R { Dr13R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn dr13 (& mut self) -> Dr13W < '_ , Dr13Spec > { Dr13W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr13::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr13::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr13Spec ; impl crate :: RegisterSpec for Dr13Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr13::R`](R) reader structure"] impl crate :: Readable for Dr13Spec { }
#[doc = "`write(|w| ..)` method takes [`dr13::W`](W) writer structure"] impl crate :: Writable for Dr13Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR13 to value 0"] impl crate :: Resettable for Dr13Spec { } }
#[doc = "DR14 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr14::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr14::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr14`] module"]
#[doc (alias = "DR14")] pub type Dr14 = crate :: Reg < dr14 :: Dr14Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr14 {
#[doc = "Register `DR14` reader"] pub type R = crate :: R < Dr14Spec > ;
#[doc = "Register `DR14` writer"] pub type W = crate :: W < Dr14Spec > ;
#[doc = "Field `D14` reader - Backup data"] pub type D14R = crate :: FieldReader < u16 > ;
#[doc = "Field `D14` writer - Backup data"] pub type D14W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d14 (& self) -> D14R { D14R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d14 (& mut self) -> D14W < '_ , Dr14Spec > { D14W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr14::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr14::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr14Spec ; impl crate :: RegisterSpec for Dr14Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr14::R`](R) reader structure"] impl crate :: Readable for Dr14Spec { }
#[doc = "`write(|w| ..)` method takes [`dr14::W`](W) writer structure"] impl crate :: Writable for Dr14Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR14 to value 0"] impl crate :: Resettable for Dr14Spec { } }
#[doc = "DR15 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr15::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr15::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr15`] module"]
#[doc (alias = "DR15")] pub type Dr15 = crate :: Reg < dr15 :: Dr15Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr15 {
#[doc = "Register `DR15` reader"] pub type R = crate :: R < Dr15Spec > ;
#[doc = "Register `DR15` writer"] pub type W = crate :: W < Dr15Spec > ;
#[doc = "Field `D15` reader - Backup data"] pub type D15R = crate :: FieldReader < u16 > ;
#[doc = "Field `D15` writer - Backup data"] pub type D15W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d15 (& self) -> D15R { D15R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d15 (& mut self) -> D15W < '_ , Dr15Spec > { D15W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr15::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr15::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr15Spec ; impl crate :: RegisterSpec for Dr15Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr15::R`](R) reader structure"] impl crate :: Readable for Dr15Spec { }
#[doc = "`write(|w| ..)` method takes [`dr15::W`](W) writer structure"] impl crate :: Writable for Dr15Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR15 to value 0"] impl crate :: Resettable for Dr15Spec { } }
#[doc = "DR16 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr16::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr16::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr16`] module"]
#[doc (alias = "DR16")] pub type Dr16 = crate :: Reg < dr16 :: Dr16Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr16 {
#[doc = "Register `DR16` reader"] pub type R = crate :: R < Dr16Spec > ;
#[doc = "Register `DR16` writer"] pub type W = crate :: W < Dr16Spec > ;
#[doc = "Field `D16` reader - Backup data"] pub type D16R = crate :: FieldReader < u16 > ;
#[doc = "Field `D16` writer - Backup data"] pub type D16W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d16 (& self) -> D16R { D16R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d16 (& mut self) -> D16W < '_ , Dr16Spec > { D16W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr16::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr16::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr16Spec ; impl crate :: RegisterSpec for Dr16Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr16::R`](R) reader structure"] impl crate :: Readable for Dr16Spec { }
#[doc = "`write(|w| ..)` method takes [`dr16::W`](W) writer structure"] impl crate :: Writable for Dr16Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR16 to value 0"] impl crate :: Resettable for Dr16Spec { } }
#[doc = "DR17 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr17::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr17::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr17`] module"]
#[doc (alias = "DR17")] pub type Dr17 = crate :: Reg < dr17 :: Dr17Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr17 {
#[doc = "Register `DR17` reader"] pub type R = crate :: R < Dr17Spec > ;
#[doc = "Register `DR17` writer"] pub type W = crate :: W < Dr17Spec > ;
#[doc = "Field `D17` reader - Backup data"] pub type D17R = crate :: FieldReader < u16 > ;
#[doc = "Field `D17` writer - Backup data"] pub type D17W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d17 (& self) -> D17R { D17R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d17 (& mut self) -> D17W < '_ , Dr17Spec > { D17W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr17::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr17::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr17Spec ; impl crate :: RegisterSpec for Dr17Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr17::R`](R) reader structure"] impl crate :: Readable for Dr17Spec { }
#[doc = "`write(|w| ..)` method takes [`dr17::W`](W) writer structure"] impl crate :: Writable for Dr17Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR17 to value 0"] impl crate :: Resettable for Dr17Spec { } }
#[doc = "DR18 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr18::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr18::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr18`] module"]
#[doc (alias = "DR18")] pub type Dr18 = crate :: Reg < dr18 :: Dr18Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr18 {
#[doc = "Register `DR18` reader"] pub type R = crate :: R < Dr18Spec > ;
#[doc = "Register `DR18` writer"] pub type W = crate :: W < Dr18Spec > ;
#[doc = "Field `D18` reader - Backup data"] pub type D18R = crate :: FieldReader < u16 > ;
#[doc = "Field `D18` writer - Backup data"] pub type D18W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d18 (& self) -> D18R { D18R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d18 (& mut self) -> D18W < '_ , Dr18Spec > { D18W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr18::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr18::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr18Spec ; impl crate :: RegisterSpec for Dr18Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr18::R`](R) reader structure"] impl crate :: Readable for Dr18Spec { }
#[doc = "`write(|w| ..)` method takes [`dr18::W`](W) writer structure"] impl crate :: Writable for Dr18Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR18 to value 0"] impl crate :: Resettable for Dr18Spec { } }
#[doc = "DR19 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr19::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr19::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr19`] module"]
#[doc (alias = "DR19")] pub type Dr19 = crate :: Reg < dr19 :: Dr19Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr19 {
#[doc = "Register `DR19` reader"] pub type R = crate :: R < Dr19Spec > ;
#[doc = "Register `DR19` writer"] pub type W = crate :: W < Dr19Spec > ;
#[doc = "Field `D19` reader - Backup data"] pub type D19R = crate :: FieldReader < u16 > ;
#[doc = "Field `D19` writer - Backup data"] pub type D19W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d19 (& self) -> D19R { D19R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d19 (& mut self) -> D19W < '_ , Dr19Spec > { D19W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr19::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr19::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr19Spec ; impl crate :: RegisterSpec for Dr19Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr19::R`](R) reader structure"] impl crate :: Readable for Dr19Spec { }
#[doc = "`write(|w| ..)` method takes [`dr19::W`](W) writer structure"] impl crate :: Writable for Dr19Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR19 to value 0"] impl crate :: Resettable for Dr19Spec { } }
#[doc = "DR20 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr20::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr20::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr20`] module"]
#[doc (alias = "DR20")] pub type Dr20 = crate :: Reg < dr20 :: Dr20Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr20 {
#[doc = "Register `DR20` reader"] pub type R = crate :: R < Dr20Spec > ;
#[doc = "Register `DR20` writer"] pub type W = crate :: W < Dr20Spec > ;
#[doc = "Field `D20` reader - Backup data"] pub type D20R = crate :: FieldReader < u16 > ;
#[doc = "Field `D20` writer - Backup data"] pub type D20W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d20 (& self) -> D20R { D20R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d20 (& mut self) -> D20W < '_ , Dr20Spec > { D20W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr20::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr20::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr20Spec ; impl crate :: RegisterSpec for Dr20Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr20::R`](R) reader structure"] impl crate :: Readable for Dr20Spec { }
#[doc = "`write(|w| ..)` method takes [`dr20::W`](W) writer structure"] impl crate :: Writable for Dr20Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR20 to value 0"] impl crate :: Resettable for Dr20Spec { } }
#[doc = "DR21 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr21::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr21::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr21`] module"]
#[doc (alias = "DR21")] pub type Dr21 = crate :: Reg < dr21 :: Dr21Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr21 {
#[doc = "Register `DR21` reader"] pub type R = crate :: R < Dr21Spec > ;
#[doc = "Register `DR21` writer"] pub type W = crate :: W < Dr21Spec > ;
#[doc = "Field `D21` reader - Backup data"] pub type D21R = crate :: FieldReader < u16 > ;
#[doc = "Field `D21` writer - Backup data"] pub type D21W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d21 (& self) -> D21R { D21R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d21 (& mut self) -> D21W < '_ , Dr21Spec > { D21W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr21::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr21::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr21Spec ; impl crate :: RegisterSpec for Dr21Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr21::R`](R) reader structure"] impl crate :: Readable for Dr21Spec { }
#[doc = "`write(|w| ..)` method takes [`dr21::W`](W) writer structure"] impl crate :: Writable for Dr21Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR21 to value 0"] impl crate :: Resettable for Dr21Spec { } }
#[doc = "DR22 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr22::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr22::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr22`] module"]
#[doc (alias = "DR22")] pub type Dr22 = crate :: Reg < dr22 :: Dr22Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr22 {
#[doc = "Register `DR22` reader"] pub type R = crate :: R < Dr22Spec > ;
#[doc = "Register `DR22` writer"] pub type W = crate :: W < Dr22Spec > ;
#[doc = "Field `D22` reader - Backup data"] pub type D22R = crate :: FieldReader < u16 > ;
#[doc = "Field `D22` writer - Backup data"] pub type D22W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d22 (& self) -> D22R { D22R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d22 (& mut self) -> D22W < '_ , Dr22Spec > { D22W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr22::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr22::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr22Spec ; impl crate :: RegisterSpec for Dr22Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr22::R`](R) reader structure"] impl crate :: Readable for Dr22Spec { }
#[doc = "`write(|w| ..)` method takes [`dr22::W`](W) writer structure"] impl crate :: Writable for Dr22Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR22 to value 0"] impl crate :: Resettable for Dr22Spec { } }
#[doc = "DR23 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr23::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr23::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr23`] module"]
#[doc (alias = "DR23")] pub type Dr23 = crate :: Reg < dr23 :: Dr23Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr23 {
#[doc = "Register `DR23` reader"] pub type R = crate :: R < Dr23Spec > ;
#[doc = "Register `DR23` writer"] pub type W = crate :: W < Dr23Spec > ;
#[doc = "Field `D23` reader - Backup data"] pub type D23R = crate :: FieldReader < u16 > ;
#[doc = "Field `D23` writer - Backup data"] pub type D23W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d23 (& self) -> D23R { D23R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d23 (& mut self) -> D23W < '_ , Dr23Spec > { D23W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr23::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr23::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr23Spec ; impl crate :: RegisterSpec for Dr23Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr23::R`](R) reader structure"] impl crate :: Readable for Dr23Spec { }
#[doc = "`write(|w| ..)` method takes [`dr23::W`](W) writer structure"] impl crate :: Writable for Dr23Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR23 to value 0"] impl crate :: Resettable for Dr23Spec { } }
#[doc = "DR24 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr24::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr24::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr24`] module"]
#[doc (alias = "DR24")] pub type Dr24 = crate :: Reg < dr24 :: Dr24Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr24 {
#[doc = "Register `DR24` reader"] pub type R = crate :: R < Dr24Spec > ;
#[doc = "Register `DR24` writer"] pub type W = crate :: W < Dr24Spec > ;
#[doc = "Field `D24` reader - Backup data"] pub type D24R = crate :: FieldReader < u16 > ;
#[doc = "Field `D24` writer - Backup data"] pub type D24W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d24 (& self) -> D24R { D24R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d24 (& mut self) -> D24W < '_ , Dr24Spec > { D24W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr24::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr24::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr24Spec ; impl crate :: RegisterSpec for Dr24Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr24::R`](R) reader structure"] impl crate :: Readable for Dr24Spec { }
#[doc = "`write(|w| ..)` method takes [`dr24::W`](W) writer structure"] impl crate :: Writable for Dr24Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR24 to value 0"] impl crate :: Resettable for Dr24Spec { } }
#[doc = "DR25 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr25::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr25::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr25`] module"]
#[doc (alias = "DR25")] pub type Dr25 = crate :: Reg < dr25 :: Dr25Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr25 {
#[doc = "Register `DR25` reader"] pub type R = crate :: R < Dr25Spec > ;
#[doc = "Register `DR25` writer"] pub type W = crate :: W < Dr25Spec > ;
#[doc = "Field `D25` reader - Backup data"] pub type D25R = crate :: FieldReader < u16 > ;
#[doc = "Field `D25` writer - Backup data"] pub type D25W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d25 (& self) -> D25R { D25R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d25 (& mut self) -> D25W < '_ , Dr25Spec > { D25W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr25::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr25::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr25Spec ; impl crate :: RegisterSpec for Dr25Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr25::R`](R) reader structure"] impl crate :: Readable for Dr25Spec { }
#[doc = "`write(|w| ..)` method takes [`dr25::W`](W) writer structure"] impl crate :: Writable for Dr25Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR25 to value 0"] impl crate :: Resettable for Dr25Spec { } }
#[doc = "DR26 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr26::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr26::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr26`] module"]
#[doc (alias = "DR26")] pub type Dr26 = crate :: Reg < dr26 :: Dr26Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr26 {
#[doc = "Register `DR26` reader"] pub type R = crate :: R < Dr26Spec > ;
#[doc = "Register `DR26` writer"] pub type W = crate :: W < Dr26Spec > ;
#[doc = "Field `D26` reader - Backup data"] pub type D26R = crate :: FieldReader < u16 > ;
#[doc = "Field `D26` writer - Backup data"] pub type D26W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d26 (& self) -> D26R { D26R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d26 (& mut self) -> D26W < '_ , Dr26Spec > { D26W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr26::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr26::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr26Spec ; impl crate :: RegisterSpec for Dr26Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr26::R`](R) reader structure"] impl crate :: Readable for Dr26Spec { }
#[doc = "`write(|w| ..)` method takes [`dr26::W`](W) writer structure"] impl crate :: Writable for Dr26Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR26 to value 0"] impl crate :: Resettable for Dr26Spec { } }
#[doc = "DR27 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr27::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr27::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr27`] module"]
#[doc (alias = "DR27")] pub type Dr27 = crate :: Reg < dr27 :: Dr27Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr27 {
#[doc = "Register `DR27` reader"] pub type R = crate :: R < Dr27Spec > ;
#[doc = "Register `DR27` writer"] pub type W = crate :: W < Dr27Spec > ;
#[doc = "Field `D27` reader - Backup data"] pub type D27R = crate :: FieldReader < u16 > ;
#[doc = "Field `D27` writer - Backup data"] pub type D27W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d27 (& self) -> D27R { D27R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d27 (& mut self) -> D27W < '_ , Dr27Spec > { D27W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr27::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr27::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr27Spec ; impl crate :: RegisterSpec for Dr27Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr27::R`](R) reader structure"] impl crate :: Readable for Dr27Spec { }
#[doc = "`write(|w| ..)` method takes [`dr27::W`](W) writer structure"] impl crate :: Writable for Dr27Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR27 to value 0"] impl crate :: Resettable for Dr27Spec { } }
#[doc = "DR28 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr28::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr28::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr28`] module"]
#[doc (alias = "DR28")] pub type Dr28 = crate :: Reg < dr28 :: Dr28Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr28 {
#[doc = "Register `DR28` reader"] pub type R = crate :: R < Dr28Spec > ;
#[doc = "Register `DR28` writer"] pub type W = crate :: W < Dr28Spec > ;
#[doc = "Field `D28` reader - Backup data"] pub type D28R = crate :: FieldReader < u16 > ;
#[doc = "Field `D28` writer - Backup data"] pub type D28W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d28 (& self) -> D28R { D28R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d28 (& mut self) -> D28W < '_ , Dr28Spec > { D28W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr28::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr28::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr28Spec ; impl crate :: RegisterSpec for Dr28Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr28::R`](R) reader structure"] impl crate :: Readable for Dr28Spec { }
#[doc = "`write(|w| ..)` method takes [`dr28::W`](W) writer structure"] impl crate :: Writable for Dr28Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR28 to value 0"] impl crate :: Resettable for Dr28Spec { } }
#[doc = "DR29 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr29::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr29::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr29`] module"]
#[doc (alias = "DR29")] pub type Dr29 = crate :: Reg < dr29 :: Dr29Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr29 {
#[doc = "Register `DR29` reader"] pub type R = crate :: R < Dr29Spec > ;
#[doc = "Register `DR29` writer"] pub type W = crate :: W < Dr29Spec > ;
#[doc = "Field `D29` reader - Backup data"] pub type D29R = crate :: FieldReader < u16 > ;
#[doc = "Field `D29` writer - Backup data"] pub type D29W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d29 (& self) -> D29R { D29R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d29 (& mut self) -> D29W < '_ , Dr29Spec > { D29W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr29::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr29::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr29Spec ; impl crate :: RegisterSpec for Dr29Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr29::R`](R) reader structure"] impl crate :: Readable for Dr29Spec { }
#[doc = "`write(|w| ..)` method takes [`dr29::W`](W) writer structure"] impl crate :: Writable for Dr29Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR29 to value 0"] impl crate :: Resettable for Dr29Spec { } }
#[doc = "DR30 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr30::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr30::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr30`] module"]
#[doc (alias = "DR30")] pub type Dr30 = crate :: Reg < dr30 :: Dr30Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr30 {
#[doc = "Register `DR30` reader"] pub type R = crate :: R < Dr30Spec > ;
#[doc = "Register `DR30` writer"] pub type W = crate :: W < Dr30Spec > ;
#[doc = "Field `D30` reader - Backup data"] pub type D30R = crate :: FieldReader < u16 > ;
#[doc = "Field `D30` writer - Backup data"] pub type D30W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d30 (& self) -> D30R { D30R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d30 (& mut self) -> D30W < '_ , Dr30Spec > { D30W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr30::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr30::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr30Spec ; impl crate :: RegisterSpec for Dr30Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr30::R`](R) reader structure"] impl crate :: Readable for Dr30Spec { }
#[doc = "`write(|w| ..)` method takes [`dr30::W`](W) writer structure"] impl crate :: Writable for Dr30Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR30 to value 0"] impl crate :: Resettable for Dr30Spec { } }
#[doc = "DR31 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr31::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr31::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr31`] module"]
#[doc (alias = "DR31")] pub type Dr31 = crate :: Reg < dr31 :: Dr31Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr31 {
#[doc = "Register `DR31` reader"] pub type R = crate :: R < Dr31Spec > ;
#[doc = "Register `DR31` writer"] pub type W = crate :: W < Dr31Spec > ;
#[doc = "Field `D31` reader - Backup data"] pub type D31R = crate :: FieldReader < u16 > ;
#[doc = "Field `D31` writer - Backup data"] pub type D31W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d31 (& self) -> D31R { D31R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d31 (& mut self) -> D31W < '_ , Dr31Spec > { D31W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr31::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr31::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr31Spec ; impl crate :: RegisterSpec for Dr31Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr31::R`](R) reader structure"] impl crate :: Readable for Dr31Spec { }
#[doc = "`write(|w| ..)` method takes [`dr31::W`](W) writer structure"] impl crate :: Writable for Dr31Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR31 to value 0"] impl crate :: Resettable for Dr31Spec { } }
#[doc = "DR32 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr32::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr32::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr32`] module"]
#[doc (alias = "DR32")] pub type Dr32 = crate :: Reg < dr32 :: Dr32Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr32 {
#[doc = "Register `DR32` reader"] pub type R = crate :: R < Dr32Spec > ;
#[doc = "Register `DR32` writer"] pub type W = crate :: W < Dr32Spec > ;
#[doc = "Field `D32` reader - Backup data"] pub type D32R = crate :: FieldReader < u16 > ;
#[doc = "Field `D32` writer - Backup data"] pub type D32W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d32 (& self) -> D32R { D32R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d32 (& mut self) -> D32W < '_ , Dr32Spec > { D32W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr32::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr32::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr32Spec ; impl crate :: RegisterSpec for Dr32Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr32::R`](R) reader structure"] impl crate :: Readable for Dr32Spec { }
#[doc = "`write(|w| ..)` method takes [`dr32::W`](W) writer structure"] impl crate :: Writable for Dr32Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR32 to value 0"] impl crate :: Resettable for Dr32Spec { } }
#[doc = "DR33 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr33::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr33::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr33`] module"]
#[doc (alias = "DR33")] pub type Dr33 = crate :: Reg < dr33 :: Dr33Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr33 {
#[doc = "Register `DR33` reader"] pub type R = crate :: R < Dr33Spec > ;
#[doc = "Register `DR33` writer"] pub type W = crate :: W < Dr33Spec > ;
#[doc = "Field `D33` reader - Backup data"] pub type D33R = crate :: FieldReader < u16 > ;
#[doc = "Field `D33` writer - Backup data"] pub type D33W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d33 (& self) -> D33R { D33R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d33 (& mut self) -> D33W < '_ , Dr33Spec > { D33W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr33::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr33::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr33Spec ; impl crate :: RegisterSpec for Dr33Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr33::R`](R) reader structure"] impl crate :: Readable for Dr33Spec { }
#[doc = "`write(|w| ..)` method takes [`dr33::W`](W) writer structure"] impl crate :: Writable for Dr33Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR33 to value 0"] impl crate :: Resettable for Dr33Spec { } }
#[doc = "DR34 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr34::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr34::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr34`] module"]
#[doc (alias = "DR34")] pub type Dr34 = crate :: Reg < dr34 :: Dr34Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr34 {
#[doc = "Register `DR34` reader"] pub type R = crate :: R < Dr34Spec > ;
#[doc = "Register `DR34` writer"] pub type W = crate :: W < Dr34Spec > ;
#[doc = "Field `D34` reader - Backup data"] pub type D34R = crate :: FieldReader < u16 > ;
#[doc = "Field `D34` writer - Backup data"] pub type D34W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d34 (& self) -> D34R { D34R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d34 (& mut self) -> D34W < '_ , Dr34Spec > { D34W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr34::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr34::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr34Spec ; impl crate :: RegisterSpec for Dr34Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr34::R`](R) reader structure"] impl crate :: Readable for Dr34Spec { }
#[doc = "`write(|w| ..)` method takes [`dr34::W`](W) writer structure"] impl crate :: Writable for Dr34Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR34 to value 0"] impl crate :: Resettable for Dr34Spec { } }
#[doc = "DR35 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr35::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr35::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr35`] module"]
#[doc (alias = "DR35")] pub type Dr35 = crate :: Reg < dr35 :: Dr35Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr35 {
#[doc = "Register `DR35` reader"] pub type R = crate :: R < Dr35Spec > ;
#[doc = "Register `DR35` writer"] pub type W = crate :: W < Dr35Spec > ;
#[doc = "Field `D35` reader - Backup data"] pub type D35R = crate :: FieldReader < u16 > ;
#[doc = "Field `D35` writer - Backup data"] pub type D35W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d35 (& self) -> D35R { D35R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d35 (& mut self) -> D35W < '_ , Dr35Spec > { D35W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr35::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr35::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr35Spec ; impl crate :: RegisterSpec for Dr35Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr35::R`](R) reader structure"] impl crate :: Readable for Dr35Spec { }
#[doc = "`write(|w| ..)` method takes [`dr35::W`](W) writer structure"] impl crate :: Writable for Dr35Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR35 to value 0"] impl crate :: Resettable for Dr35Spec { } }
#[doc = "DR36 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr36::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr36::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr36`] module"]
#[doc (alias = "DR36")] pub type Dr36 = crate :: Reg < dr36 :: Dr36Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr36 {
#[doc = "Register `DR36` reader"] pub type R = crate :: R < Dr36Spec > ;
#[doc = "Register `DR36` writer"] pub type W = crate :: W < Dr36Spec > ;
#[doc = "Field `D36` reader - Backup data"] pub type D36R = crate :: FieldReader < u16 > ;
#[doc = "Field `D36` writer - Backup data"] pub type D36W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d36 (& self) -> D36R { D36R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d36 (& mut self) -> D36W < '_ , Dr36Spec > { D36W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr36::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr36::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr36Spec ; impl crate :: RegisterSpec for Dr36Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr36::R`](R) reader structure"] impl crate :: Readable for Dr36Spec { }
#[doc = "`write(|w| ..)` method takes [`dr36::W`](W) writer structure"] impl crate :: Writable for Dr36Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR36 to value 0"] impl crate :: Resettable for Dr36Spec { } }
#[doc = "DR37 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr37::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr37::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr37`] module"]
#[doc (alias = "DR37")] pub type Dr37 = crate :: Reg < dr37 :: Dr37Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr37 {
#[doc = "Register `DR37` reader"] pub type R = crate :: R < Dr37Spec > ;
#[doc = "Register `DR37` writer"] pub type W = crate :: W < Dr37Spec > ;
#[doc = "Field `D37` reader - Backup data"] pub type D37R = crate :: FieldReader < u16 > ;
#[doc = "Field `D37` writer - Backup data"] pub type D37W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d37 (& self) -> D37R { D37R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d37 (& mut self) -> D37W < '_ , Dr37Spec > { D37W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr37::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr37::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr37Spec ; impl crate :: RegisterSpec for Dr37Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr37::R`](R) reader structure"] impl crate :: Readable for Dr37Spec { }
#[doc = "`write(|w| ..)` method takes [`dr37::W`](W) writer structure"] impl crate :: Writable for Dr37Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR37 to value 0"] impl crate :: Resettable for Dr37Spec { } }
#[doc = "DR38 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr38::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr38::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr38`] module"]
#[doc (alias = "DR38")] pub type Dr38 = crate :: Reg < dr38 :: Dr38Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr38 {
#[doc = "Register `DR38` reader"] pub type R = crate :: R < Dr38Spec > ;
#[doc = "Register `DR38` writer"] pub type W = crate :: W < Dr38Spec > ;
#[doc = "Field `D38` reader - Backup data"] pub type D38R = crate :: FieldReader < u16 > ;
#[doc = "Field `D38` writer - Backup data"] pub type D38W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d38 (& self) -> D38R { D38R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d38 (& mut self) -> D38W < '_ , Dr38Spec > { D38W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr38::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr38::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr38Spec ; impl crate :: RegisterSpec for Dr38Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr38::R`](R) reader structure"] impl crate :: Readable for Dr38Spec { }
#[doc = "`write(|w| ..)` method takes [`dr38::W`](W) writer structure"] impl crate :: Writable for Dr38Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR38 to value 0"] impl crate :: Resettable for Dr38Spec { } }
#[doc = "DR39 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr39::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr39::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr39`] module"]
#[doc (alias = "DR39")] pub type Dr39 = crate :: Reg < dr39 :: Dr39Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr39 {
#[doc = "Register `DR39` reader"] pub type R = crate :: R < Dr39Spec > ;
#[doc = "Register `DR39` writer"] pub type W = crate :: W < Dr39Spec > ;
#[doc = "Field `D39` reader - Backup data"] pub type D39R = crate :: FieldReader < u16 > ;
#[doc = "Field `D39` writer - Backup data"] pub type D39W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d39 (& self) -> D39R { D39R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d39 (& mut self) -> D39W < '_ , Dr39Spec > { D39W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr39::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr39::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr39Spec ; impl crate :: RegisterSpec for Dr39Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr39::R`](R) reader structure"] impl crate :: Readable for Dr39Spec { }
#[doc = "`write(|w| ..)` method takes [`dr39::W`](W) writer structure"] impl crate :: Writable for Dr39Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR39 to value 0"] impl crate :: Resettable for Dr39Spec { } }
#[doc = "DR40 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr40::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr40::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr40`] module"]
#[doc (alias = "DR40")] pub type Dr40 = crate :: Reg < dr40 :: Dr40Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr40 {
#[doc = "Register `DR40` reader"] pub type R = crate :: R < Dr40Spec > ;
#[doc = "Register `DR40` writer"] pub type W = crate :: W < Dr40Spec > ;
#[doc = "Field `D40` reader - Backup data"] pub type D40R = crate :: FieldReader < u16 > ;
#[doc = "Field `D40` writer - Backup data"] pub type D40W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d40 (& self) -> D40R { D40R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d40 (& mut self) -> D40W < '_ , Dr40Spec > { D40W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr40::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr40::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr40Spec ; impl crate :: RegisterSpec for Dr40Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr40::R`](R) reader structure"] impl crate :: Readable for Dr40Spec { }
#[doc = "`write(|w| ..)` method takes [`dr40::W`](W) writer structure"] impl crate :: Writable for Dr40Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR40 to value 0"] impl crate :: Resettable for Dr40Spec { } }
#[doc = "DR41 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr41::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr41::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr41`] module"]
#[doc (alias = "DR41")] pub type Dr41 = crate :: Reg < dr41 :: Dr41Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr41 {
#[doc = "Register `DR41` reader"] pub type R = crate :: R < Dr41Spec > ;
#[doc = "Register `DR41` writer"] pub type W = crate :: W < Dr41Spec > ;
#[doc = "Field `D41` reader - Backup data"] pub type D41R = crate :: FieldReader < u16 > ;
#[doc = "Field `D41` writer - Backup data"] pub type D41W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d41 (& self) -> D41R { D41R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d41 (& mut self) -> D41W < '_ , Dr41Spec > { D41W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr41::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr41::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr41Spec ; impl crate :: RegisterSpec for Dr41Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr41::R`](R) reader structure"] impl crate :: Readable for Dr41Spec { }
#[doc = "`write(|w| ..)` method takes [`dr41::W`](W) writer structure"] impl crate :: Writable for Dr41Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR41 to value 0"] impl crate :: Resettable for Dr41Spec { } }
#[doc = "DR42 (rw) register accessor: Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr42::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr42::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr42`] module"]
#[doc (alias = "DR42")] pub type Dr42 = crate :: Reg < dr42 :: Dr42Spec > ;
#[doc = "Backup data register (BKP_DR)"] pub mod dr42 {
#[doc = "Register `DR42` reader"] pub type R = crate :: R < Dr42Spec > ;
#[doc = "Register `DR42` writer"] pub type W = crate :: W < Dr42Spec > ;
#[doc = "Field `D42` reader - Backup data"] pub type D42R = crate :: FieldReader < u16 > ;
#[doc = "Field `D42` writer - Backup data"] pub type D42W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d42 (& self) -> D42R { D42R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Backup data"]
#[inline (always)] pub fn d42 (& mut self) -> D42W < '_ , Dr42Spec > { D42W :: new (self , 0) } }
#[doc = "Backup data register (BKP_DR)\n\nYou can [`read`](crate::Reg::read) this register and get [`dr42::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr42::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dr42Spec ; impl crate :: RegisterSpec for Dr42Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr42::R`](R) reader structure"] impl crate :: Readable for Dr42Spec { }
#[doc = "`write(|w| ..)` method takes [`dr42::W`](W) writer structure"] impl crate :: Writable for Dr42Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR42 to value 0"] impl crate :: Resettable for Dr42Spec { } }
#[doc = "RTCCR (rw) register accessor: RTC clock calibration register (BKP_RTCCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`rtccr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtccr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rtccr`] module"]
#[doc (alias = "RTCCR")] pub type Rtccr = crate :: Reg < rtccr :: RtccrSpec > ;
#[doc = "RTC clock calibration register (BKP_RTCCR)"] pub mod rtccr {
#[doc = "Register `RTCCR` reader"] pub type R = crate :: R < RtccrSpec > ;
#[doc = "Register `RTCCR` writer"] pub type W = crate :: W < RtccrSpec > ;
#[doc = "Field `CAL` reader - Calibration value"] pub type CalR = crate :: FieldReader ;
#[doc = "Field `CAL` writer - Calibration value"] pub type CalW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `CCO` reader - Calibration Clock Output"] pub type CcoR = crate :: BitReader ;
#[doc = "Field `CCO` writer - Calibration Clock Output"] pub type CcoW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ASOE` reader - Alarm or second output enable"] pub type AsoeR = crate :: BitReader ;
#[doc = "Field `ASOE` writer - Alarm or second output enable"] pub type AsoeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ASOS` reader - Alarm or second output selection"] pub type AsosR = crate :: BitReader ;
#[doc = "Field `ASOS` writer - Alarm or second output selection"] pub type AsosW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:6 - Calibration value"]
#[inline (always)] pub fn cal (& self) -> CalR { CalR :: new ((self . bits & 0x7f) as u8) }
#[doc = "Bit 7 - Calibration Clock Output"]
#[inline (always)] pub fn cco (& self) -> CcoR { CcoR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Alarm or second output enable"]
#[inline (always)] pub fn asoe (& self) -> AsoeR { AsoeR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Alarm or second output selection"]
#[inline (always)] pub fn asos (& self) -> AsosR { AsosR :: new (((self . bits >> 9) & 1) != 0) } } impl W {
#[doc = "Bits 0:6 - Calibration value"]
#[inline (always)] pub fn cal (& mut self) -> CalW < '_ , RtccrSpec > { CalW :: new (self , 0) }
#[doc = "Bit 7 - Calibration Clock Output"]
#[inline (always)] pub fn cco (& mut self) -> CcoW < '_ , RtccrSpec > { CcoW :: new (self , 7) }
#[doc = "Bit 8 - Alarm or second output enable"]
#[inline (always)] pub fn asoe (& mut self) -> AsoeW < '_ , RtccrSpec > { AsoeW :: new (self , 8) }
#[doc = "Bit 9 - Alarm or second output selection"]
#[inline (always)] pub fn asos (& mut self) -> AsosW < '_ , RtccrSpec > { AsosW :: new (self , 9) } }
#[doc = "RTC clock calibration register (BKP_RTCCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`rtccr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtccr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct RtccrSpec ; impl crate :: RegisterSpec for RtccrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`rtccr::R`](R) reader structure"] impl crate :: Readable for RtccrSpec { }
#[doc = "`write(|w| ..)` method takes [`rtccr::W`](W) writer structure"] impl crate :: Writable for RtccrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets RTCCR to value 0"] impl crate :: Resettable for RtccrSpec { } }
#[doc = "CR (rw) register accessor: Backup control register (BKP_CR)\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr`] module"]
#[doc (alias = "CR")] pub type Cr = crate :: Reg < cr :: CrSpec > ;
#[doc = "Backup control register (BKP_CR)"] pub mod cr {
#[doc = "Register `CR` reader"] pub type R = crate :: R < CrSpec > ;
#[doc = "Register `CR` writer"] pub type W = crate :: W < CrSpec > ;
#[doc = "Field `TPE` reader - Tamper pin enable"] pub type TpeR = crate :: BitReader ;
#[doc = "Field `TPE` writer - Tamper pin enable"] pub type TpeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TPAL` reader - Tamper pin active level"] pub type TpalR = crate :: BitReader ;
#[doc = "Field `TPAL` writer - Tamper pin active level"] pub type TpalW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Tamper pin enable"]
#[inline (always)] pub fn tpe (& self) -> TpeR { TpeR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Tamper pin active level"]
#[inline (always)] pub fn tpal (& self) -> TpalR { TpalR :: new (((self . bits >> 1) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Tamper pin enable"]
#[inline (always)] pub fn tpe (& mut self) -> TpeW < '_ , CrSpec > { TpeW :: new (self , 0) }
#[doc = "Bit 1 - Tamper pin active level"]
#[inline (always)] pub fn tpal (& mut self) -> TpalW < '_ , CrSpec > { TpalW :: new (self , 1) } }
#[doc = "Backup control register (BKP_CR)\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CrSpec ; impl crate :: RegisterSpec for CrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr::R`](R) reader structure"] impl crate :: Readable for CrSpec { }
#[doc = "`write(|w| ..)` method takes [`cr::W`](W) writer structure"] impl crate :: Writable for CrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR to value 0"] impl crate :: Resettable for CrSpec { } }
#[doc = "CSR (rw) register accessor: BKP_CSR control/status register (BKP_CSR)\n\nYou can [`read`](crate::Reg::read) this register and get [`csr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`csr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@csr`] module"]
#[doc (alias = "CSR")] pub type Csr = crate :: Reg < csr :: CsrSpec > ;
#[doc = "BKP_CSR control/status register (BKP_CSR)"] pub mod csr {
#[doc = "Register `CSR` reader"] pub type R = crate :: R < CsrSpec > ;
#[doc = "Register `CSR` writer"] pub type W = crate :: W < CsrSpec > ;
#[doc = "Field `CTE` writer - Clear Tamper event"] pub type CteW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTI` writer - Clear Tamper Interrupt"] pub type CtiW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TPIE` reader - Tamper Pin interrupt enable"] pub type TpieR = crate :: BitReader ;
#[doc = "Field `TPIE` writer - Tamper Pin interrupt enable"] pub type TpieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TEF` reader - Tamper Event Flag"] pub type TefR = crate :: BitReader ;
#[doc = "Field `TIF` reader - Tamper Interrupt Flag"] pub type TifR = crate :: BitReader ; impl R {
#[doc = "Bit 2 - Tamper Pin interrupt enable"]
#[inline (always)] pub fn tpie (& self) -> TpieR { TpieR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 8 - Tamper Event Flag"]
#[inline (always)] pub fn tef (& self) -> TefR { TefR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Tamper Interrupt Flag"]
#[inline (always)] pub fn tif (& self) -> TifR { TifR :: new (((self . bits >> 9) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Clear Tamper event"]
#[inline (always)] pub fn cte (& mut self) -> CteW < '_ , CsrSpec > { CteW :: new (self , 0) }
#[doc = "Bit 1 - Clear Tamper Interrupt"]
#[inline (always)] pub fn cti (& mut self) -> CtiW < '_ , CsrSpec > { CtiW :: new (self , 1) }
#[doc = "Bit 2 - Tamper Pin interrupt enable"]
#[inline (always)] pub fn tpie (& mut self) -> TpieW < '_ , CsrSpec > { TpieW :: new (self , 2) } }
#[doc = "BKP_CSR control/status register (BKP_CSR)\n\nYou can [`read`](crate::Reg::read) this register and get [`csr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`csr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CsrSpec ; impl crate :: RegisterSpec for CsrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`csr::R`](R) reader structure"] impl crate :: Readable for CsrSpec { }
#[doc = "`write(|w| ..)` method takes [`csr::W`](W) writer structure"] impl crate :: Writable for CsrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CSR to value 0"] impl crate :: Resettable for CsrSpec { } } }
#[doc = "Independent watchdog"] pub type Iwdg = crate :: Periph < iwdg :: RegisterBlock , 0x4000_3000 > ; impl core :: fmt :: Debug for Iwdg { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Iwdg") . finish () } }
#[doc = "Independent watchdog"] pub mod iwdg {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { kr : Kr , pr : Pr , rlr : Rlr , sr : Sr , } impl RegisterBlock {
#[doc = "0x00 - Key register (IWDG_KR)"]
#[inline (always)] pub const fn kr (& self) -> & Kr { & self . kr }
#[doc = "0x04 - Prescaler register (IWDG_PR)"]
#[inline (always)] pub const fn pr (& self) -> & Pr { & self . pr }
#[doc = "0x08 - Reload register (IWDG_RLR)"]
#[inline (always)] pub const fn rlr (& self) -> & Rlr { & self . rlr }
#[doc = "0x0c - Status register (IWDG_SR)"]
#[inline (always)] pub const fn sr (& self) -> & Sr { & self . sr } }
#[doc = "KR (w) register accessor: Key register (IWDG_KR)\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`kr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@kr`] module"]
#[doc (alias = "KR")] pub type Kr = crate :: Reg < kr :: KrSpec > ;
#[doc = "Key register (IWDG_KR)"] pub mod kr {
#[doc = "Register `KR` writer"] pub type W = crate :: W < KrSpec > ;
#[doc = "Field `KEY` writer - Key value"] pub type KeyW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl W {
#[doc = "Bits 0:15 - Key value"]
#[inline (always)] pub fn key (& mut self) -> KeyW < '_ , KrSpec > { KeyW :: new (self , 0) } }
#[doc = "Key register (IWDG_KR)\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`kr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct KrSpec ; impl crate :: RegisterSpec for KrSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`kr::W`](W) writer structure"] impl crate :: Writable for KrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets KR to value 0"] impl crate :: Resettable for KrSpec { } }
#[doc = "PR (rw) register accessor: Prescaler register (IWDG_PR)\n\nYou can [`read`](crate::Reg::read) this register and get [`pr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pr`] module"]
#[doc (alias = "PR")] pub type Pr = crate :: Reg < pr :: PrSpec > ;
#[doc = "Prescaler register (IWDG_PR)"] pub mod pr {
#[doc = "Register `PR` reader"] pub type R = crate :: R < PrSpec > ;
#[doc = "Register `PR` writer"] pub type W = crate :: W < PrSpec > ;
#[doc = "Field `PR` reader - Prescaler divider"] pub type PrR = crate :: FieldReader ;
#[doc = "Field `PR` writer - Prescaler divider"] pub type PrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bits 0:2 - Prescaler divider"]
#[inline (always)] pub fn pr (& self) -> PrR { PrR :: new ((self . bits & 7) as u8) } } impl W {
#[doc = "Bits 0:2 - Prescaler divider"]
#[inline (always)] pub fn pr (& mut self) -> PrW < '_ , PrSpec > { PrW :: new (self , 0) } }
#[doc = "Prescaler register (IWDG_PR)\n\nYou can [`read`](crate::Reg::read) this register and get [`pr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PrSpec ; impl crate :: RegisterSpec for PrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`pr::R`](R) reader structure"] impl crate :: Readable for PrSpec { }
#[doc = "`write(|w| ..)` method takes [`pr::W`](W) writer structure"] impl crate :: Writable for PrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PR to value 0"] impl crate :: Resettable for PrSpec { } }
#[doc = "RLR (rw) register accessor: Reload register (IWDG_RLR)\n\nYou can [`read`](crate::Reg::read) this register and get [`rlr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rlr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rlr`] module"]
#[doc (alias = "RLR")] pub type Rlr = crate :: Reg < rlr :: RlrSpec > ;
#[doc = "Reload register (IWDG_RLR)"] pub mod rlr {
#[doc = "Register `RLR` reader"] pub type R = crate :: R < RlrSpec > ;
#[doc = "Register `RLR` writer"] pub type W = crate :: W < RlrSpec > ;
#[doc = "Field `RL` reader - Watchdog counter reload value"] pub type RlR = crate :: FieldReader < u16 > ;
#[doc = "Field `RL` writer - Watchdog counter reload value"] pub type RlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - Watchdog counter reload value"]
#[inline (always)] pub fn rl (& self) -> RlR { RlR :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - Watchdog counter reload value"]
#[inline (always)] pub fn rl (& mut self) -> RlW < '_ , RlrSpec > { RlW :: new (self , 0) } }
#[doc = "Reload register (IWDG_RLR)\n\nYou can [`read`](crate::Reg::read) this register and get [`rlr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rlr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct RlrSpec ; impl crate :: RegisterSpec for RlrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`rlr::R`](R) reader structure"] impl crate :: Readable for RlrSpec { }
#[doc = "`write(|w| ..)` method takes [`rlr::W`](W) writer structure"] impl crate :: Writable for RlrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets RLR to value 0x0fff"] impl crate :: Resettable for RlrSpec { const RESET_VALUE : u32 = 0x0fff ; } }
#[doc = "SR (r) register accessor: Status register (IWDG_SR)\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`] module"]
#[doc (alias = "SR")] pub type Sr = crate :: Reg < sr :: SrSpec > ;
#[doc = "Status register (IWDG_SR)"] pub mod sr {
#[doc = "Register `SR` reader"] pub type R = crate :: R < SrSpec > ;
#[doc = "Field `PVU` reader - Watchdog prescaler value update"] pub type PvuR = crate :: BitReader ;
#[doc = "Field `RVU` reader - Watchdog counter reload value update"] pub type RvuR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - Watchdog prescaler value update"]
#[inline (always)] pub fn pvu (& self) -> PvuR { PvuR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Watchdog counter reload value update"]
#[inline (always)] pub fn rvu (& self) -> RvuR { RvuR :: new (((self . bits >> 1) & 1) != 0) } }
#[doc = "Status register (IWDG_SR)\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec ; impl crate :: RegisterSpec for SrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate :: Readable for SrSpec { }
#[doc = "`reset()` method sets SR to value 0"] impl crate :: Resettable for SrSpec { } } }
#[doc = "Window watchdog"] pub type Wwdg = crate :: Periph < wwdg :: RegisterBlock , 0x4000_2c00 > ; impl core :: fmt :: Debug for Wwdg { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Wwdg") . finish () } }
#[doc = "Window watchdog"] pub mod wwdg {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { cr : Cr , cfr : Cfr , sr : Sr , } impl RegisterBlock {
#[doc = "0x00 - Control register (WWDG_CR)"]
#[inline (always)] pub const fn cr (& self) -> & Cr { & self . cr }
#[doc = "0x04 - Configuration register (WWDG_CFR)"]
#[inline (always)] pub const fn cfr (& self) -> & Cfr { & self . cfr }
#[doc = "0x08 - Status register (WWDG_SR)"]
#[inline (always)] pub const fn sr (& self) -> & Sr { & self . sr } }
#[doc = "CR (rw) register accessor: Control register (WWDG_CR)\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr`] module"]
#[doc (alias = "CR")] pub type Cr = crate :: Reg < cr :: CrSpec > ;
#[doc = "Control register (WWDG_CR)"] pub mod cr {
#[doc = "Register `CR` reader"] pub type R = crate :: R < CrSpec > ;
#[doc = "Register `CR` writer"] pub type W = crate :: W < CrSpec > ;
#[doc = "Field `T` reader - 7-bit counter (MSB to LSB)"] pub type TR = crate :: FieldReader ;
#[doc = "Field `T` writer - 7-bit counter (MSB to LSB)"] pub type TW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `WDGA` reader - Activation bit"] pub type WdgaR = crate :: BitReader ;
#[doc = "Field `WDGA` writer - Activation bit"] pub type WdgaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:6 - 7-bit counter (MSB to LSB)"]
#[inline (always)] pub fn t (& self) -> TR { TR :: new ((self . bits & 0x7f) as u8) }
#[doc = "Bit 7 - Activation bit"]
#[inline (always)] pub fn wdga (& self) -> WdgaR { WdgaR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bits 0:6 - 7-bit counter (MSB to LSB)"]
#[inline (always)] pub fn t (& mut self) -> TW < '_ , CrSpec > { TW :: new (self , 0) }
#[doc = "Bit 7 - Activation bit"]
#[inline (always)] pub fn wdga (& mut self) -> WdgaW < '_ , CrSpec > { WdgaW :: new (self , 7) } }
#[doc = "Control register (WWDG_CR)\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CrSpec ; impl crate :: RegisterSpec for CrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr::R`](R) reader structure"] impl crate :: Readable for CrSpec { }
#[doc = "`write(|w| ..)` method takes [`cr::W`](W) writer structure"] impl crate :: Writable for CrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR to value 0x7f"] impl crate :: Resettable for CrSpec { const RESET_VALUE : u32 = 0x7f ; } }
#[doc = "CFR (rw) register accessor: Configuration register (WWDG_CFR)\n\nYou can [`read`](crate::Reg::read) this register and get [`cfr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cfr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cfr`] module"]
#[doc (alias = "CFR")] pub type Cfr = crate :: Reg < cfr :: CfrSpec > ;
#[doc = "Configuration register (WWDG_CFR)"] pub mod cfr {
#[doc = "Register `CFR` reader"] pub type R = crate :: R < CfrSpec > ;
#[doc = "Register `CFR` writer"] pub type W = crate :: W < CfrSpec > ;
#[doc = "Field `W` reader - 7-bit window value"] pub type WR = crate :: FieldReader ;
#[doc = "Field `W` writer - 7-bit window value"] pub type WW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `WDGTB` reader - Timer Base"] pub type WdgtbR = crate :: FieldReader ;
#[doc = "Field `WDGTB` writer - Timer Base"] pub type WdgtbW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `EWI` reader - Early Wakeup Interrupt"] pub type EwiR = crate :: BitReader ;
#[doc = "Field `EWI` writer - Early Wakeup Interrupt"] pub type EwiW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:6 - 7-bit window value"]
#[inline (always)] pub fn w (& self) -> WR { WR :: new ((self . bits & 0x7f) as u8) }
#[doc = "Bits 7:8 - Timer Base"]
#[inline (always)] pub fn wdgtb (& self) -> WdgtbR { WdgtbR :: new (((self . bits >> 7) & 3) as u8) }
#[doc = "Bit 9 - Early Wakeup Interrupt"]
#[inline (always)] pub fn ewi (& self) -> EwiR { EwiR :: new (((self . bits >> 9) & 1) != 0) } } impl W {
#[doc = "Bits 0:6 - 7-bit window value"]
#[inline (always)] pub fn w (& mut self) -> WW < '_ , CfrSpec > { WW :: new (self , 0) }
#[doc = "Bits 7:8 - Timer Base"]
#[inline (always)] pub fn wdgtb (& mut self) -> WdgtbW < '_ , CfrSpec > { WdgtbW :: new (self , 7) }
#[doc = "Bit 9 - Early Wakeup Interrupt"]
#[inline (always)] pub fn ewi (& mut self) -> EwiW < '_ , CfrSpec > { EwiW :: new (self , 9) } }
#[doc = "Configuration register (WWDG_CFR)\n\nYou can [`read`](crate::Reg::read) this register and get [`cfr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cfr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CfrSpec ; impl crate :: RegisterSpec for CfrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cfr::R`](R) reader structure"] impl crate :: Readable for CfrSpec { }
#[doc = "`write(|w| ..)` method takes [`cfr::W`](W) writer structure"] impl crate :: Writable for CfrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CFR to value 0x7f"] impl crate :: Resettable for CfrSpec { const RESET_VALUE : u32 = 0x7f ; } }
#[doc = "SR (rw) register accessor: Status register (WWDG_SR)\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`] module"]
#[doc (alias = "SR")] pub type Sr = crate :: Reg < sr :: SrSpec > ;
#[doc = "Status register (WWDG_SR)"] pub mod sr {
#[doc = "Register `SR` reader"] pub type R = crate :: R < SrSpec > ;
#[doc = "Register `SR` writer"] pub type W = crate :: W < SrSpec > ;
#[doc = "Field `EWI` reader - Early Wakeup Interrupt"] pub type EwiR = crate :: BitReader ;
#[doc = "Field `EWI` writer - Early Wakeup Interrupt"] pub type EwiW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Early Wakeup Interrupt"]
#[inline (always)] pub fn ewi (& self) -> EwiR { EwiR :: new ((self . bits & 1) != 0) } } impl W {
#[doc = "Bit 0 - Early Wakeup Interrupt"]
#[inline (always)] pub fn ewi (& mut self) -> EwiW < '_ , SrSpec > { EwiW :: new (self , 0) } }
#[doc = "Status register (WWDG_SR)\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec ; impl crate :: RegisterSpec for SrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate :: Readable for SrSpec { }
#[doc = "`write(|w| ..)` method takes [`sr::W`](W) writer structure"] impl crate :: Writable for SrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR to value 0"] impl crate :: Resettable for SrSpec { } } }
#[doc = "Advanced timer"] pub type Tim1 = crate :: Periph < tim1 :: RegisterBlock , 0x4001_2c00 > ; impl core :: fmt :: Debug for Tim1 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Tim1") . finish () } }
#[doc = "Advanced timer"] pub mod tim1 {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { cr1 : Cr1 , cr2 : Cr2 , smcr : Smcr , dier : Dier , sr : Sr , egr : Egr , _reserved_6_ccmr1 : [u8 ; 0x04] , _reserved_7_ccmr2 : [u8 ; 0x04] , ccer : Ccer , cnt : Cnt , psc : Psc , arr : Arr , rcr : Rcr , ccr1 : Ccr1 , ccr2 : Ccr2 , ccr3 : Ccr3 , ccr4 : Ccr4 , bdtr : Bdtr , dcr : Dcr , dmar : Dmar , } impl RegisterBlock {
#[doc = "0x00 - control register 1"]
#[inline (always)] pub const fn cr1 (& self) -> & Cr1 { & self . cr1 }
#[doc = "0x04 - control register 2"]
#[inline (always)] pub const fn cr2 (& self) -> & Cr2 { & self . cr2 }
#[doc = "0x08 - slave mode control register"]
#[inline (always)] pub const fn smcr (& self) -> & Smcr { & self . smcr }
#[doc = "0x0c - DMA/Interrupt enable register"]
#[inline (always)] pub const fn dier (& self) -> & Dier { & self . dier }
#[doc = "0x10 - status register"]
#[inline (always)] pub const fn sr (& self) -> & Sr { & self . sr }
#[doc = "0x14 - event generation register"]
#[inline (always)] pub const fn egr (& self) -> & Egr { & self . egr }
#[doc = "0x18 - capture/compare mode register 1 (input mode)"]
#[inline (always)] pub const fn ccmr1_input (& self) -> & Ccmr1Input { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (24) . cast () } }
#[doc = "0x18 - capture/compare mode register (output mode)"]
#[inline (always)] pub const fn ccmr1_output (& self) -> & Ccmr1Output { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (24) . cast () } }
#[doc = "0x1c - capture/compare mode register 2 (input mode)"]
#[inline (always)] pub const fn ccmr2_input (& self) -> & Ccmr2Input { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (28) . cast () } }
#[doc = "0x1c - capture/compare mode register (output mode)"]
#[inline (always)] pub const fn ccmr2_output (& self) -> & Ccmr2Output { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (28) . cast () } }
#[doc = "0x20 - capture/compare enable register"]
#[inline (always)] pub const fn ccer (& self) -> & Ccer { & self . ccer }
#[doc = "0x24 - counter"]
#[inline (always)] pub const fn cnt (& self) -> & Cnt { & self . cnt }
#[doc = "0x28 - prescaler"]
#[inline (always)] pub const fn psc (& self) -> & Psc { & self . psc }
#[doc = "0x2c - auto-reload register"]
#[inline (always)] pub const fn arr (& self) -> & Arr { & self . arr }
#[doc = "0x30 - repetition counter register"]
#[inline (always)] pub const fn rcr (& self) -> & Rcr { & self . rcr }
#[doc = "0x34 - capture/compare register 1"]
#[inline (always)] pub const fn ccr1 (& self) -> & Ccr1 { & self . ccr1 }
#[doc = "0x38 - capture/compare register 2"]
#[inline (always)] pub const fn ccr2 (& self) -> & Ccr2 { & self . ccr2 }
#[doc = "0x3c - capture/compare register 3"]
#[inline (always)] pub const fn ccr3 (& self) -> & Ccr3 { & self . ccr3 }
#[doc = "0x40 - capture/compare register 4"]
#[inline (always)] pub const fn ccr4 (& self) -> & Ccr4 { & self . ccr4 }
#[doc = "0x44 - break and dead-time register"]
#[inline (always)] pub const fn bdtr (& self) -> & Bdtr { & self . bdtr }
#[doc = "0x48 - DMA control register"]
#[inline (always)] pub const fn dcr (& self) -> & Dcr { & self . dcr }
#[doc = "0x4c - DMA address for full transfer"]
#[inline (always)] pub const fn dmar (& self) -> & Dmar { & self . dmar } }
#[doc = "CR1 (rw) register accessor: control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr1`] module"]
#[doc (alias = "CR1")] pub type Cr1 = crate :: Reg < cr1 :: Cr1Spec > ;
#[doc = "control register 1"] pub mod cr1 {
#[doc = "Register `CR1` reader"] pub type R = crate :: R < Cr1Spec > ;
#[doc = "Register `CR1` writer"] pub type W = crate :: W < Cr1Spec > ;
#[doc = "Field `CEN` reader - Counter enable"] pub type CenR = crate :: BitReader ;
#[doc = "Field `CEN` writer - Counter enable"] pub type CenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UDIS` reader - Update disable"] pub type UdisR = crate :: BitReader ;
#[doc = "Field `UDIS` writer - Update disable"] pub type UdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `URS` reader - Update request source"] pub type UrsR = crate :: BitReader ;
#[doc = "Field `URS` writer - Update request source"] pub type UrsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OPM` reader - One-pulse mode"] pub type OpmR = crate :: BitReader ;
#[doc = "Field `OPM` writer - One-pulse mode"] pub type OpmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DIR` reader - Direction"] pub type DirR = crate :: BitReader ;
#[doc = "Field `DIR` writer - Direction"] pub type DirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CMS` reader - Center-aligned mode selection"] pub type CmsR = crate :: FieldReader ;
#[doc = "Field `CMS` writer - Center-aligned mode selection"] pub type CmsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `ARPE` reader - Auto-reload preload enable"] pub type ArpeR = crate :: BitReader ;
#[doc = "Field `ARPE` writer - Auto-reload preload enable"] pub type ArpeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CKD` reader - Clock division"] pub type CkdR = crate :: FieldReader ;
#[doc = "Field `CKD` writer - Clock division"] pub type CkdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bit 0 - Counter enable"]
#[inline (always)] pub fn cen (& self) -> CenR { CenR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Update disable"]
#[inline (always)] pub fn udis (& self) -> UdisR { UdisR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Update request source"]
#[inline (always)] pub fn urs (& self) -> UrsR { UrsR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - One-pulse mode"]
#[inline (always)] pub fn opm (& self) -> OpmR { OpmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Direction"]
#[inline (always)] pub fn dir (& self) -> DirR { DirR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bits 5:6 - Center-aligned mode selection"]
#[inline (always)] pub fn cms (& self) -> CmsR { CmsR :: new (((self . bits >> 5) & 3) as u8) }
#[doc = "Bit 7 - Auto-reload preload enable"]
#[inline (always)] pub fn arpe (& self) -> ArpeR { ArpeR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Clock division"]
#[inline (always)] pub fn ckd (& self) -> CkdR { CkdR :: new (((self . bits >> 8) & 3) as u8) } } impl W {
#[doc = "Bit 0 - Counter enable"]
#[inline (always)] pub fn cen (& mut self) -> CenW < '_ , Cr1Spec > { CenW :: new (self , 0) }
#[doc = "Bit 1 - Update disable"]
#[inline (always)] pub fn udis (& mut self) -> UdisW < '_ , Cr1Spec > { UdisW :: new (self , 1) }
#[doc = "Bit 2 - Update request source"]
#[inline (always)] pub fn urs (& mut self) -> UrsW < '_ , Cr1Spec > { UrsW :: new (self , 2) }
#[doc = "Bit 3 - One-pulse mode"]
#[inline (always)] pub fn opm (& mut self) -> OpmW < '_ , Cr1Spec > { OpmW :: new (self , 3) }
#[doc = "Bit 4 - Direction"]
#[inline (always)] pub fn dir (& mut self) -> DirW < '_ , Cr1Spec > { DirW :: new (self , 4) }
#[doc = "Bits 5:6 - Center-aligned mode selection"]
#[inline (always)] pub fn cms (& mut self) -> CmsW < '_ , Cr1Spec > { CmsW :: new (self , 5) }
#[doc = "Bit 7 - Auto-reload preload enable"]
#[inline (always)] pub fn arpe (& mut self) -> ArpeW < '_ , Cr1Spec > { ArpeW :: new (self , 7) }
#[doc = "Bits 8:9 - Clock division"]
#[inline (always)] pub fn ckd (& mut self) -> CkdW < '_ , Cr1Spec > { CkdW :: new (self , 8) } }
#[doc = "control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr1Spec ; impl crate :: RegisterSpec for Cr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr1::R`](R) reader structure"] impl crate :: Readable for Cr1Spec { }
#[doc = "`write(|w| ..)` method takes [`cr1::W`](W) writer structure"] impl crate :: Writable for Cr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR1 to value 0"] impl crate :: Resettable for Cr1Spec { } }
#[doc = "CR2 (rw) register accessor: control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr2`] module"]
#[doc (alias = "CR2")] pub type Cr2 = crate :: Reg < cr2 :: Cr2Spec > ;
#[doc = "control register 2"] pub mod cr2 {
#[doc = "Register `CR2` reader"] pub type R = crate :: R < Cr2Spec > ;
#[doc = "Register `CR2` writer"] pub type W = crate :: W < Cr2Spec > ;
#[doc = "Field `CCPC` reader - Capture/compare preloaded control"] pub type CcpcR = crate :: BitReader ;
#[doc = "Field `CCPC` writer - Capture/compare preloaded control"] pub type CcpcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CCUS` reader - Capture/compare control update selection"] pub type CcusR = crate :: BitReader ;
#[doc = "Field `CCUS` writer - Capture/compare control update selection"] pub type CcusW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CCDS` reader - Capture/compare DMA selection"] pub type CcdsR = crate :: BitReader ;
#[doc = "Field `CCDS` writer - Capture/compare DMA selection"] pub type CcdsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MMS` reader - Master mode selection"] pub type MmsR = crate :: FieldReader ;
#[doc = "Field `MMS` writer - Master mode selection"] pub type MmsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `TI1S` reader - TI1 selection"] pub type Ti1sR = crate :: BitReader ;
#[doc = "Field `TI1S` writer - TI1 selection"] pub type Ti1sW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OIS1` reader - Output Idle state 1"] pub type Ois1R = crate :: BitReader ;
#[doc = "Field `OIS1` writer - Output Idle state 1"] pub type Ois1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OIS1N` reader - Output Idle state 1"] pub type Ois1nR = crate :: BitReader ;
#[doc = "Field `OIS1N` writer - Output Idle state 1"] pub type Ois1nW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OIS2` reader - Output Idle state 2"] pub type Ois2R = crate :: BitReader ;
#[doc = "Field `OIS2` writer - Output Idle state 2"] pub type Ois2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OIS2N` reader - Output Idle state 2"] pub type Ois2nR = crate :: BitReader ;
#[doc = "Field `OIS2N` writer - Output Idle state 2"] pub type Ois2nW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OIS3` reader - Output Idle state 3"] pub type Ois3R = crate :: BitReader ;
#[doc = "Field `OIS3` writer - Output Idle state 3"] pub type Ois3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OIS3N` reader - Output Idle state 3"] pub type Ois3nR = crate :: BitReader ;
#[doc = "Field `OIS3N` writer - Output Idle state 3"] pub type Ois3nW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OIS4` reader - Output Idle state 4"] pub type Ois4R = crate :: BitReader ;
#[doc = "Field `OIS4` writer - Output Idle state 4"] pub type Ois4W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Capture/compare preloaded control"]
#[inline (always)] pub fn ccpc (& self) -> CcpcR { CcpcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 2 - Capture/compare control update selection"]
#[inline (always)] pub fn ccus (& self) -> CcusR { CcusR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Capture/compare DMA selection"]
#[inline (always)] pub fn ccds (& self) -> CcdsR { CcdsR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:6 - Master mode selection"]
#[inline (always)] pub fn mms (& self) -> MmsR { MmsR :: new (((self . bits >> 4) & 7) as u8) }
#[doc = "Bit 7 - TI1 selection"]
#[inline (always)] pub fn ti1s (& self) -> Ti1sR { Ti1sR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Output Idle state 1"]
#[inline (always)] pub fn ois1 (& self) -> Ois1R { Ois1R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Output Idle state 1"]
#[inline (always)] pub fn ois1n (& self) -> Ois1nR { Ois1nR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Output Idle state 2"]
#[inline (always)] pub fn ois2 (& self) -> Ois2R { Ois2R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Output Idle state 2"]
#[inline (always)] pub fn ois2n (& self) -> Ois2nR { Ois2nR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Output Idle state 3"]
#[inline (always)] pub fn ois3 (& self) -> Ois3R { Ois3R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Output Idle state 3"]
#[inline (always)] pub fn ois3n (& self) -> Ois3nR { Ois3nR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Output Idle state 4"]
#[inline (always)] pub fn ois4 (& self) -> Ois4R { Ois4R :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Capture/compare preloaded control"]
#[inline (always)] pub fn ccpc (& mut self) -> CcpcW < '_ , Cr2Spec > { CcpcW :: new (self , 0) }
#[doc = "Bit 2 - Capture/compare control update selection"]
#[inline (always)] pub fn ccus (& mut self) -> CcusW < '_ , Cr2Spec > { CcusW :: new (self , 2) }
#[doc = "Bit 3 - Capture/compare DMA selection"]
#[inline (always)] pub fn ccds (& mut self) -> CcdsW < '_ , Cr2Spec > { CcdsW :: new (self , 3) }
#[doc = "Bits 4:6 - Master mode selection"]
#[inline (always)] pub fn mms (& mut self) -> MmsW < '_ , Cr2Spec > { MmsW :: new (self , 4) }
#[doc = "Bit 7 - TI1 selection"]
#[inline (always)] pub fn ti1s (& mut self) -> Ti1sW < '_ , Cr2Spec > { Ti1sW :: new (self , 7) }
#[doc = "Bit 8 - Output Idle state 1"]
#[inline (always)] pub fn ois1 (& mut self) -> Ois1W < '_ , Cr2Spec > { Ois1W :: new (self , 8) }
#[doc = "Bit 9 - Output Idle state 1"]
#[inline (always)] pub fn ois1n (& mut self) -> Ois1nW < '_ , Cr2Spec > { Ois1nW :: new (self , 9) }
#[doc = "Bit 10 - Output Idle state 2"]
#[inline (always)] pub fn ois2 (& mut self) -> Ois2W < '_ , Cr2Spec > { Ois2W :: new (self , 10) }
#[doc = "Bit 11 - Output Idle state 2"]
#[inline (always)] pub fn ois2n (& mut self) -> Ois2nW < '_ , Cr2Spec > { Ois2nW :: new (self , 11) }
#[doc = "Bit 12 - Output Idle state 3"]
#[inline (always)] pub fn ois3 (& mut self) -> Ois3W < '_ , Cr2Spec > { Ois3W :: new (self , 12) }
#[doc = "Bit 13 - Output Idle state 3"]
#[inline (always)] pub fn ois3n (& mut self) -> Ois3nW < '_ , Cr2Spec > { Ois3nW :: new (self , 13) }
#[doc = "Bit 14 - Output Idle state 4"]
#[inline (always)] pub fn ois4 (& mut self) -> Ois4W < '_ , Cr2Spec > { Ois4W :: new (self , 14) } }
#[doc = "control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr2Spec ; impl crate :: RegisterSpec for Cr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr2::R`](R) reader structure"] impl crate :: Readable for Cr2Spec { }
#[doc = "`write(|w| ..)` method takes [`cr2::W`](W) writer structure"] impl crate :: Writable for Cr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR2 to value 0"] impl crate :: Resettable for Cr2Spec { } }
#[doc = "SMCR (rw) register accessor: slave mode control register\n\nYou can [`read`](crate::Reg::read) this register and get [`smcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@smcr`] module"]
#[doc (alias = "SMCR")] pub type Smcr = crate :: Reg < smcr :: SmcrSpec > ;
#[doc = "slave mode control register"] pub mod smcr {
#[doc = "Register `SMCR` reader"] pub type R = crate :: R < SmcrSpec > ;
#[doc = "Register `SMCR` writer"] pub type W = crate :: W < SmcrSpec > ;
#[doc = "Field `SMS` reader - Slave mode selection"] pub type SmsR = crate :: FieldReader ;
#[doc = "Field `SMS` writer - Slave mode selection"] pub type SmsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `TS` reader - Trigger selection"] pub type TsR = crate :: FieldReader ;
#[doc = "Field `TS` writer - Trigger selection"] pub type TsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `MSM` reader - Master/Slave mode"] pub type MsmR = crate :: BitReader ;
#[doc = "Field `MSM` writer - Master/Slave mode"] pub type MsmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ETF` reader - External trigger filter"] pub type EtfR = crate :: FieldReader ;
#[doc = "Field `ETF` writer - External trigger filter"] pub type EtfW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ETPS` reader - External trigger prescaler"] pub type EtpsR = crate :: FieldReader ;
#[doc = "Field `ETPS` writer - External trigger prescaler"] pub type EtpsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `ECE` reader - External clock enable"] pub type EceR = crate :: BitReader ;
#[doc = "Field `ECE` writer - External clock enable"] pub type EceW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ETP` reader - External trigger polarity"] pub type EtpR = crate :: BitReader ;
#[doc = "Field `ETP` writer - External trigger polarity"] pub type EtpW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:2 - Slave mode selection"]
#[inline (always)] pub fn sms (& self) -> SmsR { SmsR :: new ((self . bits & 7) as u8) }
#[doc = "Bits 4:6 - Trigger selection"]
#[inline (always)] pub fn ts (& self) -> TsR { TsR :: new (((self . bits >> 4) & 7) as u8) }
#[doc = "Bit 7 - Master/Slave mode"]
#[inline (always)] pub fn msm (& self) -> MsmR { MsmR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:11 - External trigger filter"]
#[inline (always)] pub fn etf (& self) -> EtfR { EtfR :: new (((self . bits >> 8) & 0x0f) as u8) }
#[doc = "Bits 12:13 - External trigger prescaler"]
#[inline (always)] pub fn etps (& self) -> EtpsR { EtpsR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - External clock enable"]
#[inline (always)] pub fn ece (& self) -> EceR { EceR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - External trigger polarity"]
#[inline (always)] pub fn etp (& self) -> EtpR { EtpR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:2 - Slave mode selection"]
#[inline (always)] pub fn sms (& mut self) -> SmsW < '_ , SmcrSpec > { SmsW :: new (self , 0) }
#[doc = "Bits 4:6 - Trigger selection"]
#[inline (always)] pub fn ts (& mut self) -> TsW < '_ , SmcrSpec > { TsW :: new (self , 4) }
#[doc = "Bit 7 - Master/Slave mode"]
#[inline (always)] pub fn msm (& mut self) -> MsmW < '_ , SmcrSpec > { MsmW :: new (self , 7) }
#[doc = "Bits 8:11 - External trigger filter"]
#[inline (always)] pub fn etf (& mut self) -> EtfW < '_ , SmcrSpec > { EtfW :: new (self , 8) }
#[doc = "Bits 12:13 - External trigger prescaler"]
#[inline (always)] pub fn etps (& mut self) -> EtpsW < '_ , SmcrSpec > { EtpsW :: new (self , 12) }
#[doc = "Bit 14 - External clock enable"]
#[inline (always)] pub fn ece (& mut self) -> EceW < '_ , SmcrSpec > { EceW :: new (self , 14) }
#[doc = "Bit 15 - External trigger polarity"]
#[inline (always)] pub fn etp (& mut self) -> EtpW < '_ , SmcrSpec > { EtpW :: new (self , 15) } }
#[doc = "slave mode control register\n\nYou can [`read`](crate::Reg::read) this register and get [`smcr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smcr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SmcrSpec ; impl crate :: RegisterSpec for SmcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`smcr::R`](R) reader structure"] impl crate :: Readable for SmcrSpec { }
#[doc = "`write(|w| ..)` method takes [`smcr::W`](W) writer structure"] impl crate :: Writable for SmcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SMCR to value 0"] impl crate :: Resettable for SmcrSpec { } }
#[doc = "DIER (rw) register accessor: DMA/Interrupt enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`dier::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dier::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dier`] module"]
#[doc (alias = "DIER")] pub type Dier = crate :: Reg < dier :: DierSpec > ;
#[doc = "DMA/Interrupt enable register"] pub mod dier {
#[doc = "Register `DIER` reader"] pub type R = crate :: R < DierSpec > ;
#[doc = "Register `DIER` writer"] pub type W = crate :: W < DierSpec > ;
#[doc = "Field `UIE` reader - Update interrupt enable"] pub type UieR = crate :: BitReader ;
#[doc = "Field `UIE` writer - Update interrupt enable"] pub type UieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1IE` reader - Capture/Compare 1 interrupt enable"] pub type Cc1ieR = crate :: BitReader ;
#[doc = "Field `CC1IE` writer - Capture/Compare 1 interrupt enable"] pub type Cc1ieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2IE` reader - Capture/Compare 2 interrupt enable"] pub type Cc2ieR = crate :: BitReader ;
#[doc = "Field `CC2IE` writer - Capture/Compare 2 interrupt enable"] pub type Cc2ieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3IE` reader - Capture/Compare 3 interrupt enable"] pub type Cc3ieR = crate :: BitReader ;
#[doc = "Field `CC3IE` writer - Capture/Compare 3 interrupt enable"] pub type Cc3ieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4IE` reader - Capture/Compare 4 interrupt enable"] pub type Cc4ieR = crate :: BitReader ;
#[doc = "Field `CC4IE` writer - Capture/Compare 4 interrupt enable"] pub type Cc4ieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `COMIE` reader - COM interrupt enable"] pub type ComieR = crate :: BitReader ;
#[doc = "Field `COMIE` writer - COM interrupt enable"] pub type ComieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIE` reader - Trigger interrupt enable"] pub type TieR = crate :: BitReader ;
#[doc = "Field `TIE` writer - Trigger interrupt enable"] pub type TieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BIE` reader - Break interrupt enable"] pub type BieR = crate :: BitReader ;
#[doc = "Field `BIE` writer - Break interrupt enable"] pub type BieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UDE` reader - Update DMA request enable"] pub type UdeR = crate :: BitReader ;
#[doc = "Field `UDE` writer - Update DMA request enable"] pub type UdeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1DE` reader - Capture/Compare 1 DMA request enable"] pub type Cc1deR = crate :: BitReader ;
#[doc = "Field `CC1DE` writer - Capture/Compare 1 DMA request enable"] pub type Cc1deW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2DE` reader - Capture/Compare 2 DMA request enable"] pub type Cc2deR = crate :: BitReader ;
#[doc = "Field `CC2DE` writer - Capture/Compare 2 DMA request enable"] pub type Cc2deW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3DE` reader - Capture/Compare 3 DMA request enable"] pub type Cc3deR = crate :: BitReader ;
#[doc = "Field `CC3DE` writer - Capture/Compare 3 DMA request enable"] pub type Cc3deW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4DE` reader - Capture/Compare 4 DMA request enable"] pub type Cc4deR = crate :: BitReader ;
#[doc = "Field `CC4DE` writer - Capture/Compare 4 DMA request enable"] pub type Cc4deW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `COMDE` reader - COM DMA request enable"] pub type ComdeR = crate :: BitReader ;
#[doc = "Field `COMDE` writer - COM DMA request enable"] pub type ComdeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TDE` reader - Trigger DMA request enable"] pub type TdeR = crate :: BitReader ;
#[doc = "Field `TDE` writer - Trigger DMA request enable"] pub type TdeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Update interrupt enable"]
#[inline (always)] pub fn uie (& self) -> UieR { UieR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Capture/Compare 1 interrupt enable"]
#[inline (always)] pub fn cc1ie (& self) -> Cc1ieR { Cc1ieR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Capture/Compare 2 interrupt enable"]
#[inline (always)] pub fn cc2ie (& self) -> Cc2ieR { Cc2ieR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Capture/Compare 3 interrupt enable"]
#[inline (always)] pub fn cc3ie (& self) -> Cc3ieR { Cc3ieR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Capture/Compare 4 interrupt enable"]
#[inline (always)] pub fn cc4ie (& self) -> Cc4ieR { Cc4ieR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - COM interrupt enable"]
#[inline (always)] pub fn comie (& self) -> ComieR { ComieR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Trigger interrupt enable"]
#[inline (always)] pub fn tie (& self) -> TieR { TieR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Break interrupt enable"]
#[inline (always)] pub fn bie (& self) -> BieR { BieR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Update DMA request enable"]
#[inline (always)] pub fn ude (& self) -> UdeR { UdeR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Capture/Compare 1 DMA request enable"]
#[inline (always)] pub fn cc1de (& self) -> Cc1deR { Cc1deR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Capture/Compare 2 DMA request enable"]
#[inline (always)] pub fn cc2de (& self) -> Cc2deR { Cc2deR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Capture/Compare 3 DMA request enable"]
#[inline (always)] pub fn cc3de (& self) -> Cc3deR { Cc3deR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Capture/Compare 4 DMA request enable"]
#[inline (always)] pub fn cc4de (& self) -> Cc4deR { Cc4deR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - COM DMA request enable"]
#[inline (always)] pub fn comde (& self) -> ComdeR { ComdeR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Trigger DMA request enable"]
#[inline (always)] pub fn tde (& self) -> TdeR { TdeR :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Update interrupt enable"]
#[inline (always)] pub fn uie (& mut self) -> UieW < '_ , DierSpec > { UieW :: new (self , 0) }
#[doc = "Bit 1 - Capture/Compare 1 interrupt enable"]
#[inline (always)] pub fn cc1ie (& mut self) -> Cc1ieW < '_ , DierSpec > { Cc1ieW :: new (self , 1) }
#[doc = "Bit 2 - Capture/Compare 2 interrupt enable"]
#[inline (always)] pub fn cc2ie (& mut self) -> Cc2ieW < '_ , DierSpec > { Cc2ieW :: new (self , 2) }
#[doc = "Bit 3 - Capture/Compare 3 interrupt enable"]
#[inline (always)] pub fn cc3ie (& mut self) -> Cc3ieW < '_ , DierSpec > { Cc3ieW :: new (self , 3) }
#[doc = "Bit 4 - Capture/Compare 4 interrupt enable"]
#[inline (always)] pub fn cc4ie (& mut self) -> Cc4ieW < '_ , DierSpec > { Cc4ieW :: new (self , 4) }
#[doc = "Bit 5 - COM interrupt enable"]
#[inline (always)] pub fn comie (& mut self) -> ComieW < '_ , DierSpec > { ComieW :: new (self , 5) }
#[doc = "Bit 6 - Trigger interrupt enable"]
#[inline (always)] pub fn tie (& mut self) -> TieW < '_ , DierSpec > { TieW :: new (self , 6) }
#[doc = "Bit 7 - Break interrupt enable"]
#[inline (always)] pub fn bie (& mut self) -> BieW < '_ , DierSpec > { BieW :: new (self , 7) }
#[doc = "Bit 8 - Update DMA request enable"]
#[inline (always)] pub fn ude (& mut self) -> UdeW < '_ , DierSpec > { UdeW :: new (self , 8) }
#[doc = "Bit 9 - Capture/Compare 1 DMA request enable"]
#[inline (always)] pub fn cc1de (& mut self) -> Cc1deW < '_ , DierSpec > { Cc1deW :: new (self , 9) }
#[doc = "Bit 10 - Capture/Compare 2 DMA request enable"]
#[inline (always)] pub fn cc2de (& mut self) -> Cc2deW < '_ , DierSpec > { Cc2deW :: new (self , 10) }
#[doc = "Bit 11 - Capture/Compare 3 DMA request enable"]
#[inline (always)] pub fn cc3de (& mut self) -> Cc3deW < '_ , DierSpec > { Cc3deW :: new (self , 11) }
#[doc = "Bit 12 - Capture/Compare 4 DMA request enable"]
#[inline (always)] pub fn cc4de (& mut self) -> Cc4deW < '_ , DierSpec > { Cc4deW :: new (self , 12) }
#[doc = "Bit 13 - COM DMA request enable"]
#[inline (always)] pub fn comde (& mut self) -> ComdeW < '_ , DierSpec > { ComdeW :: new (self , 13) }
#[doc = "Bit 14 - Trigger DMA request enable"]
#[inline (always)] pub fn tde (& mut self) -> TdeW < '_ , DierSpec > { TdeW :: new (self , 14) } }
#[doc = "DMA/Interrupt enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`dier::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dier::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DierSpec ; impl crate :: RegisterSpec for DierSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dier::R`](R) reader structure"] impl crate :: Readable for DierSpec { }
#[doc = "`write(|w| ..)` method takes [`dier::W`](W) writer structure"] impl crate :: Writable for DierSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIER to value 0"] impl crate :: Resettable for DierSpec { } }
#[doc = "SR (rw) register accessor: status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`] module"]
#[doc (alias = "SR")] pub type Sr = crate :: Reg < sr :: SrSpec > ;
#[doc = "status register"] pub mod sr {
#[doc = "Register `SR` reader"] pub type R = crate :: R < SrSpec > ;
#[doc = "Register `SR` writer"] pub type W = crate :: W < SrSpec > ;
#[doc = "Field `UIF` reader - Update interrupt flag"] pub type UifR = crate :: BitReader ;
#[doc = "Field `UIF` writer - Update interrupt flag"] pub type UifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1IF` reader - Capture/compare 1 interrupt flag"] pub type Cc1ifR = crate :: BitReader ;
#[doc = "Field `CC1IF` writer - Capture/compare 1 interrupt flag"] pub type Cc1ifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2IF` reader - Capture/Compare 2 interrupt flag"] pub type Cc2ifR = crate :: BitReader ;
#[doc = "Field `CC2IF` writer - Capture/Compare 2 interrupt flag"] pub type Cc2ifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3IF` reader - Capture/Compare 3 interrupt flag"] pub type Cc3ifR = crate :: BitReader ;
#[doc = "Field `CC3IF` writer - Capture/Compare 3 interrupt flag"] pub type Cc3ifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4IF` reader - Capture/Compare 4 interrupt flag"] pub type Cc4ifR = crate :: BitReader ;
#[doc = "Field `CC4IF` writer - Capture/Compare 4 interrupt flag"] pub type Cc4ifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `COMIF` reader - COM interrupt flag"] pub type ComifR = crate :: BitReader ;
#[doc = "Field `COMIF` writer - COM interrupt flag"] pub type ComifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIF` reader - Trigger interrupt flag"] pub type TifR = crate :: BitReader ;
#[doc = "Field `TIF` writer - Trigger interrupt flag"] pub type TifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BIF` reader - Break interrupt flag"] pub type BifR = crate :: BitReader ;
#[doc = "Field `BIF` writer - Break interrupt flag"] pub type BifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1OF` reader - Capture/Compare 1 overcapture flag"] pub type Cc1ofR = crate :: BitReader ;
#[doc = "Field `CC1OF` writer - Capture/Compare 1 overcapture flag"] pub type Cc1ofW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2OF` reader - Capture/compare 2 overcapture flag"] pub type Cc2ofR = crate :: BitReader ;
#[doc = "Field `CC2OF` writer - Capture/compare 2 overcapture flag"] pub type Cc2ofW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3OF` reader - Capture/Compare 3 overcapture flag"] pub type Cc3ofR = crate :: BitReader ;
#[doc = "Field `CC3OF` writer - Capture/Compare 3 overcapture flag"] pub type Cc3ofW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4OF` reader - Capture/Compare 4 overcapture flag"] pub type Cc4ofR = crate :: BitReader ;
#[doc = "Field `CC4OF` writer - Capture/Compare 4 overcapture flag"] pub type Cc4ofW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Update interrupt flag"]
#[inline (always)] pub fn uif (& self) -> UifR { UifR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Capture/compare 1 interrupt flag"]
#[inline (always)] pub fn cc1if (& self) -> Cc1ifR { Cc1ifR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Capture/Compare 2 interrupt flag"]
#[inline (always)] pub fn cc2if (& self) -> Cc2ifR { Cc2ifR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Capture/Compare 3 interrupt flag"]
#[inline (always)] pub fn cc3if (& self) -> Cc3ifR { Cc3ifR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Capture/Compare 4 interrupt flag"]
#[inline (always)] pub fn cc4if (& self) -> Cc4ifR { Cc4ifR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - COM interrupt flag"]
#[inline (always)] pub fn comif (& self) -> ComifR { ComifR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Trigger interrupt flag"]
#[inline (always)] pub fn tif (& self) -> TifR { TifR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Break interrupt flag"]
#[inline (always)] pub fn bif (& self) -> BifR { BifR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 9 - Capture/Compare 1 overcapture flag"]
#[inline (always)] pub fn cc1of (& self) -> Cc1ofR { Cc1ofR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Capture/compare 2 overcapture flag"]
#[inline (always)] pub fn cc2of (& self) -> Cc2ofR { Cc2ofR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Capture/Compare 3 overcapture flag"]
#[inline (always)] pub fn cc3of (& self) -> Cc3ofR { Cc3ofR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Capture/Compare 4 overcapture flag"]
#[inline (always)] pub fn cc4of (& self) -> Cc4ofR { Cc4ofR :: new (((self . bits >> 12) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Update interrupt flag"]
#[inline (always)] pub fn uif (& mut self) -> UifW < '_ , SrSpec > { UifW :: new (self , 0) }
#[doc = "Bit 1 - Capture/compare 1 interrupt flag"]
#[inline (always)] pub fn cc1if (& mut self) -> Cc1ifW < '_ , SrSpec > { Cc1ifW :: new (self , 1) }
#[doc = "Bit 2 - Capture/Compare 2 interrupt flag"]
#[inline (always)] pub fn cc2if (& mut self) -> Cc2ifW < '_ , SrSpec > { Cc2ifW :: new (self , 2) }
#[doc = "Bit 3 - Capture/Compare 3 interrupt flag"]
#[inline (always)] pub fn cc3if (& mut self) -> Cc3ifW < '_ , SrSpec > { Cc3ifW :: new (self , 3) }
#[doc = "Bit 4 - Capture/Compare 4 interrupt flag"]
#[inline (always)] pub fn cc4if (& mut self) -> Cc4ifW < '_ , SrSpec > { Cc4ifW :: new (self , 4) }
#[doc = "Bit 5 - COM interrupt flag"]
#[inline (always)] pub fn comif (& mut self) -> ComifW < '_ , SrSpec > { ComifW :: new (self , 5) }
#[doc = "Bit 6 - Trigger interrupt flag"]
#[inline (always)] pub fn tif (& mut self) -> TifW < '_ , SrSpec > { TifW :: new (self , 6) }
#[doc = "Bit 7 - Break interrupt flag"]
#[inline (always)] pub fn bif (& mut self) -> BifW < '_ , SrSpec > { BifW :: new (self , 7) }
#[doc = "Bit 9 - Capture/Compare 1 overcapture flag"]
#[inline (always)] pub fn cc1of (& mut self) -> Cc1ofW < '_ , SrSpec > { Cc1ofW :: new (self , 9) }
#[doc = "Bit 10 - Capture/compare 2 overcapture flag"]
#[inline (always)] pub fn cc2of (& mut self) -> Cc2ofW < '_ , SrSpec > { Cc2ofW :: new (self , 10) }
#[doc = "Bit 11 - Capture/Compare 3 overcapture flag"]
#[inline (always)] pub fn cc3of (& mut self) -> Cc3ofW < '_ , SrSpec > { Cc3ofW :: new (self , 11) }
#[doc = "Bit 12 - Capture/Compare 4 overcapture flag"]
#[inline (always)] pub fn cc4of (& mut self) -> Cc4ofW < '_ , SrSpec > { Cc4ofW :: new (self , 12) } }
#[doc = "status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec ; impl crate :: RegisterSpec for SrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate :: Readable for SrSpec { }
#[doc = "`write(|w| ..)` method takes [`sr::W`](W) writer structure"] impl crate :: Writable for SrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR to value 0"] impl crate :: Resettable for SrSpec { } }
#[doc = "EGR (w) register accessor: event generation register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`egr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@egr`] module"]
#[doc (alias = "EGR")] pub type Egr = crate :: Reg < egr :: EgrSpec > ;
#[doc = "event generation register"] pub mod egr {
#[doc = "Register `EGR` writer"] pub type W = crate :: W < EgrSpec > ;
#[doc = "Field `UG` writer - Update generation"] pub type UgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1G` writer - Capture/compare 1 generation"] pub type Cc1gW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2G` writer - Capture/compare 2 generation"] pub type Cc2gW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3G` writer - Capture/compare 3 generation"] pub type Cc3gW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4G` writer - Capture/compare 4 generation"] pub type Cc4gW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `COMG` writer - Capture/Compare control update generation"] pub type ComgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TG` writer - Trigger generation"] pub type TgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BG` writer - Break generation"] pub type BgW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl W {
#[doc = "Bit 0 - Update generation"]
#[inline (always)] pub fn ug (& mut self) -> UgW < '_ , EgrSpec > { UgW :: new (self , 0) }
#[doc = "Bit 1 - Capture/compare 1 generation"]
#[inline (always)] pub fn cc1g (& mut self) -> Cc1gW < '_ , EgrSpec > { Cc1gW :: new (self , 1) }
#[doc = "Bit 2 - Capture/compare 2 generation"]
#[inline (always)] pub fn cc2g (& mut self) -> Cc2gW < '_ , EgrSpec > { Cc2gW :: new (self , 2) }
#[doc = "Bit 3 - Capture/compare 3 generation"]
#[inline (always)] pub fn cc3g (& mut self) -> Cc3gW < '_ , EgrSpec > { Cc3gW :: new (self , 3) }
#[doc = "Bit 4 - Capture/compare 4 generation"]
#[inline (always)] pub fn cc4g (& mut self) -> Cc4gW < '_ , EgrSpec > { Cc4gW :: new (self , 4) }
#[doc = "Bit 5 - Capture/Compare control update generation"]
#[inline (always)] pub fn comg (& mut self) -> ComgW < '_ , EgrSpec > { ComgW :: new (self , 5) }
#[doc = "Bit 6 - Trigger generation"]
#[inline (always)] pub fn tg (& mut self) -> TgW < '_ , EgrSpec > { TgW :: new (self , 6) }
#[doc = "Bit 7 - Break generation"]
#[inline (always)] pub fn bg (& mut self) -> BgW < '_ , EgrSpec > { BgW :: new (self , 7) } }
#[doc = "event generation register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`egr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct EgrSpec ; impl crate :: RegisterSpec for EgrSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`egr::W`](W) writer structure"] impl crate :: Writable for EgrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EGR to value 0"] impl crate :: Resettable for EgrSpec { } }
#[doc = "CCMR1_Output (rw) register accessor: capture/compare mode register (output mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_output::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_output::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccmr1_output`] module"]
#[doc (alias = "CCMR1_Output")] pub type Ccmr1Output = crate :: Reg < ccmr1_output :: Ccmr1OutputSpec > ;
#[doc = "capture/compare mode register (output mode)"] pub mod ccmr1_output {
#[doc = "Register `CCMR1_Output` reader"] pub type R = crate :: R < Ccmr1OutputSpec > ;
#[doc = "Register `CCMR1_Output` writer"] pub type W = crate :: W < Ccmr1OutputSpec > ;
#[doc = "Field `CC1S` reader - Capture/Compare 1 selection"] pub type Cc1sR = crate :: FieldReader ;
#[doc = "Field `CC1S` writer - Capture/Compare 1 selection"] pub type Cc1sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `OC1FE` reader - Output Compare 1 fast enable"] pub type Oc1feR = crate :: BitReader ;
#[doc = "Field `OC1FE` writer - Output Compare 1 fast enable"] pub type Oc1feW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC1PE` reader - Output Compare 1 preload enable"] pub type Oc1peR = crate :: BitReader ;
#[doc = "Field `OC1PE` writer - Output Compare 1 preload enable"] pub type Oc1peW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC1M` reader - Output Compare 1 mode"] pub type Oc1mR = crate :: FieldReader ;
#[doc = "Field `OC1M` writer - Output Compare 1 mode"] pub type Oc1mW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `OC1CE` reader - Output Compare 1 clear enable"] pub type Oc1ceR = crate :: BitReader ;
#[doc = "Field `OC1CE` writer - Output Compare 1 clear enable"] pub type Oc1ceW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2S` reader - Capture/Compare 2 selection"] pub type Cc2sR = crate :: FieldReader ;
#[doc = "Field `CC2S` writer - Capture/Compare 2 selection"] pub type Cc2sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `OC2FE` reader - Output Compare 2 fast enable"] pub type Oc2feR = crate :: BitReader ;
#[doc = "Field `OC2FE` writer - Output Compare 2 fast enable"] pub type Oc2feW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC2PE` reader - Output Compare 2 preload enable"] pub type Oc2peR = crate :: BitReader ;
#[doc = "Field `OC2PE` writer - Output Compare 2 preload enable"] pub type Oc2peW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC2M` reader - Output Compare 2 mode"] pub type Oc2mR = crate :: FieldReader ;
#[doc = "Field `OC2M` writer - Output Compare 2 mode"] pub type Oc2mW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `OC2CE` reader - Output Compare 2 clear enable"] pub type Oc2ceR = crate :: BitReader ;
#[doc = "Field `OC2CE` writer - Output Compare 2 clear enable"] pub type Oc2ceW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& self) -> Cc1sR { Cc1sR :: new ((self . bits & 3) as u8) }
#[doc = "Bit 2 - Output Compare 1 fast enable"]
#[inline (always)] pub fn oc1fe (& self) -> Oc1feR { Oc1feR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Output Compare 1 preload enable"]
#[inline (always)] pub fn oc1pe (& self) -> Oc1peR { Oc1peR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:6 - Output Compare 1 mode"]
#[inline (always)] pub fn oc1m (& self) -> Oc1mR { Oc1mR :: new (((self . bits >> 4) & 7) as u8) }
#[doc = "Bit 7 - Output Compare 1 clear enable"]
#[inline (always)] pub fn oc1ce (& self) -> Oc1ceR { Oc1ceR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Capture/Compare 2 selection"]
#[inline (always)] pub fn cc2s (& self) -> Cc2sR { Cc2sR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bit 10 - Output Compare 2 fast enable"]
#[inline (always)] pub fn oc2fe (& self) -> Oc2feR { Oc2feR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Output Compare 2 preload enable"]
#[inline (always)] pub fn oc2pe (& self) -> Oc2peR { Oc2peR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:14 - Output Compare 2 mode"]
#[inline (always)] pub fn oc2m (& self) -> Oc2mR { Oc2mR :: new (((self . bits >> 12) & 7) as u8) }
#[doc = "Bit 15 - Output Compare 2 clear enable"]
#[inline (always)] pub fn oc2ce (& self) -> Oc2ceR { Oc2ceR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& mut self) -> Cc1sW < '_ , Ccmr1OutputSpec > { Cc1sW :: new (self , 0) }
#[doc = "Bit 2 - Output Compare 1 fast enable"]
#[inline (always)] pub fn oc1fe (& mut self) -> Oc1feW < '_ , Ccmr1OutputSpec > { Oc1feW :: new (self , 2) }
#[doc = "Bit 3 - Output Compare 1 preload enable"]
#[inline (always)] pub fn oc1pe (& mut self) -> Oc1peW < '_ , Ccmr1OutputSpec > { Oc1peW :: new (self , 3) }
#[doc = "Bits 4:6 - Output Compare 1 mode"]
#[inline (always)] pub fn oc1m (& mut self) -> Oc1mW < '_ , Ccmr1OutputSpec > { Oc1mW :: new (self , 4) }
#[doc = "Bit 7 - Output Compare 1 clear enable"]
#[inline (always)] pub fn oc1ce (& mut self) -> Oc1ceW < '_ , Ccmr1OutputSpec > { Oc1ceW :: new (self , 7) }
#[doc = "Bits 8:9 - Capture/Compare 2 selection"]
#[inline (always)] pub fn cc2s (& mut self) -> Cc2sW < '_ , Ccmr1OutputSpec > { Cc2sW :: new (self , 8) }
#[doc = "Bit 10 - Output Compare 2 fast enable"]
#[inline (always)] pub fn oc2fe (& mut self) -> Oc2feW < '_ , Ccmr1OutputSpec > { Oc2feW :: new (self , 10) }
#[doc = "Bit 11 - Output Compare 2 preload enable"]
#[inline (always)] pub fn oc2pe (& mut self) -> Oc2peW < '_ , Ccmr1OutputSpec > { Oc2peW :: new (self , 11) }
#[doc = "Bits 12:14 - Output Compare 2 mode"]
#[inline (always)] pub fn oc2m (& mut self) -> Oc2mW < '_ , Ccmr1OutputSpec > { Oc2mW :: new (self , 12) }
#[doc = "Bit 15 - Output Compare 2 clear enable"]
#[inline (always)] pub fn oc2ce (& mut self) -> Oc2ceW < '_ , Ccmr1OutputSpec > { Oc2ceW :: new (self , 15) } }
#[doc = "capture/compare mode register (output mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_output::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_output::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccmr1OutputSpec ; impl crate :: RegisterSpec for Ccmr1OutputSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccmr1_output::R`](R) reader structure"] impl crate :: Readable for Ccmr1OutputSpec { }
#[doc = "`write(|w| ..)` method takes [`ccmr1_output::W`](W) writer structure"] impl crate :: Writable for Ccmr1OutputSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCMR1_Output to value 0"] impl crate :: Resettable for Ccmr1OutputSpec { } }
#[doc = "CCMR1_Input (rw) register accessor: capture/compare mode register 1 (input mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_input::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_input::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccmr1_input`] module"]
#[doc (alias = "CCMR1_Input")] pub type Ccmr1Input = crate :: Reg < ccmr1_input :: Ccmr1InputSpec > ;
#[doc = "capture/compare mode register 1 (input mode)"] pub mod ccmr1_input {
#[doc = "Register `CCMR1_Input` reader"] pub type R = crate :: R < Ccmr1InputSpec > ;
#[doc = "Register `CCMR1_Input` writer"] pub type W = crate :: W < Ccmr1InputSpec > ;
#[doc = "Field `CC1S` reader - Capture/Compare 1 selection"] pub type Cc1sR = crate :: FieldReader ;
#[doc = "Field `CC1S` writer - Capture/Compare 1 selection"] pub type Cc1sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `ICPCS` reader - Input capture 1 prescaler"] pub type IcpcsR = crate :: FieldReader ;
#[doc = "Field `ICPCS` writer - Input capture 1 prescaler"] pub type IcpcsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC1F` reader - Input capture 1 filter"] pub type Ic1fR = crate :: FieldReader ;
#[doc = "Field `IC1F` writer - Input capture 1 filter"] pub type Ic1fW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `CC2S` reader - Capture/Compare 2 selection"] pub type Cc2sR = crate :: FieldReader ;
#[doc = "Field `CC2S` writer - Capture/Compare 2 selection"] pub type Cc2sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC2PCS` reader - Input capture 2 prescaler"] pub type Ic2pcsR = crate :: FieldReader ;
#[doc = "Field `IC2PCS` writer - Input capture 2 prescaler"] pub type Ic2pcsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC2F` reader - Input capture 2 filter"] pub type Ic2fR = crate :: FieldReader ;
#[doc = "Field `IC2F` writer - Input capture 2 filter"] pub type Ic2fW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ; impl R {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& self) -> Cc1sR { Cc1sR :: new ((self . bits & 3) as u8) }
#[doc = "Bits 2:3 - Input capture 1 prescaler"]
#[inline (always)] pub fn icpcs (& self) -> IcpcsR { IcpcsR :: new (((self . bits >> 2) & 3) as u8) }
#[doc = "Bits 4:7 - Input capture 1 filter"]
#[inline (always)] pub fn ic1f (& self) -> Ic1fR { Ic1fR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:9 - Capture/Compare 2 selection"]
#[inline (always)] pub fn cc2s (& self) -> Cc2sR { Cc2sR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - Input capture 2 prescaler"]
#[inline (always)] pub fn ic2pcs (& self) -> Ic2pcsR { Ic2pcsR :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bits 12:15 - Input capture 2 filter"]
#[inline (always)] pub fn ic2f (& self) -> Ic2fR { Ic2fR :: new (((self . bits >> 12) & 0x0f) as u8) } } impl W {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& mut self) -> Cc1sW < '_ , Ccmr1InputSpec > { Cc1sW :: new (self , 0) }
#[doc = "Bits 2:3 - Input capture 1 prescaler"]
#[inline (always)] pub fn icpcs (& mut self) -> IcpcsW < '_ , Ccmr1InputSpec > { IcpcsW :: new (self , 2) }
#[doc = "Bits 4:7 - Input capture 1 filter"]
#[inline (always)] pub fn ic1f (& mut self) -> Ic1fW < '_ , Ccmr1InputSpec > { Ic1fW :: new (self , 4) }
#[doc = "Bits 8:9 - Capture/Compare 2 selection"]
#[inline (always)] pub fn cc2s (& mut self) -> Cc2sW < '_ , Ccmr1InputSpec > { Cc2sW :: new (self , 8) }
#[doc = "Bits 10:11 - Input capture 2 prescaler"]
#[inline (always)] pub fn ic2pcs (& mut self) -> Ic2pcsW < '_ , Ccmr1InputSpec > { Ic2pcsW :: new (self , 10) }
#[doc = "Bits 12:15 - Input capture 2 filter"]
#[inline (always)] pub fn ic2f (& mut self) -> Ic2fW < '_ , Ccmr1InputSpec > { Ic2fW :: new (self , 12) } }
#[doc = "capture/compare mode register 1 (input mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_input::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_input::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccmr1InputSpec ; impl crate :: RegisterSpec for Ccmr1InputSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccmr1_input::R`](R) reader structure"] impl crate :: Readable for Ccmr1InputSpec { }
#[doc = "`write(|w| ..)` method takes [`ccmr1_input::W`](W) writer structure"] impl crate :: Writable for Ccmr1InputSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCMR1_Input to value 0"] impl crate :: Resettable for Ccmr1InputSpec { } }
#[doc = "CCMR2_Output (rw) register accessor: capture/compare mode register (output mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr2_output::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr2_output::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccmr2_output`] module"]
#[doc (alias = "CCMR2_Output")] pub type Ccmr2Output = crate :: Reg < ccmr2_output :: Ccmr2OutputSpec > ;
#[doc = "capture/compare mode register (output mode)"] pub mod ccmr2_output {
#[doc = "Register `CCMR2_Output` reader"] pub type R = crate :: R < Ccmr2OutputSpec > ;
#[doc = "Register `CCMR2_Output` writer"] pub type W = crate :: W < Ccmr2OutputSpec > ;
#[doc = "Field `CC3S` reader - Capture/Compare 3 selection"] pub type Cc3sR = crate :: FieldReader ;
#[doc = "Field `CC3S` writer - Capture/Compare 3 selection"] pub type Cc3sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `OC3FE` reader - Output compare 3 fast enable"] pub type Oc3feR = crate :: BitReader ;
#[doc = "Field `OC3FE` writer - Output compare 3 fast enable"] pub type Oc3feW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC3PE` reader - Output compare 3 preload enable"] pub type Oc3peR = crate :: BitReader ;
#[doc = "Field `OC3PE` writer - Output compare 3 preload enable"] pub type Oc3peW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC3M` reader - Output compare 3 mode"] pub type Oc3mR = crate :: FieldReader ;
#[doc = "Field `OC3M` writer - Output compare 3 mode"] pub type Oc3mW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `OC3CE` reader - Output compare 3 clear enable"] pub type Oc3ceR = crate :: BitReader ;
#[doc = "Field `OC3CE` writer - Output compare 3 clear enable"] pub type Oc3ceW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4S` reader - Capture/Compare 4 selection"] pub type Cc4sR = crate :: FieldReader ;
#[doc = "Field `CC4S` writer - Capture/Compare 4 selection"] pub type Cc4sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `OC4FE` reader - Output compare 4 fast enable"] pub type Oc4feR = crate :: BitReader ;
#[doc = "Field `OC4FE` writer - Output compare 4 fast enable"] pub type Oc4feW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC4PE` reader - Output compare 4 preload enable"] pub type Oc4peR = crate :: BitReader ;
#[doc = "Field `OC4PE` writer - Output compare 4 preload enable"] pub type Oc4peW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC4M` reader - Output compare 4 mode"] pub type Oc4mR = crate :: FieldReader ;
#[doc = "Field `OC4M` writer - Output compare 4 mode"] pub type Oc4mW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `OC4CE` reader - Output compare 4 clear enable"] pub type Oc4ceR = crate :: BitReader ;
#[doc = "Field `OC4CE` writer - Output compare 4 clear enable"] pub type Oc4ceW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:1 - Capture/Compare 3 selection"]
#[inline (always)] pub fn cc3s (& self) -> Cc3sR { Cc3sR :: new ((self . bits & 3) as u8) }
#[doc = "Bit 2 - Output compare 3 fast enable"]
#[inline (always)] pub fn oc3fe (& self) -> Oc3feR { Oc3feR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Output compare 3 preload enable"]
#[inline (always)] pub fn oc3pe (& self) -> Oc3peR { Oc3peR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:6 - Output compare 3 mode"]
#[inline (always)] pub fn oc3m (& self) -> Oc3mR { Oc3mR :: new (((self . bits >> 4) & 7) as u8) }
#[doc = "Bit 7 - Output compare 3 clear enable"]
#[inline (always)] pub fn oc3ce (& self) -> Oc3ceR { Oc3ceR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Capture/Compare 4 selection"]
#[inline (always)] pub fn cc4s (& self) -> Cc4sR { Cc4sR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bit 10 - Output compare 4 fast enable"]
#[inline (always)] pub fn oc4fe (& self) -> Oc4feR { Oc4feR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Output compare 4 preload enable"]
#[inline (always)] pub fn oc4pe (& self) -> Oc4peR { Oc4peR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:14 - Output compare 4 mode"]
#[inline (always)] pub fn oc4m (& self) -> Oc4mR { Oc4mR :: new (((self . bits >> 12) & 7) as u8) }
#[doc = "Bit 15 - Output compare 4 clear enable"]
#[inline (always)] pub fn oc4ce (& self) -> Oc4ceR { Oc4ceR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:1 - Capture/Compare 3 selection"]
#[inline (always)] pub fn cc3s (& mut self) -> Cc3sW < '_ , Ccmr2OutputSpec > { Cc3sW :: new (self , 0) }
#[doc = "Bit 2 - Output compare 3 fast enable"]
#[inline (always)] pub fn oc3fe (& mut self) -> Oc3feW < '_ , Ccmr2OutputSpec > { Oc3feW :: new (self , 2) }
#[doc = "Bit 3 - Output compare 3 preload enable"]
#[inline (always)] pub fn oc3pe (& mut self) -> Oc3peW < '_ , Ccmr2OutputSpec > { Oc3peW :: new (self , 3) }
#[doc = "Bits 4:6 - Output compare 3 mode"]
#[inline (always)] pub fn oc3m (& mut self) -> Oc3mW < '_ , Ccmr2OutputSpec > { Oc3mW :: new (self , 4) }
#[doc = "Bit 7 - Output compare 3 clear enable"]
#[inline (always)] pub fn oc3ce (& mut self) -> Oc3ceW < '_ , Ccmr2OutputSpec > { Oc3ceW :: new (self , 7) }
#[doc = "Bits 8:9 - Capture/Compare 4 selection"]
#[inline (always)] pub fn cc4s (& mut self) -> Cc4sW < '_ , Ccmr2OutputSpec > { Cc4sW :: new (self , 8) }
#[doc = "Bit 10 - Output compare 4 fast enable"]
#[inline (always)] pub fn oc4fe (& mut self) -> Oc4feW < '_ , Ccmr2OutputSpec > { Oc4feW :: new (self , 10) }
#[doc = "Bit 11 - Output compare 4 preload enable"]
#[inline (always)] pub fn oc4pe (& mut self) -> Oc4peW < '_ , Ccmr2OutputSpec > { Oc4peW :: new (self , 11) }
#[doc = "Bits 12:14 - Output compare 4 mode"]
#[inline (always)] pub fn oc4m (& mut self) -> Oc4mW < '_ , Ccmr2OutputSpec > { Oc4mW :: new (self , 12) }
#[doc = "Bit 15 - Output compare 4 clear enable"]
#[inline (always)] pub fn oc4ce (& mut self) -> Oc4ceW < '_ , Ccmr2OutputSpec > { Oc4ceW :: new (self , 15) } }
#[doc = "capture/compare mode register (output mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr2_output::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr2_output::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccmr2OutputSpec ; impl crate :: RegisterSpec for Ccmr2OutputSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccmr2_output::R`](R) reader structure"] impl crate :: Readable for Ccmr2OutputSpec { }
#[doc = "`write(|w| ..)` method takes [`ccmr2_output::W`](W) writer structure"] impl crate :: Writable for Ccmr2OutputSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCMR2_Output to value 0"] impl crate :: Resettable for Ccmr2OutputSpec { } }
#[doc = "CCMR2_Input (rw) register accessor: capture/compare mode register 2 (input mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr2_input::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr2_input::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccmr2_input`] module"]
#[doc (alias = "CCMR2_Input")] pub type Ccmr2Input = crate :: Reg < ccmr2_input :: Ccmr2InputSpec > ;
#[doc = "capture/compare mode register 2 (input mode)"] pub mod ccmr2_input {
#[doc = "Register `CCMR2_Input` reader"] pub type R = crate :: R < Ccmr2InputSpec > ;
#[doc = "Register `CCMR2_Input` writer"] pub type W = crate :: W < Ccmr2InputSpec > ;
#[doc = "Field `CC3S` reader - Capture/compare 3 selection"] pub type Cc3sR = crate :: FieldReader ;
#[doc = "Field `CC3S` writer - Capture/compare 3 selection"] pub type Cc3sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC3PSC` reader - Input capture 3 prescaler"] pub type Ic3pscR = crate :: FieldReader ;
#[doc = "Field `IC3PSC` writer - Input capture 3 prescaler"] pub type Ic3pscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC3F` reader - Input capture 3 filter"] pub type Ic3fR = crate :: FieldReader ;
#[doc = "Field `IC3F` writer - Input capture 3 filter"] pub type Ic3fW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `CC4S` reader - Capture/Compare 4 selection"] pub type Cc4sR = crate :: FieldReader ;
#[doc = "Field `CC4S` writer - Capture/Compare 4 selection"] pub type Cc4sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC4PSC` reader - Input capture 4 prescaler"] pub type Ic4pscR = crate :: FieldReader ;
#[doc = "Field `IC4PSC` writer - Input capture 4 prescaler"] pub type Ic4pscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC4F` reader - Input capture 4 filter"] pub type Ic4fR = crate :: FieldReader ;
#[doc = "Field `IC4F` writer - Input capture 4 filter"] pub type Ic4fW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ; impl R {
#[doc = "Bits 0:1 - Capture/compare 3 selection"]
#[inline (always)] pub fn cc3s (& self) -> Cc3sR { Cc3sR :: new ((self . bits & 3) as u8) }
#[doc = "Bits 2:3 - Input capture 3 prescaler"]
#[inline (always)] pub fn ic3psc (& self) -> Ic3pscR { Ic3pscR :: new (((self . bits >> 2) & 3) as u8) }
#[doc = "Bits 4:7 - Input capture 3 filter"]
#[inline (always)] pub fn ic3f (& self) -> Ic3fR { Ic3fR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:9 - Capture/Compare 4 selection"]
#[inline (always)] pub fn cc4s (& self) -> Cc4sR { Cc4sR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - Input capture 4 prescaler"]
#[inline (always)] pub fn ic4psc (& self) -> Ic4pscR { Ic4pscR :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bits 12:15 - Input capture 4 filter"]
#[inline (always)] pub fn ic4f (& self) -> Ic4fR { Ic4fR :: new (((self . bits >> 12) & 0x0f) as u8) } } impl W {
#[doc = "Bits 0:1 - Capture/compare 3 selection"]
#[inline (always)] pub fn cc3s (& mut self) -> Cc3sW < '_ , Ccmr2InputSpec > { Cc3sW :: new (self , 0) }
#[doc = "Bits 2:3 - Input capture 3 prescaler"]
#[inline (always)] pub fn ic3psc (& mut self) -> Ic3pscW < '_ , Ccmr2InputSpec > { Ic3pscW :: new (self , 2) }
#[doc = "Bits 4:7 - Input capture 3 filter"]
#[inline (always)] pub fn ic3f (& mut self) -> Ic3fW < '_ , Ccmr2InputSpec > { Ic3fW :: new (self , 4) }
#[doc = "Bits 8:9 - Capture/Compare 4 selection"]
#[inline (always)] pub fn cc4s (& mut self) -> Cc4sW < '_ , Ccmr2InputSpec > { Cc4sW :: new (self , 8) }
#[doc = "Bits 10:11 - Input capture 4 prescaler"]
#[inline (always)] pub fn ic4psc (& mut self) -> Ic4pscW < '_ , Ccmr2InputSpec > { Ic4pscW :: new (self , 10) }
#[doc = "Bits 12:15 - Input capture 4 filter"]
#[inline (always)] pub fn ic4f (& mut self) -> Ic4fW < '_ , Ccmr2InputSpec > { Ic4fW :: new (self , 12) } }
#[doc = "capture/compare mode register 2 (input mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr2_input::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr2_input::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccmr2InputSpec ; impl crate :: RegisterSpec for Ccmr2InputSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccmr2_input::R`](R) reader structure"] impl crate :: Readable for Ccmr2InputSpec { }
#[doc = "`write(|w| ..)` method takes [`ccmr2_input::W`](W) writer structure"] impl crate :: Writable for Ccmr2InputSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCMR2_Input to value 0"] impl crate :: Resettable for Ccmr2InputSpec { } }
#[doc = "CCER (rw) register accessor: capture/compare enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`ccer::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccer::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccer`] module"]
#[doc (alias = "CCER")] pub type Ccer = crate :: Reg < ccer :: CcerSpec > ;
#[doc = "capture/compare enable register"] pub mod ccer {
#[doc = "Register `CCER` reader"] pub type R = crate :: R < CcerSpec > ;
#[doc = "Register `CCER` writer"] pub type W = crate :: W < CcerSpec > ;
#[doc = "Field `CC1E` reader - Capture/Compare 1 output enable"] pub type Cc1eR = crate :: BitReader ;
#[doc = "Field `CC1E` writer - Capture/Compare 1 output enable"] pub type Cc1eW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1P` reader - Capture/Compare 1 output Polarity"] pub type Cc1pR = crate :: BitReader ;
#[doc = "Field `CC1P` writer - Capture/Compare 1 output Polarity"] pub type Cc1pW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1NE` reader - Capture/Compare 1 complementary output enable"] pub type Cc1neR = crate :: BitReader ;
#[doc = "Field `CC1NE` writer - Capture/Compare 1 complementary output enable"] pub type Cc1neW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1NP` reader - Capture/Compare 1 output Polarity"] pub type Cc1npR = crate :: BitReader ;
#[doc = "Field `CC1NP` writer - Capture/Compare 1 output Polarity"] pub type Cc1npW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2E` reader - Capture/Compare 2 output enable"] pub type Cc2eR = crate :: BitReader ;
#[doc = "Field `CC2E` writer - Capture/Compare 2 output enable"] pub type Cc2eW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2P` reader - Capture/Compare 2 output Polarity"] pub type Cc2pR = crate :: BitReader ;
#[doc = "Field `CC2P` writer - Capture/Compare 2 output Polarity"] pub type Cc2pW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2NE` reader - Capture/Compare 2 complementary output enable"] pub type Cc2neR = crate :: BitReader ;
#[doc = "Field `CC2NE` writer - Capture/Compare 2 complementary output enable"] pub type Cc2neW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2NP` reader - Capture/Compare 2 output Polarity"] pub type Cc2npR = crate :: BitReader ;
#[doc = "Field `CC2NP` writer - Capture/Compare 2 output Polarity"] pub type Cc2npW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3E` reader - Capture/Compare 3 output enable"] pub type Cc3eR = crate :: BitReader ;
#[doc = "Field `CC3E` writer - Capture/Compare 3 output enable"] pub type Cc3eW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3P` reader - Capture/Compare 3 output Polarity"] pub type Cc3pR = crate :: BitReader ;
#[doc = "Field `CC3P` writer - Capture/Compare 3 output Polarity"] pub type Cc3pW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3NE` reader - Capture/Compare 3 complementary output enable"] pub type Cc3neR = crate :: BitReader ;
#[doc = "Field `CC3NE` writer - Capture/Compare 3 complementary output enable"] pub type Cc3neW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3NP` reader - Capture/Compare 3 output Polarity"] pub type Cc3npR = crate :: BitReader ;
#[doc = "Field `CC3NP` writer - Capture/Compare 3 output Polarity"] pub type Cc3npW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4E` reader - Capture/Compare 4 output enable"] pub type Cc4eR = crate :: BitReader ;
#[doc = "Field `CC4E` writer - Capture/Compare 4 output enable"] pub type Cc4eW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4P` reader - Capture/Compare 3 output Polarity"] pub type Cc4pR = crate :: BitReader ;
#[doc = "Field `CC4P` writer - Capture/Compare 3 output Polarity"] pub type Cc4pW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Capture/Compare 1 output enable"]
#[inline (always)] pub fn cc1e (& self) -> Cc1eR { Cc1eR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Capture/Compare 1 output Polarity"]
#[inline (always)] pub fn cc1p (& self) -> Cc1pR { Cc1pR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Capture/Compare 1 complementary output enable"]
#[inline (always)] pub fn cc1ne (& self) -> Cc1neR { Cc1neR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Capture/Compare 1 output Polarity"]
#[inline (always)] pub fn cc1np (& self) -> Cc1npR { Cc1npR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Capture/Compare 2 output enable"]
#[inline (always)] pub fn cc2e (& self) -> Cc2eR { Cc2eR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Capture/Compare 2 output Polarity"]
#[inline (always)] pub fn cc2p (& self) -> Cc2pR { Cc2pR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Capture/Compare 2 complementary output enable"]
#[inline (always)] pub fn cc2ne (& self) -> Cc2neR { Cc2neR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Capture/Compare 2 output Polarity"]
#[inline (always)] pub fn cc2np (& self) -> Cc2npR { Cc2npR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Capture/Compare 3 output enable"]
#[inline (always)] pub fn cc3e (& self) -> Cc3eR { Cc3eR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Capture/Compare 3 output Polarity"]
#[inline (always)] pub fn cc3p (& self) -> Cc3pR { Cc3pR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Capture/Compare 3 complementary output enable"]
#[inline (always)] pub fn cc3ne (& self) -> Cc3neR { Cc3neR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Capture/Compare 3 output Polarity"]
#[inline (always)] pub fn cc3np (& self) -> Cc3npR { Cc3npR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Capture/Compare 4 output enable"]
#[inline (always)] pub fn cc4e (& self) -> Cc4eR { Cc4eR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Capture/Compare 3 output Polarity"]
#[inline (always)] pub fn cc4p (& self) -> Cc4pR { Cc4pR :: new (((self . bits >> 13) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Capture/Compare 1 output enable"]
#[inline (always)] pub fn cc1e (& mut self) -> Cc1eW < '_ , CcerSpec > { Cc1eW :: new (self , 0) }
#[doc = "Bit 1 - Capture/Compare 1 output Polarity"]
#[inline (always)] pub fn cc1p (& mut self) -> Cc1pW < '_ , CcerSpec > { Cc1pW :: new (self , 1) }
#[doc = "Bit 2 - Capture/Compare 1 complementary output enable"]
#[inline (always)] pub fn cc1ne (& mut self) -> Cc1neW < '_ , CcerSpec > { Cc1neW :: new (self , 2) }
#[doc = "Bit 3 - Capture/Compare 1 output Polarity"]
#[inline (always)] pub fn cc1np (& mut self) -> Cc1npW < '_ , CcerSpec > { Cc1npW :: new (self , 3) }
#[doc = "Bit 4 - Capture/Compare 2 output enable"]
#[inline (always)] pub fn cc2e (& mut self) -> Cc2eW < '_ , CcerSpec > { Cc2eW :: new (self , 4) }
#[doc = "Bit 5 - Capture/Compare 2 output Polarity"]
#[inline (always)] pub fn cc2p (& mut self) -> Cc2pW < '_ , CcerSpec > { Cc2pW :: new (self , 5) }
#[doc = "Bit 6 - Capture/Compare 2 complementary output enable"]
#[inline (always)] pub fn cc2ne (& mut self) -> Cc2neW < '_ , CcerSpec > { Cc2neW :: new (self , 6) }
#[doc = "Bit 7 - Capture/Compare 2 output Polarity"]
#[inline (always)] pub fn cc2np (& mut self) -> Cc2npW < '_ , CcerSpec > { Cc2npW :: new (self , 7) }
#[doc = "Bit 8 - Capture/Compare 3 output enable"]
#[inline (always)] pub fn cc3e (& mut self) -> Cc3eW < '_ , CcerSpec > { Cc3eW :: new (self , 8) }
#[doc = "Bit 9 - Capture/Compare 3 output Polarity"]
#[inline (always)] pub fn cc3p (& mut self) -> Cc3pW < '_ , CcerSpec > { Cc3pW :: new (self , 9) }
#[doc = "Bit 10 - Capture/Compare 3 complementary output enable"]
#[inline (always)] pub fn cc3ne (& mut self) -> Cc3neW < '_ , CcerSpec > { Cc3neW :: new (self , 10) }
#[doc = "Bit 11 - Capture/Compare 3 output Polarity"]
#[inline (always)] pub fn cc3np (& mut self) -> Cc3npW < '_ , CcerSpec > { Cc3npW :: new (self , 11) }
#[doc = "Bit 12 - Capture/Compare 4 output enable"]
#[inline (always)] pub fn cc4e (& mut self) -> Cc4eW < '_ , CcerSpec > { Cc4eW :: new (self , 12) }
#[doc = "Bit 13 - Capture/Compare 3 output Polarity"]
#[inline (always)] pub fn cc4p (& mut self) -> Cc4pW < '_ , CcerSpec > { Cc4pW :: new (self , 13) } }
#[doc = "capture/compare enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`ccer::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccer::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CcerSpec ; impl crate :: RegisterSpec for CcerSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccer::R`](R) reader structure"] impl crate :: Readable for CcerSpec { }
#[doc = "`write(|w| ..)` method takes [`ccer::W`](W) writer structure"] impl crate :: Writable for CcerSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCER to value 0"] impl crate :: Resettable for CcerSpec { } }
#[doc = "CNT (rw) register accessor: counter\n\nYou can [`read`](crate::Reg::read) this register and get [`cnt::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnt::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cnt`] module"]
#[doc (alias = "CNT")] pub type Cnt = crate :: Reg < cnt :: CntSpec > ;
#[doc = "counter"] pub mod cnt {
#[doc = "Register `CNT` reader"] pub type R = crate :: R < CntSpec > ;
#[doc = "Register `CNT` writer"] pub type W = crate :: W < CntSpec > ;
#[doc = "Field `CNT` reader - counter value"] pub type CntR = crate :: FieldReader < u16 > ;
#[doc = "Field `CNT` writer - counter value"] pub type CntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - counter value"]
#[inline (always)] pub fn cnt (& self) -> CntR { CntR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - counter value"]
#[inline (always)] pub fn cnt (& mut self) -> CntW < '_ , CntSpec > { CntW :: new (self , 0) } }
#[doc = "counter\n\nYou can [`read`](crate::Reg::read) this register and get [`cnt::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnt::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CntSpec ; impl crate :: RegisterSpec for CntSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cnt::R`](R) reader structure"] impl crate :: Readable for CntSpec { }
#[doc = "`write(|w| ..)` method takes [`cnt::W`](W) writer structure"] impl crate :: Writable for CntSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNT to value 0"] impl crate :: Resettable for CntSpec { } }
#[doc = "PSC (rw) register accessor: prescaler\n\nYou can [`read`](crate::Reg::read) this register and get [`psc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`psc::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@psc`] module"]
#[doc (alias = "PSC")] pub type Psc = crate :: Reg < psc :: PscSpec > ;
#[doc = "prescaler"] pub mod psc {
#[doc = "Register `PSC` reader"] pub type R = crate :: R < PscSpec > ;
#[doc = "Register `PSC` writer"] pub type W = crate :: W < PscSpec > ;
#[doc = "Field `PSC` reader - Prescaler value"] pub type PscR = crate :: FieldReader < u16 > ;
#[doc = "Field `PSC` writer - Prescaler value"] pub type PscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Prescaler value"]
#[inline (always)] pub fn psc (& self) -> PscR { PscR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Prescaler value"]
#[inline (always)] pub fn psc (& mut self) -> PscW < '_ , PscSpec > { PscW :: new (self , 0) } }
#[doc = "prescaler\n\nYou can [`read`](crate::Reg::read) this register and get [`psc::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`psc::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PscSpec ; impl crate :: RegisterSpec for PscSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`psc::R`](R) reader structure"] impl crate :: Readable for PscSpec { }
#[doc = "`write(|w| ..)` method takes [`psc::W`](W) writer structure"] impl crate :: Writable for PscSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PSC to value 0"] impl crate :: Resettable for PscSpec { } }
#[doc = "ARR (rw) register accessor: auto-reload register\n\nYou can [`read`](crate::Reg::read) this register and get [`arr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@arr`] module"]
#[doc (alias = "ARR")] pub type Arr = crate :: Reg < arr :: ArrSpec > ;
#[doc = "auto-reload register"] pub mod arr {
#[doc = "Register `ARR` reader"] pub type R = crate :: R < ArrSpec > ;
#[doc = "Register `ARR` writer"] pub type W = crate :: W < ArrSpec > ;
#[doc = "Field `ARR` reader - Auto-reload value"] pub type ArrR = crate :: FieldReader < u16 > ;
#[doc = "Field `ARR` writer - Auto-reload value"] pub type ArrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Auto-reload value"]
#[inline (always)] pub fn arr (& self) -> ArrR { ArrR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Auto-reload value"]
#[inline (always)] pub fn arr (& mut self) -> ArrW < '_ , ArrSpec > { ArrW :: new (self , 0) } }
#[doc = "auto-reload register\n\nYou can [`read`](crate::Reg::read) this register and get [`arr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct ArrSpec ; impl crate :: RegisterSpec for ArrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`arr::R`](R) reader structure"] impl crate :: Readable for ArrSpec { }
#[doc = "`write(|w| ..)` method takes [`arr::W`](W) writer structure"] impl crate :: Writable for ArrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets ARR to value 0"] impl crate :: Resettable for ArrSpec { } }
#[doc = "CCR1 (rw) register accessor: capture/compare register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr1`] module"]
#[doc (alias = "CCR1")] pub type Ccr1 = crate :: Reg < ccr1 :: Ccr1Spec > ;
#[doc = "capture/compare register 1"] pub mod ccr1 {
#[doc = "Register `CCR1` reader"] pub type R = crate :: R < Ccr1Spec > ;
#[doc = "Register `CCR1` writer"] pub type W = crate :: W < Ccr1Spec > ;
#[doc = "Field `CCR1` reader - Capture/Compare 1 value"] pub type Ccr1R = crate :: FieldReader < u16 > ;
#[doc = "Field `CCR1` writer - Capture/Compare 1 value"] pub type Ccr1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Capture/Compare 1 value"]
#[inline (always)] pub fn ccr1 (& self) -> Ccr1R { Ccr1R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Capture/Compare 1 value"]
#[inline (always)] pub fn ccr1 (& mut self) -> Ccr1W < '_ , Ccr1Spec > { Ccr1W :: new (self , 0) } }
#[doc = "capture/compare register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr1Spec ; impl crate :: RegisterSpec for Ccr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr1::R`](R) reader structure"] impl crate :: Readable for Ccr1Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr1::W`](W) writer structure"] impl crate :: Writable for Ccr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR1 to value 0"] impl crate :: Resettable for Ccr1Spec { } }
#[doc = "CCR2 (rw) register accessor: capture/compare register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr2`] module"]
#[doc (alias = "CCR2")] pub type Ccr2 = crate :: Reg < ccr2 :: Ccr2Spec > ;
#[doc = "capture/compare register 2"] pub mod ccr2 {
#[doc = "Register `CCR2` reader"] pub type R = crate :: R < Ccr2Spec > ;
#[doc = "Register `CCR2` writer"] pub type W = crate :: W < Ccr2Spec > ;
#[doc = "Field `CCR2` reader - Capture/Compare 2 value"] pub type Ccr2R = crate :: FieldReader < u16 > ;
#[doc = "Field `CCR2` writer - Capture/Compare 2 value"] pub type Ccr2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Capture/Compare 2 value"]
#[inline (always)] pub fn ccr2 (& self) -> Ccr2R { Ccr2R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Capture/Compare 2 value"]
#[inline (always)] pub fn ccr2 (& mut self) -> Ccr2W < '_ , Ccr2Spec > { Ccr2W :: new (self , 0) } }
#[doc = "capture/compare register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr2Spec ; impl crate :: RegisterSpec for Ccr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr2::R`](R) reader structure"] impl crate :: Readable for Ccr2Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr2::W`](W) writer structure"] impl crate :: Writable for Ccr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR2 to value 0"] impl crate :: Resettable for Ccr2Spec { } }
#[doc = "CCR3 (rw) register accessor: capture/compare register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr3`] module"]
#[doc (alias = "CCR3")] pub type Ccr3 = crate :: Reg < ccr3 :: Ccr3Spec > ;
#[doc = "capture/compare register 3"] pub mod ccr3 {
#[doc = "Register `CCR3` reader"] pub type R = crate :: R < Ccr3Spec > ;
#[doc = "Register `CCR3` writer"] pub type W = crate :: W < Ccr3Spec > ;
#[doc = "Field `CCR3` reader - Capture/Compare value"] pub type Ccr3R = crate :: FieldReader < u16 > ;
#[doc = "Field `CCR3` writer - Capture/Compare value"] pub type Ccr3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Capture/Compare value"]
#[inline (always)] pub fn ccr3 (& self) -> Ccr3R { Ccr3R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Capture/Compare value"]
#[inline (always)] pub fn ccr3 (& mut self) -> Ccr3W < '_ , Ccr3Spec > { Ccr3W :: new (self , 0) } }
#[doc = "capture/compare register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr3Spec ; impl crate :: RegisterSpec for Ccr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr3::R`](R) reader structure"] impl crate :: Readable for Ccr3Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr3::W`](W) writer structure"] impl crate :: Writable for Ccr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR3 to value 0"] impl crate :: Resettable for Ccr3Spec { } }
#[doc = "CCR4 (rw) register accessor: capture/compare register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr4`] module"]
#[doc (alias = "CCR4")] pub type Ccr4 = crate :: Reg < ccr4 :: Ccr4Spec > ;
#[doc = "capture/compare register 4"] pub mod ccr4 {
#[doc = "Register `CCR4` reader"] pub type R = crate :: R < Ccr4Spec > ;
#[doc = "Register `CCR4` writer"] pub type W = crate :: W < Ccr4Spec > ;
#[doc = "Field `CCR4` reader - Capture/Compare value"] pub type Ccr4R = crate :: FieldReader < u16 > ;
#[doc = "Field `CCR4` writer - Capture/Compare value"] pub type Ccr4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Capture/Compare value"]
#[inline (always)] pub fn ccr4 (& self) -> Ccr4R { Ccr4R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Capture/Compare value"]
#[inline (always)] pub fn ccr4 (& mut self) -> Ccr4W < '_ , Ccr4Spec > { Ccr4W :: new (self , 0) } }
#[doc = "capture/compare register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr4Spec ; impl crate :: RegisterSpec for Ccr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr4::R`](R) reader structure"] impl crate :: Readable for Ccr4Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr4::W`](W) writer structure"] impl crate :: Writable for Ccr4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR4 to value 0"] impl crate :: Resettable for Ccr4Spec { } }
#[doc = "DCR (rw) register accessor: DMA control register\n\nYou can [`read`](crate::Reg::read) this register and get [`dcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dcr`] module"]
#[doc (alias = "DCR")] pub type Dcr = crate :: Reg < dcr :: DcrSpec > ;
#[doc = "DMA control register"] pub mod dcr {
#[doc = "Register `DCR` reader"] pub type R = crate :: R < DcrSpec > ;
#[doc = "Register `DCR` writer"] pub type W = crate :: W < DcrSpec > ;
#[doc = "Field `DBA` reader - DMA base address"] pub type DbaR = crate :: FieldReader ;
#[doc = "Field `DBA` writer - DMA base address"] pub type DbaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `DBL` reader - DMA burst length"] pub type DblR = crate :: FieldReader ;
#[doc = "Field `DBL` writer - DMA burst length"] pub type DblW < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ; impl R {
#[doc = "Bits 0:4 - DMA base address"]
#[inline (always)] pub fn dba (& self) -> DbaR { DbaR :: new ((self . bits & 0x1f) as u8) }
#[doc = "Bits 8:12 - DMA burst length"]
#[inline (always)] pub fn dbl (& self) -> DblR { DblR :: new (((self . bits >> 8) & 0x1f) as u8) } } impl W {
#[doc = "Bits 0:4 - DMA base address"]
#[inline (always)] pub fn dba (& mut self) -> DbaW < '_ , DcrSpec > { DbaW :: new (self , 0) }
#[doc = "Bits 8:12 - DMA burst length"]
#[inline (always)] pub fn dbl (& mut self) -> DblW < '_ , DcrSpec > { DblW :: new (self , 8) } }
#[doc = "DMA control register\n\nYou can [`read`](crate::Reg::read) this register and get [`dcr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dcr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DcrSpec ; impl crate :: RegisterSpec for DcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dcr::R`](R) reader structure"] impl crate :: Readable for DcrSpec { }
#[doc = "`write(|w| ..)` method takes [`dcr::W`](W) writer structure"] impl crate :: Writable for DcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DCR to value 0"] impl crate :: Resettable for DcrSpec { } }
#[doc = "DMAR (rw) register accessor: DMA address for full transfer\n\nYou can [`read`](crate::Reg::read) this register and get [`dmar::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmar::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmar`] module"]
#[doc (alias = "DMAR")] pub type Dmar = crate :: Reg < dmar :: DmarSpec > ;
#[doc = "DMA address for full transfer"] pub mod dmar {
#[doc = "Register `DMAR` reader"] pub type R = crate :: R < DmarSpec > ;
#[doc = "Register `DMAR` writer"] pub type W = crate :: W < DmarSpec > ;
#[doc = "Field `DMAB` reader - DMA register for burst accesses"] pub type DmabR = crate :: FieldReader < u16 > ;
#[doc = "Field `DMAB` writer - DMA register for burst accesses"] pub type DmabW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - DMA register for burst accesses"]
#[inline (always)] pub fn dmab (& self) -> DmabR { DmabR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - DMA register for burst accesses"]
#[inline (always)] pub fn dmab (& mut self) -> DmabW < '_ , DmarSpec > { DmabW :: new (self , 0) } }
#[doc = "DMA address for full transfer\n\nYou can [`read`](crate::Reg::read) this register and get [`dmar::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmar::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmarSpec ; impl crate :: RegisterSpec for DmarSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmar::R`](R) reader structure"] impl crate :: Readable for DmarSpec { }
#[doc = "`write(|w| ..)` method takes [`dmar::W`](W) writer structure"] impl crate :: Writable for DmarSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DMAR to value 0"] impl crate :: Resettable for DmarSpec { } }
#[doc = "RCR (rw) register accessor: repetition counter register\n\nYou can [`read`](crate::Reg::read) this register and get [`rcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rcr`] module"]
#[doc (alias = "RCR")] pub type Rcr = crate :: Reg < rcr :: RcrSpec > ;
#[doc = "repetition counter register"] pub mod rcr {
#[doc = "Register `RCR` reader"] pub type R = crate :: R < RcrSpec > ;
#[doc = "Register `RCR` writer"] pub type W = crate :: W < RcrSpec > ;
#[doc = "Field `REP` reader - Repetition counter value"] pub type RepR = crate :: FieldReader ;
#[doc = "Field `REP` writer - Repetition counter value"] pub type RepW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - Repetition counter value"]
#[inline (always)] pub fn rep (& self) -> RepR { RepR :: new ((self . bits & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - Repetition counter value"]
#[inline (always)] pub fn rep (& mut self) -> RepW < '_ , RcrSpec > { RepW :: new (self , 0) } }
#[doc = "repetition counter register\n\nYou can [`read`](crate::Reg::read) this register and get [`rcr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rcr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct RcrSpec ; impl crate :: RegisterSpec for RcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`rcr::R`](R) reader structure"] impl crate :: Readable for RcrSpec { }
#[doc = "`write(|w| ..)` method takes [`rcr::W`](W) writer structure"] impl crate :: Writable for RcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets RCR to value 0"] impl crate :: Resettable for RcrSpec { } }
#[doc = "BDTR (rw) register accessor: break and dead-time register\n\nYou can [`read`](crate::Reg::read) this register and get [`bdtr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bdtr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bdtr`] module"]
#[doc (alias = "BDTR")] pub type Bdtr = crate :: Reg < bdtr :: BdtrSpec > ;
#[doc = "break and dead-time register"] pub mod bdtr {
#[doc = "Register `BDTR` reader"] pub type R = crate :: R < BdtrSpec > ;
#[doc = "Register `BDTR` writer"] pub type W = crate :: W < BdtrSpec > ;
#[doc = "Field `DTG` reader - Dead-time generator setup"] pub type DtgR = crate :: FieldReader ;
#[doc = "Field `DTG` writer - Dead-time generator setup"] pub type DtgW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `LOCK` reader - Lock configuration"] pub type LockR = crate :: FieldReader ;
#[doc = "Field `LOCK` writer - Lock configuration"] pub type LockW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `OSSI` reader - Off-state selection for Idle mode"] pub type OssiR = crate :: BitReader ;
#[doc = "Field `OSSI` writer - Off-state selection for Idle mode"] pub type OssiW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OSSR` reader - Off-state selection for Run mode"] pub type OssrR = crate :: BitReader ;
#[doc = "Field `OSSR` writer - Off-state selection for Run mode"] pub type OssrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BKE` reader - Break enable"] pub type BkeR = crate :: BitReader ;
#[doc = "Field `BKE` writer - Break enable"] pub type BkeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BKP` reader - Break polarity"] pub type BkpR = crate :: BitReader ;
#[doc = "Field `BKP` writer - Break polarity"] pub type BkpW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AOE` reader - Automatic output enable"] pub type AoeR = crate :: BitReader ;
#[doc = "Field `AOE` writer - Automatic output enable"] pub type AoeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MOE` reader - Main output enable"] pub type MoeR = crate :: BitReader ;
#[doc = "Field `MOE` writer - Main output enable"] pub type MoeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:7 - Dead-time generator setup"]
#[inline (always)] pub fn dtg (& self) -> DtgR { DtgR :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:9 - Lock configuration"]
#[inline (always)] pub fn lock (& self) -> LockR { LockR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bit 10 - Off-state selection for Idle mode"]
#[inline (always)] pub fn ossi (& self) -> OssiR { OssiR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Off-state selection for Run mode"]
#[inline (always)] pub fn ossr (& self) -> OssrR { OssrR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Break enable"]
#[inline (always)] pub fn bke (& self) -> BkeR { BkeR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Break polarity"]
#[inline (always)] pub fn bkp (& self) -> BkpR { BkpR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Automatic output enable"]
#[inline (always)] pub fn aoe (& self) -> AoeR { AoeR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Main output enable"]
#[inline (always)] pub fn moe (& self) -> MoeR { MoeR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:7 - Dead-time generator setup"]
#[inline (always)] pub fn dtg (& mut self) -> DtgW < '_ , BdtrSpec > { DtgW :: new (self , 0) }
#[doc = "Bits 8:9 - Lock configuration"]
#[inline (always)] pub fn lock (& mut self) -> LockW < '_ , BdtrSpec > { LockW :: new (self , 8) }
#[doc = "Bit 10 - Off-state selection for Idle mode"]
#[inline (always)] pub fn ossi (& mut self) -> OssiW < '_ , BdtrSpec > { OssiW :: new (self , 10) }
#[doc = "Bit 11 - Off-state selection for Run mode"]
#[inline (always)] pub fn ossr (& mut self) -> OssrW < '_ , BdtrSpec > { OssrW :: new (self , 11) }
#[doc = "Bit 12 - Break enable"]
#[inline (always)] pub fn bke (& mut self) -> BkeW < '_ , BdtrSpec > { BkeW :: new (self , 12) }
#[doc = "Bit 13 - Break polarity"]
#[inline (always)] pub fn bkp (& mut self) -> BkpW < '_ , BdtrSpec > { BkpW :: new (self , 13) }
#[doc = "Bit 14 - Automatic output enable"]
#[inline (always)] pub fn aoe (& mut self) -> AoeW < '_ , BdtrSpec > { AoeW :: new (self , 14) }
#[doc = "Bit 15 - Main output enable"]
#[inline (always)] pub fn moe (& mut self) -> MoeW < '_ , BdtrSpec > { MoeW :: new (self , 15) } }
#[doc = "break and dead-time register\n\nYou can [`read`](crate::Reg::read) this register and get [`bdtr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bdtr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct BdtrSpec ; impl crate :: RegisterSpec for BdtrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`bdtr::R`](R) reader structure"] impl crate :: Readable for BdtrSpec { }
#[doc = "`write(|w| ..)` method takes [`bdtr::W`](W) writer structure"] impl crate :: Writable for BdtrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BDTR to value 0"] impl crate :: Resettable for BdtrSpec { } } }
#[doc = "Advanced timer"] pub type Tim8 = crate :: Periph < tim1 :: RegisterBlock , 0x4001_3400 > ; impl core :: fmt :: Debug for Tim8 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Tim8") . finish () } }
#[doc = "Advanced timer"] pub use self :: tim1 as tim8 ;
#[doc = "General purpose timer"] pub type Tim2 = crate :: Periph < tim2 :: RegisterBlock , 0x4000_0000 > ; impl core :: fmt :: Debug for Tim2 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Tim2") . finish () } }
#[doc = "General purpose timer"] pub mod tim2 {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { cr1 : Cr1 , cr2 : Cr2 , smcr : Smcr , dier : Dier , sr : Sr , egr : Egr , _reserved_6_ccmr1 : [u8 ; 0x04] , _reserved_7_ccmr2 : [u8 ; 0x04] , ccer : Ccer , cnt : Cnt , psc : Psc , arr : Arr , _reserved12 : [u8 ; 0x04] , ccr1 : Ccr1 , ccr2 : Ccr2 , ccr3 : Ccr3 , ccr4 : Ccr4 , _reserved16 : [u8 ; 0x04] , dcr : Dcr , dmar : Dmar , } impl RegisterBlock {
#[doc = "0x00 - control register 1"]
#[inline (always)] pub const fn cr1 (& self) -> & Cr1 { & self . cr1 }
#[doc = "0x04 - control register 2"]
#[inline (always)] pub const fn cr2 (& self) -> & Cr2 { & self . cr2 }
#[doc = "0x08 - slave mode control register"]
#[inline (always)] pub const fn smcr (& self) -> & Smcr { & self . smcr }
#[doc = "0x0c - DMA/Interrupt enable register"]
#[inline (always)] pub const fn dier (& self) -> & Dier { & self . dier }
#[doc = "0x10 - status register"]
#[inline (always)] pub const fn sr (& self) -> & Sr { & self . sr }
#[doc = "0x14 - event generation register"]
#[inline (always)] pub const fn egr (& self) -> & Egr { & self . egr }
#[doc = "0x18 - capture/compare mode register 1 (input mode)"]
#[inline (always)] pub const fn ccmr1_input (& self) -> & Ccmr1Input { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (24) . cast () } }
#[doc = "0x18 - capture/compare mode register 1 (output mode)"]
#[inline (always)] pub const fn ccmr1_output (& self) -> & Ccmr1Output { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (24) . cast () } }
#[doc = "0x1c - capture/compare mode register 2 (input mode)"]
#[inline (always)] pub const fn ccmr2_input (& self) -> & Ccmr2Input { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (28) . cast () } }
#[doc = "0x1c - capture/compare mode register 2 (output mode)"]
#[inline (always)] pub const fn ccmr2_output (& self) -> & Ccmr2Output { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (28) . cast () } }
#[doc = "0x20 - capture/compare enable register"]
#[inline (always)] pub const fn ccer (& self) -> & Ccer { & self . ccer }
#[doc = "0x24 - counter"]
#[inline (always)] pub const fn cnt (& self) -> & Cnt { & self . cnt }
#[doc = "0x28 - prescaler"]
#[inline (always)] pub const fn psc (& self) -> & Psc { & self . psc }
#[doc = "0x2c - auto-reload register"]
#[inline (always)] pub const fn arr (& self) -> & Arr { & self . arr }
#[doc = "0x34 - capture/compare register 1"]
#[inline (always)] pub const fn ccr1 (& self) -> & Ccr1 { & self . ccr1 }
#[doc = "0x38 - capture/compare register 2"]
#[inline (always)] pub const fn ccr2 (& self) -> & Ccr2 { & self . ccr2 }
#[doc = "0x3c - capture/compare register 3"]
#[inline (always)] pub const fn ccr3 (& self) -> & Ccr3 { & self . ccr3 }
#[doc = "0x40 - capture/compare register 4"]
#[inline (always)] pub const fn ccr4 (& self) -> & Ccr4 { & self . ccr4 }
#[doc = "0x48 - DMA control register"]
#[inline (always)] pub const fn dcr (& self) -> & Dcr { & self . dcr }
#[doc = "0x4c - DMA address for full transfer"]
#[inline (always)] pub const fn dmar (& self) -> & Dmar { & self . dmar } }
#[doc = "CR1 (rw) register accessor: control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr1`] module"]
#[doc (alias = "CR1")] pub type Cr1 = crate :: Reg < cr1 :: Cr1Spec > ;
#[doc = "control register 1"] pub mod cr1 {
#[doc = "Register `CR1` reader"] pub type R = crate :: R < Cr1Spec > ;
#[doc = "Register `CR1` writer"] pub type W = crate :: W < Cr1Spec > ;
#[doc = "Field `CEN` reader - Counter enable"] pub type CenR = crate :: BitReader ;
#[doc = "Field `CEN` writer - Counter enable"] pub type CenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UDIS` reader - Update disable"] pub type UdisR = crate :: BitReader ;
#[doc = "Field `UDIS` writer - Update disable"] pub type UdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `URS` reader - Update request source"] pub type UrsR = crate :: BitReader ;
#[doc = "Field `URS` writer - Update request source"] pub type UrsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OPM` reader - One-pulse mode"] pub type OpmR = crate :: BitReader ;
#[doc = "Field `OPM` writer - One-pulse mode"] pub type OpmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DIR` reader - Direction"] pub type DirR = crate :: BitReader ;
#[doc = "Field `DIR` writer - Direction"] pub type DirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CMS` reader - Center-aligned mode selection"] pub type CmsR = crate :: FieldReader ;
#[doc = "Field `CMS` writer - Center-aligned mode selection"] pub type CmsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `ARPE` reader - Auto-reload preload enable"] pub type ArpeR = crate :: BitReader ;
#[doc = "Field `ARPE` writer - Auto-reload preload enable"] pub type ArpeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CKD` reader - Clock division"] pub type CkdR = crate :: FieldReader ;
#[doc = "Field `CKD` writer - Clock division"] pub type CkdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bit 0 - Counter enable"]
#[inline (always)] pub fn cen (& self) -> CenR { CenR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Update disable"]
#[inline (always)] pub fn udis (& self) -> UdisR { UdisR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Update request source"]
#[inline (always)] pub fn urs (& self) -> UrsR { UrsR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - One-pulse mode"]
#[inline (always)] pub fn opm (& self) -> OpmR { OpmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Direction"]
#[inline (always)] pub fn dir (& self) -> DirR { DirR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bits 5:6 - Center-aligned mode selection"]
#[inline (always)] pub fn cms (& self) -> CmsR { CmsR :: new (((self . bits >> 5) & 3) as u8) }
#[doc = "Bit 7 - Auto-reload preload enable"]
#[inline (always)] pub fn arpe (& self) -> ArpeR { ArpeR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Clock division"]
#[inline (always)] pub fn ckd (& self) -> CkdR { CkdR :: new (((self . bits >> 8) & 3) as u8) } } impl W {
#[doc = "Bit 0 - Counter enable"]
#[inline (always)] pub fn cen (& mut self) -> CenW < '_ , Cr1Spec > { CenW :: new (self , 0) }
#[doc = "Bit 1 - Update disable"]
#[inline (always)] pub fn udis (& mut self) -> UdisW < '_ , Cr1Spec > { UdisW :: new (self , 1) }
#[doc = "Bit 2 - Update request source"]
#[inline (always)] pub fn urs (& mut self) -> UrsW < '_ , Cr1Spec > { UrsW :: new (self , 2) }
#[doc = "Bit 3 - One-pulse mode"]
#[inline (always)] pub fn opm (& mut self) -> OpmW < '_ , Cr1Spec > { OpmW :: new (self , 3) }
#[doc = "Bit 4 - Direction"]
#[inline (always)] pub fn dir (& mut self) -> DirW < '_ , Cr1Spec > { DirW :: new (self , 4) }
#[doc = "Bits 5:6 - Center-aligned mode selection"]
#[inline (always)] pub fn cms (& mut self) -> CmsW < '_ , Cr1Spec > { CmsW :: new (self , 5) }
#[doc = "Bit 7 - Auto-reload preload enable"]
#[inline (always)] pub fn arpe (& mut self) -> ArpeW < '_ , Cr1Spec > { ArpeW :: new (self , 7) }
#[doc = "Bits 8:9 - Clock division"]
#[inline (always)] pub fn ckd (& mut self) -> CkdW < '_ , Cr1Spec > { CkdW :: new (self , 8) } }
#[doc = "control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr1Spec ; impl crate :: RegisterSpec for Cr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr1::R`](R) reader structure"] impl crate :: Readable for Cr1Spec { }
#[doc = "`write(|w| ..)` method takes [`cr1::W`](W) writer structure"] impl crate :: Writable for Cr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR1 to value 0"] impl crate :: Resettable for Cr1Spec { } }
#[doc = "CR2 (rw) register accessor: control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr2`] module"]
#[doc (alias = "CR2")] pub type Cr2 = crate :: Reg < cr2 :: Cr2Spec > ;
#[doc = "control register 2"] pub mod cr2 {
#[doc = "Register `CR2` reader"] pub type R = crate :: R < Cr2Spec > ;
#[doc = "Register `CR2` writer"] pub type W = crate :: W < Cr2Spec > ;
#[doc = "Field `CCDS` reader - Capture/compare DMA selection"] pub type CcdsR = crate :: BitReader ;
#[doc = "Field `CCDS` writer - Capture/compare DMA selection"] pub type CcdsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MMS` reader - Master mode selection"] pub type MmsR = crate :: FieldReader ;
#[doc = "Field `MMS` writer - Master mode selection"] pub type MmsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `TI1S` reader - TI1 selection"] pub type Ti1sR = crate :: BitReader ;
#[doc = "Field `TI1S` writer - TI1 selection"] pub type Ti1sW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 3 - Capture/compare DMA selection"]
#[inline (always)] pub fn ccds (& self) -> CcdsR { CcdsR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:6 - Master mode selection"]
#[inline (always)] pub fn mms (& self) -> MmsR { MmsR :: new (((self . bits >> 4) & 7) as u8) }
#[doc = "Bit 7 - TI1 selection"]
#[inline (always)] pub fn ti1s (& self) -> Ti1sR { Ti1sR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bit 3 - Capture/compare DMA selection"]
#[inline (always)] pub fn ccds (& mut self) -> CcdsW < '_ , Cr2Spec > { CcdsW :: new (self , 3) }
#[doc = "Bits 4:6 - Master mode selection"]
#[inline (always)] pub fn mms (& mut self) -> MmsW < '_ , Cr2Spec > { MmsW :: new (self , 4) }
#[doc = "Bit 7 - TI1 selection"]
#[inline (always)] pub fn ti1s (& mut self) -> Ti1sW < '_ , Cr2Spec > { Ti1sW :: new (self , 7) } }
#[doc = "control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr2Spec ; impl crate :: RegisterSpec for Cr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr2::R`](R) reader structure"] impl crate :: Readable for Cr2Spec { }
#[doc = "`write(|w| ..)` method takes [`cr2::W`](W) writer structure"] impl crate :: Writable for Cr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR2 to value 0"] impl crate :: Resettable for Cr2Spec { } }
#[doc = "SMCR (rw) register accessor: slave mode control register\n\nYou can [`read`](crate::Reg::read) this register and get [`smcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@smcr`] module"]
#[doc (alias = "SMCR")] pub type Smcr = crate :: Reg < smcr :: SmcrSpec > ;
#[doc = "slave mode control register"] pub mod smcr {
#[doc = "Register `SMCR` reader"] pub type R = crate :: R < SmcrSpec > ;
#[doc = "Register `SMCR` writer"] pub type W = crate :: W < SmcrSpec > ;
#[doc = "Field `SMS` reader - Slave mode selection"] pub type SmsR = crate :: FieldReader ;
#[doc = "Field `SMS` writer - Slave mode selection"] pub type SmsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `TS` reader - Trigger selection"] pub type TsR = crate :: FieldReader ;
#[doc = "Field `TS` writer - Trigger selection"] pub type TsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `MSM` reader - Master/Slave mode"] pub type MsmR = crate :: BitReader ;
#[doc = "Field `MSM` writer - Master/Slave mode"] pub type MsmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ETF` reader - External trigger filter"] pub type EtfR = crate :: FieldReader ;
#[doc = "Field `ETF` writer - External trigger filter"] pub type EtfW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `ETPS` reader - External trigger prescaler"] pub type EtpsR = crate :: FieldReader ;
#[doc = "Field `ETPS` writer - External trigger prescaler"] pub type EtpsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `ECE` reader - External clock enable"] pub type EceR = crate :: BitReader ;
#[doc = "Field `ECE` writer - External clock enable"] pub type EceW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ETP` reader - External trigger polarity"] pub type EtpR = crate :: BitReader ;
#[doc = "Field `ETP` writer - External trigger polarity"] pub type EtpW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:2 - Slave mode selection"]
#[inline (always)] pub fn sms (& self) -> SmsR { SmsR :: new ((self . bits & 7) as u8) }
#[doc = "Bits 4:6 - Trigger selection"]
#[inline (always)] pub fn ts (& self) -> TsR { TsR :: new (((self . bits >> 4) & 7) as u8) }
#[doc = "Bit 7 - Master/Slave mode"]
#[inline (always)] pub fn msm (& self) -> MsmR { MsmR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:11 - External trigger filter"]
#[inline (always)] pub fn etf (& self) -> EtfR { EtfR :: new (((self . bits >> 8) & 0x0f) as u8) }
#[doc = "Bits 12:13 - External trigger prescaler"]
#[inline (always)] pub fn etps (& self) -> EtpsR { EtpsR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - External clock enable"]
#[inline (always)] pub fn ece (& self) -> EceR { EceR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - External trigger polarity"]
#[inline (always)] pub fn etp (& self) -> EtpR { EtpR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:2 - Slave mode selection"]
#[inline (always)] pub fn sms (& mut self) -> SmsW < '_ , SmcrSpec > { SmsW :: new (self , 0) }
#[doc = "Bits 4:6 - Trigger selection"]
#[inline (always)] pub fn ts (& mut self) -> TsW < '_ , SmcrSpec > { TsW :: new (self , 4) }
#[doc = "Bit 7 - Master/Slave mode"]
#[inline (always)] pub fn msm (& mut self) -> MsmW < '_ , SmcrSpec > { MsmW :: new (self , 7) }
#[doc = "Bits 8:11 - External trigger filter"]
#[inline (always)] pub fn etf (& mut self) -> EtfW < '_ , SmcrSpec > { EtfW :: new (self , 8) }
#[doc = "Bits 12:13 - External trigger prescaler"]
#[inline (always)] pub fn etps (& mut self) -> EtpsW < '_ , SmcrSpec > { EtpsW :: new (self , 12) }
#[doc = "Bit 14 - External clock enable"]
#[inline (always)] pub fn ece (& mut self) -> EceW < '_ , SmcrSpec > { EceW :: new (self , 14) }
#[doc = "Bit 15 - External trigger polarity"]
#[inline (always)] pub fn etp (& mut self) -> EtpW < '_ , SmcrSpec > { EtpW :: new (self , 15) } }
#[doc = "slave mode control register\n\nYou can [`read`](crate::Reg::read) this register and get [`smcr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smcr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SmcrSpec ; impl crate :: RegisterSpec for SmcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`smcr::R`](R) reader structure"] impl crate :: Readable for SmcrSpec { }
#[doc = "`write(|w| ..)` method takes [`smcr::W`](W) writer structure"] impl crate :: Writable for SmcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SMCR to value 0"] impl crate :: Resettable for SmcrSpec { } }
#[doc = "DIER (rw) register accessor: DMA/Interrupt enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`dier::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dier::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dier`] module"]
#[doc (alias = "DIER")] pub type Dier = crate :: Reg < dier :: DierSpec > ;
#[doc = "DMA/Interrupt enable register"] pub mod dier {
#[doc = "Register `DIER` reader"] pub type R = crate :: R < DierSpec > ;
#[doc = "Register `DIER` writer"] pub type W = crate :: W < DierSpec > ;
#[doc = "Field `UIE` reader - Update interrupt enable"] pub type UieR = crate :: BitReader ;
#[doc = "Field `UIE` writer - Update interrupt enable"] pub type UieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1IE` reader - Capture/Compare 1 interrupt enable"] pub type Cc1ieR = crate :: BitReader ;
#[doc = "Field `CC1IE` writer - Capture/Compare 1 interrupt enable"] pub type Cc1ieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2IE` reader - Capture/Compare 2 interrupt enable"] pub type Cc2ieR = crate :: BitReader ;
#[doc = "Field `CC2IE` writer - Capture/Compare 2 interrupt enable"] pub type Cc2ieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3IE` reader - Capture/Compare 3 interrupt enable"] pub type Cc3ieR = crate :: BitReader ;
#[doc = "Field `CC3IE` writer - Capture/Compare 3 interrupt enable"] pub type Cc3ieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4IE` reader - Capture/Compare 4 interrupt enable"] pub type Cc4ieR = crate :: BitReader ;
#[doc = "Field `CC4IE` writer - Capture/Compare 4 interrupt enable"] pub type Cc4ieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIE` reader - Trigger interrupt enable"] pub type TieR = crate :: BitReader ;
#[doc = "Field `TIE` writer - Trigger interrupt enable"] pub type TieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UDE` reader - Update DMA request enable"] pub type UdeR = crate :: BitReader ;
#[doc = "Field `UDE` writer - Update DMA request enable"] pub type UdeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1DE` reader - Capture/Compare 1 DMA request enable"] pub type Cc1deR = crate :: BitReader ;
#[doc = "Field `CC1DE` writer - Capture/Compare 1 DMA request enable"] pub type Cc1deW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2DE` reader - Capture/Compare 2 DMA request enable"] pub type Cc2deR = crate :: BitReader ;
#[doc = "Field `CC2DE` writer - Capture/Compare 2 DMA request enable"] pub type Cc2deW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3DE` reader - Capture/Compare 3 DMA request enable"] pub type Cc3deR = crate :: BitReader ;
#[doc = "Field `CC3DE` writer - Capture/Compare 3 DMA request enable"] pub type Cc3deW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4DE` reader - Capture/Compare 4 DMA request enable"] pub type Cc4deR = crate :: BitReader ;
#[doc = "Field `CC4DE` writer - Capture/Compare 4 DMA request enable"] pub type Cc4deW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TDE` reader - Trigger DMA request enable"] pub type TdeR = crate :: BitReader ;
#[doc = "Field `TDE` writer - Trigger DMA request enable"] pub type TdeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Update interrupt enable"]
#[inline (always)] pub fn uie (& self) -> UieR { UieR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Capture/Compare 1 interrupt enable"]
#[inline (always)] pub fn cc1ie (& self) -> Cc1ieR { Cc1ieR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Capture/Compare 2 interrupt enable"]
#[inline (always)] pub fn cc2ie (& self) -> Cc2ieR { Cc2ieR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Capture/Compare 3 interrupt enable"]
#[inline (always)] pub fn cc3ie (& self) -> Cc3ieR { Cc3ieR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Capture/Compare 4 interrupt enable"]
#[inline (always)] pub fn cc4ie (& self) -> Cc4ieR { Cc4ieR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 6 - Trigger interrupt enable"]
#[inline (always)] pub fn tie (& self) -> TieR { TieR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 8 - Update DMA request enable"]
#[inline (always)] pub fn ude (& self) -> UdeR { UdeR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Capture/Compare 1 DMA request enable"]
#[inline (always)] pub fn cc1de (& self) -> Cc1deR { Cc1deR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Capture/Compare 2 DMA request enable"]
#[inline (always)] pub fn cc2de (& self) -> Cc2deR { Cc2deR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Capture/Compare 3 DMA request enable"]
#[inline (always)] pub fn cc3de (& self) -> Cc3deR { Cc3deR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Capture/Compare 4 DMA request enable"]
#[inline (always)] pub fn cc4de (& self) -> Cc4deR { Cc4deR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 14 - Trigger DMA request enable"]
#[inline (always)] pub fn tde (& self) -> TdeR { TdeR :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Update interrupt enable"]
#[inline (always)] pub fn uie (& mut self) -> UieW < '_ , DierSpec > { UieW :: new (self , 0) }
#[doc = "Bit 1 - Capture/Compare 1 interrupt enable"]
#[inline (always)] pub fn cc1ie (& mut self) -> Cc1ieW < '_ , DierSpec > { Cc1ieW :: new (self , 1) }
#[doc = "Bit 2 - Capture/Compare 2 interrupt enable"]
#[inline (always)] pub fn cc2ie (& mut self) -> Cc2ieW < '_ , DierSpec > { Cc2ieW :: new (self , 2) }
#[doc = "Bit 3 - Capture/Compare 3 interrupt enable"]
#[inline (always)] pub fn cc3ie (& mut self) -> Cc3ieW < '_ , DierSpec > { Cc3ieW :: new (self , 3) }
#[doc = "Bit 4 - Capture/Compare 4 interrupt enable"]
#[inline (always)] pub fn cc4ie (& mut self) -> Cc4ieW < '_ , DierSpec > { Cc4ieW :: new (self , 4) }
#[doc = "Bit 6 - Trigger interrupt enable"]
#[inline (always)] pub fn tie (& mut self) -> TieW < '_ , DierSpec > { TieW :: new (self , 6) }
#[doc = "Bit 8 - Update DMA request enable"]
#[inline (always)] pub fn ude (& mut self) -> UdeW < '_ , DierSpec > { UdeW :: new (self , 8) }
#[doc = "Bit 9 - Capture/Compare 1 DMA request enable"]
#[inline (always)] pub fn cc1de (& mut self) -> Cc1deW < '_ , DierSpec > { Cc1deW :: new (self , 9) }
#[doc = "Bit 10 - Capture/Compare 2 DMA request enable"]
#[inline (always)] pub fn cc2de (& mut self) -> Cc2deW < '_ , DierSpec > { Cc2deW :: new (self , 10) }
#[doc = "Bit 11 - Capture/Compare 3 DMA request enable"]
#[inline (always)] pub fn cc3de (& mut self) -> Cc3deW < '_ , DierSpec > { Cc3deW :: new (self , 11) }
#[doc = "Bit 12 - Capture/Compare 4 DMA request enable"]
#[inline (always)] pub fn cc4de (& mut self) -> Cc4deW < '_ , DierSpec > { Cc4deW :: new (self , 12) }
#[doc = "Bit 14 - Trigger DMA request enable"]
#[inline (always)] pub fn tde (& mut self) -> TdeW < '_ , DierSpec > { TdeW :: new (self , 14) } }
#[doc = "DMA/Interrupt enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`dier::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dier::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DierSpec ; impl crate :: RegisterSpec for DierSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dier::R`](R) reader structure"] impl crate :: Readable for DierSpec { }
#[doc = "`write(|w| ..)` method takes [`dier::W`](W) writer structure"] impl crate :: Writable for DierSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIER to value 0"] impl crate :: Resettable for DierSpec { } }
#[doc = "SR (rw) register accessor: status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`] module"]
#[doc (alias = "SR")] pub type Sr = crate :: Reg < sr :: SrSpec > ;
#[doc = "status register"] pub mod sr {
#[doc = "Register `SR` reader"] pub type R = crate :: R < SrSpec > ;
#[doc = "Register `SR` writer"] pub type W = crate :: W < SrSpec > ;
#[doc = "Field `UIF` reader - Update interrupt flag"] pub type UifR = crate :: BitReader ;
#[doc = "Field `UIF` writer - Update interrupt flag"] pub type UifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1IF` reader - Capture/compare 1 interrupt flag"] pub type Cc1ifR = crate :: BitReader ;
#[doc = "Field `CC1IF` writer - Capture/compare 1 interrupt flag"] pub type Cc1ifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2IF` reader - Capture/Compare 2 interrupt flag"] pub type Cc2ifR = crate :: BitReader ;
#[doc = "Field `CC2IF` writer - Capture/Compare 2 interrupt flag"] pub type Cc2ifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3IF` reader - Capture/Compare 3 interrupt flag"] pub type Cc3ifR = crate :: BitReader ;
#[doc = "Field `CC3IF` writer - Capture/Compare 3 interrupt flag"] pub type Cc3ifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4IF` reader - Capture/Compare 4 interrupt flag"] pub type Cc4ifR = crate :: BitReader ;
#[doc = "Field `CC4IF` writer - Capture/Compare 4 interrupt flag"] pub type Cc4ifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIF` reader - Trigger interrupt flag"] pub type TifR = crate :: BitReader ;
#[doc = "Field `TIF` writer - Trigger interrupt flag"] pub type TifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1OF` reader - Capture/Compare 1 overcapture flag"] pub type Cc1ofR = crate :: BitReader ;
#[doc = "Field `CC1OF` writer - Capture/Compare 1 overcapture flag"] pub type Cc1ofW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2OF` reader - Capture/compare 2 overcapture flag"] pub type Cc2ofR = crate :: BitReader ;
#[doc = "Field `CC2OF` writer - Capture/compare 2 overcapture flag"] pub type Cc2ofW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3OF` reader - Capture/Compare 3 overcapture flag"] pub type Cc3ofR = crate :: BitReader ;
#[doc = "Field `CC3OF` writer - Capture/Compare 3 overcapture flag"] pub type Cc3ofW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4OF` reader - Capture/Compare 4 overcapture flag"] pub type Cc4ofR = crate :: BitReader ;
#[doc = "Field `CC4OF` writer - Capture/Compare 4 overcapture flag"] pub type Cc4ofW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Update interrupt flag"]
#[inline (always)] pub fn uif (& self) -> UifR { UifR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Capture/compare 1 interrupt flag"]
#[inline (always)] pub fn cc1if (& self) -> Cc1ifR { Cc1ifR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Capture/Compare 2 interrupt flag"]
#[inline (always)] pub fn cc2if (& self) -> Cc2ifR { Cc2ifR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Capture/Compare 3 interrupt flag"]
#[inline (always)] pub fn cc3if (& self) -> Cc3ifR { Cc3ifR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Capture/Compare 4 interrupt flag"]
#[inline (always)] pub fn cc4if (& self) -> Cc4ifR { Cc4ifR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 6 - Trigger interrupt flag"]
#[inline (always)] pub fn tif (& self) -> TifR { TifR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 9 - Capture/Compare 1 overcapture flag"]
#[inline (always)] pub fn cc1of (& self) -> Cc1ofR { Cc1ofR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Capture/compare 2 overcapture flag"]
#[inline (always)] pub fn cc2of (& self) -> Cc2ofR { Cc2ofR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Capture/Compare 3 overcapture flag"]
#[inline (always)] pub fn cc3of (& self) -> Cc3ofR { Cc3ofR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Capture/Compare 4 overcapture flag"]
#[inline (always)] pub fn cc4of (& self) -> Cc4ofR { Cc4ofR :: new (((self . bits >> 12) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Update interrupt flag"]
#[inline (always)] pub fn uif (& mut self) -> UifW < '_ , SrSpec > { UifW :: new (self , 0) }
#[doc = "Bit 1 - Capture/compare 1 interrupt flag"]
#[inline (always)] pub fn cc1if (& mut self) -> Cc1ifW < '_ , SrSpec > { Cc1ifW :: new (self , 1) }
#[doc = "Bit 2 - Capture/Compare 2 interrupt flag"]
#[inline (always)] pub fn cc2if (& mut self) -> Cc2ifW < '_ , SrSpec > { Cc2ifW :: new (self , 2) }
#[doc = "Bit 3 - Capture/Compare 3 interrupt flag"]
#[inline (always)] pub fn cc3if (& mut self) -> Cc3ifW < '_ , SrSpec > { Cc3ifW :: new (self , 3) }
#[doc = "Bit 4 - Capture/Compare 4 interrupt flag"]
#[inline (always)] pub fn cc4if (& mut self) -> Cc4ifW < '_ , SrSpec > { Cc4ifW :: new (self , 4) }
#[doc = "Bit 6 - Trigger interrupt flag"]
#[inline (always)] pub fn tif (& mut self) -> TifW < '_ , SrSpec > { TifW :: new (self , 6) }
#[doc = "Bit 9 - Capture/Compare 1 overcapture flag"]
#[inline (always)] pub fn cc1of (& mut self) -> Cc1ofW < '_ , SrSpec > { Cc1ofW :: new (self , 9) }
#[doc = "Bit 10 - Capture/compare 2 overcapture flag"]
#[inline (always)] pub fn cc2of (& mut self) -> Cc2ofW < '_ , SrSpec > { Cc2ofW :: new (self , 10) }
#[doc = "Bit 11 - Capture/Compare 3 overcapture flag"]
#[inline (always)] pub fn cc3of (& mut self) -> Cc3ofW < '_ , SrSpec > { Cc3ofW :: new (self , 11) }
#[doc = "Bit 12 - Capture/Compare 4 overcapture flag"]
#[inline (always)] pub fn cc4of (& mut self) -> Cc4ofW < '_ , SrSpec > { Cc4ofW :: new (self , 12) } }
#[doc = "status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec ; impl crate :: RegisterSpec for SrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate :: Readable for SrSpec { }
#[doc = "`write(|w| ..)` method takes [`sr::W`](W) writer structure"] impl crate :: Writable for SrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR to value 0"] impl crate :: Resettable for SrSpec { } }
#[doc = "EGR (w) register accessor: event generation register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`egr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@egr`] module"]
#[doc (alias = "EGR")] pub type Egr = crate :: Reg < egr :: EgrSpec > ;
#[doc = "event generation register"] pub mod egr {
#[doc = "Register `EGR` writer"] pub type W = crate :: W < EgrSpec > ;
#[doc = "Field `UG` writer - Update generation"] pub type UgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1G` writer - Capture/compare 1 generation"] pub type Cc1gW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2G` writer - Capture/compare 2 generation"] pub type Cc2gW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3G` writer - Capture/compare 3 generation"] pub type Cc3gW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4G` writer - Capture/compare 4 generation"] pub type Cc4gW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TG` writer - Trigger generation"] pub type TgW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl W {
#[doc = "Bit 0 - Update generation"]
#[inline (always)] pub fn ug (& mut self) -> UgW < '_ , EgrSpec > { UgW :: new (self , 0) }
#[doc = "Bit 1 - Capture/compare 1 generation"]
#[inline (always)] pub fn cc1g (& mut self) -> Cc1gW < '_ , EgrSpec > { Cc1gW :: new (self , 1) }
#[doc = "Bit 2 - Capture/compare 2 generation"]
#[inline (always)] pub fn cc2g (& mut self) -> Cc2gW < '_ , EgrSpec > { Cc2gW :: new (self , 2) }
#[doc = "Bit 3 - Capture/compare 3 generation"]
#[inline (always)] pub fn cc3g (& mut self) -> Cc3gW < '_ , EgrSpec > { Cc3gW :: new (self , 3) }
#[doc = "Bit 4 - Capture/compare 4 generation"]
#[inline (always)] pub fn cc4g (& mut self) -> Cc4gW < '_ , EgrSpec > { Cc4gW :: new (self , 4) }
#[doc = "Bit 6 - Trigger generation"]
#[inline (always)] pub fn tg (& mut self) -> TgW < '_ , EgrSpec > { TgW :: new (self , 6) } }
#[doc = "event generation register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`egr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct EgrSpec ; impl crate :: RegisterSpec for EgrSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`egr::W`](W) writer structure"] impl crate :: Writable for EgrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EGR to value 0"] impl crate :: Resettable for EgrSpec { } }
#[doc = "CCMR1_Output (rw) register accessor: capture/compare mode register 1 (output mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_output::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_output::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccmr1_output`] module"]
#[doc (alias = "CCMR1_Output")] pub type Ccmr1Output = crate :: Reg < ccmr1_output :: Ccmr1OutputSpec > ;
#[doc = "capture/compare mode register 1 (output mode)"] pub mod ccmr1_output {
#[doc = "Register `CCMR1_Output` reader"] pub type R = crate :: R < Ccmr1OutputSpec > ;
#[doc = "Register `CCMR1_Output` writer"] pub type W = crate :: W < Ccmr1OutputSpec > ;
#[doc = "Field `CC1S` reader - Capture/Compare 1 selection"] pub type Cc1sR = crate :: FieldReader ;
#[doc = "Field `CC1S` writer - Capture/Compare 1 selection"] pub type Cc1sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `OC1FE` reader - Output compare 1 fast enable"] pub type Oc1feR = crate :: BitReader ;
#[doc = "Field `OC1FE` writer - Output compare 1 fast enable"] pub type Oc1feW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC1PE` reader - Output compare 1 preload enable"] pub type Oc1peR = crate :: BitReader ;
#[doc = "Field `OC1PE` writer - Output compare 1 preload enable"] pub type Oc1peW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC1M` reader - Output compare 1 mode"] pub type Oc1mR = crate :: FieldReader ;
#[doc = "Field `OC1M` writer - Output compare 1 mode"] pub type Oc1mW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `OC1CE` reader - Output compare 1 clear enable"] pub type Oc1ceR = crate :: BitReader ;
#[doc = "Field `OC1CE` writer - Output compare 1 clear enable"] pub type Oc1ceW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2S` reader - Capture/Compare 2 selection"] pub type Cc2sR = crate :: FieldReader ;
#[doc = "Field `CC2S` writer - Capture/Compare 2 selection"] pub type Cc2sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `OC2FE` reader - Output compare 2 fast enable"] pub type Oc2feR = crate :: BitReader ;
#[doc = "Field `OC2FE` writer - Output compare 2 fast enable"] pub type Oc2feW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC2PE` reader - Output compare 2 preload enable"] pub type Oc2peR = crate :: BitReader ;
#[doc = "Field `OC2PE` writer - Output compare 2 preload enable"] pub type Oc2peW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC2M` reader - Output compare 2 mode"] pub type Oc2mR = crate :: FieldReader ;
#[doc = "Field `OC2M` writer - Output compare 2 mode"] pub type Oc2mW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `OC2CE` reader - Output compare 2 clear enable"] pub type Oc2ceR = crate :: BitReader ;
#[doc = "Field `OC2CE` writer - Output compare 2 clear enable"] pub type Oc2ceW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& self) -> Cc1sR { Cc1sR :: new ((self . bits & 3) as u8) }
#[doc = "Bit 2 - Output compare 1 fast enable"]
#[inline (always)] pub fn oc1fe (& self) -> Oc1feR { Oc1feR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Output compare 1 preload enable"]
#[inline (always)] pub fn oc1pe (& self) -> Oc1peR { Oc1peR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:6 - Output compare 1 mode"]
#[inline (always)] pub fn oc1m (& self) -> Oc1mR { Oc1mR :: new (((self . bits >> 4) & 7) as u8) }
#[doc = "Bit 7 - Output compare 1 clear enable"]
#[inline (always)] pub fn oc1ce (& self) -> Oc1ceR { Oc1ceR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Capture/Compare 2 selection"]
#[inline (always)] pub fn cc2s (& self) -> Cc2sR { Cc2sR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bit 10 - Output compare 2 fast enable"]
#[inline (always)] pub fn oc2fe (& self) -> Oc2feR { Oc2feR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Output compare 2 preload enable"]
#[inline (always)] pub fn oc2pe (& self) -> Oc2peR { Oc2peR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:14 - Output compare 2 mode"]
#[inline (always)] pub fn oc2m (& self) -> Oc2mR { Oc2mR :: new (((self . bits >> 12) & 7) as u8) }
#[doc = "Bit 15 - Output compare 2 clear enable"]
#[inline (always)] pub fn oc2ce (& self) -> Oc2ceR { Oc2ceR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& mut self) -> Cc1sW < '_ , Ccmr1OutputSpec > { Cc1sW :: new (self , 0) }
#[doc = "Bit 2 - Output compare 1 fast enable"]
#[inline (always)] pub fn oc1fe (& mut self) -> Oc1feW < '_ , Ccmr1OutputSpec > { Oc1feW :: new (self , 2) }
#[doc = "Bit 3 - Output compare 1 preload enable"]
#[inline (always)] pub fn oc1pe (& mut self) -> Oc1peW < '_ , Ccmr1OutputSpec > { Oc1peW :: new (self , 3) }
#[doc = "Bits 4:6 - Output compare 1 mode"]
#[inline (always)] pub fn oc1m (& mut self) -> Oc1mW < '_ , Ccmr1OutputSpec > { Oc1mW :: new (self , 4) }
#[doc = "Bit 7 - Output compare 1 clear enable"]
#[inline (always)] pub fn oc1ce (& mut self) -> Oc1ceW < '_ , Ccmr1OutputSpec > { Oc1ceW :: new (self , 7) }
#[doc = "Bits 8:9 - Capture/Compare 2 selection"]
#[inline (always)] pub fn cc2s (& mut self) -> Cc2sW < '_ , Ccmr1OutputSpec > { Cc2sW :: new (self , 8) }
#[doc = "Bit 10 - Output compare 2 fast enable"]
#[inline (always)] pub fn oc2fe (& mut self) -> Oc2feW < '_ , Ccmr1OutputSpec > { Oc2feW :: new (self , 10) }
#[doc = "Bit 11 - Output compare 2 preload enable"]
#[inline (always)] pub fn oc2pe (& mut self) -> Oc2peW < '_ , Ccmr1OutputSpec > { Oc2peW :: new (self , 11) }
#[doc = "Bits 12:14 - Output compare 2 mode"]
#[inline (always)] pub fn oc2m (& mut self) -> Oc2mW < '_ , Ccmr1OutputSpec > { Oc2mW :: new (self , 12) }
#[doc = "Bit 15 - Output compare 2 clear enable"]
#[inline (always)] pub fn oc2ce (& mut self) -> Oc2ceW < '_ , Ccmr1OutputSpec > { Oc2ceW :: new (self , 15) } }
#[doc = "capture/compare mode register 1 (output mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_output::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_output::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccmr1OutputSpec ; impl crate :: RegisterSpec for Ccmr1OutputSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccmr1_output::R`](R) reader structure"] impl crate :: Readable for Ccmr1OutputSpec { }
#[doc = "`write(|w| ..)` method takes [`ccmr1_output::W`](W) writer structure"] impl crate :: Writable for Ccmr1OutputSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCMR1_Output to value 0"] impl crate :: Resettable for Ccmr1OutputSpec { } }
#[doc = "CCMR1_Input (rw) register accessor: capture/compare mode register 1 (input mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_input::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_input::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccmr1_input`] module"]
#[doc (alias = "CCMR1_Input")] pub type Ccmr1Input = crate :: Reg < ccmr1_input :: Ccmr1InputSpec > ;
#[doc = "capture/compare mode register 1 (input mode)"] pub mod ccmr1_input {
#[doc = "Register `CCMR1_Input` reader"] pub type R = crate :: R < Ccmr1InputSpec > ;
#[doc = "Register `CCMR1_Input` writer"] pub type W = crate :: W < Ccmr1InputSpec > ;
#[doc = "Field `CC1S` reader - Capture/Compare 1 selection"] pub type Cc1sR = crate :: FieldReader ;
#[doc = "Field `CC1S` writer - Capture/Compare 1 selection"] pub type Cc1sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC1PSC` reader - Input capture 1 prescaler"] pub type Ic1pscR = crate :: FieldReader ;
#[doc = "Field `IC1PSC` writer - Input capture 1 prescaler"] pub type Ic1pscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC1F` reader - Input capture 1 filter"] pub type Ic1fR = crate :: FieldReader ;
#[doc = "Field `IC1F` writer - Input capture 1 filter"] pub type Ic1fW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `CC2S` reader - Capture/compare 2 selection"] pub type Cc2sR = crate :: FieldReader ;
#[doc = "Field `CC2S` writer - Capture/compare 2 selection"] pub type Cc2sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC2PSC` reader - Input capture 2 prescaler"] pub type Ic2pscR = crate :: FieldReader ;
#[doc = "Field `IC2PSC` writer - Input capture 2 prescaler"] pub type Ic2pscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC2F` reader - Input capture 2 filter"] pub type Ic2fR = crate :: FieldReader ;
#[doc = "Field `IC2F` writer - Input capture 2 filter"] pub type Ic2fW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ; impl R {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& self) -> Cc1sR { Cc1sR :: new ((self . bits & 3) as u8) }
#[doc = "Bits 2:3 - Input capture 1 prescaler"]
#[inline (always)] pub fn ic1psc (& self) -> Ic1pscR { Ic1pscR :: new (((self . bits >> 2) & 3) as u8) }
#[doc = "Bits 4:7 - Input capture 1 filter"]
#[inline (always)] pub fn ic1f (& self) -> Ic1fR { Ic1fR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:9 - Capture/compare 2 selection"]
#[inline (always)] pub fn cc2s (& self) -> Cc2sR { Cc2sR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - Input capture 2 prescaler"]
#[inline (always)] pub fn ic2psc (& self) -> Ic2pscR { Ic2pscR :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bits 12:15 - Input capture 2 filter"]
#[inline (always)] pub fn ic2f (& self) -> Ic2fR { Ic2fR :: new (((self . bits >> 12) & 0x0f) as u8) } } impl W {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& mut self) -> Cc1sW < '_ , Ccmr1InputSpec > { Cc1sW :: new (self , 0) }
#[doc = "Bits 2:3 - Input capture 1 prescaler"]
#[inline (always)] pub fn ic1psc (& mut self) -> Ic1pscW < '_ , Ccmr1InputSpec > { Ic1pscW :: new (self , 2) }
#[doc = "Bits 4:7 - Input capture 1 filter"]
#[inline (always)] pub fn ic1f (& mut self) -> Ic1fW < '_ , Ccmr1InputSpec > { Ic1fW :: new (self , 4) }
#[doc = "Bits 8:9 - Capture/compare 2 selection"]
#[inline (always)] pub fn cc2s (& mut self) -> Cc2sW < '_ , Ccmr1InputSpec > { Cc2sW :: new (self , 8) }
#[doc = "Bits 10:11 - Input capture 2 prescaler"]
#[inline (always)] pub fn ic2psc (& mut self) -> Ic2pscW < '_ , Ccmr1InputSpec > { Ic2pscW :: new (self , 10) }
#[doc = "Bits 12:15 - Input capture 2 filter"]
#[inline (always)] pub fn ic2f (& mut self) -> Ic2fW < '_ , Ccmr1InputSpec > { Ic2fW :: new (self , 12) } }
#[doc = "capture/compare mode register 1 (input mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_input::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_input::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccmr1InputSpec ; impl crate :: RegisterSpec for Ccmr1InputSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccmr1_input::R`](R) reader structure"] impl crate :: Readable for Ccmr1InputSpec { }
#[doc = "`write(|w| ..)` method takes [`ccmr1_input::W`](W) writer structure"] impl crate :: Writable for Ccmr1InputSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCMR1_Input to value 0"] impl crate :: Resettable for Ccmr1InputSpec { } }
#[doc = "CCMR2_Output (rw) register accessor: capture/compare mode register 2 (output mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr2_output::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr2_output::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccmr2_output`] module"]
#[doc (alias = "CCMR2_Output")] pub type Ccmr2Output = crate :: Reg < ccmr2_output :: Ccmr2OutputSpec > ;
#[doc = "capture/compare mode register 2 (output mode)"] pub mod ccmr2_output {
#[doc = "Register `CCMR2_Output` reader"] pub type R = crate :: R < Ccmr2OutputSpec > ;
#[doc = "Register `CCMR2_Output` writer"] pub type W = crate :: W < Ccmr2OutputSpec > ;
#[doc = "Field `CC3S` reader - Capture/Compare 3 selection"] pub type Cc3sR = crate :: FieldReader ;
#[doc = "Field `CC3S` writer - Capture/Compare 3 selection"] pub type Cc3sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `OC3FE` reader - Output compare 3 fast enable"] pub type Oc3feR = crate :: BitReader ;
#[doc = "Field `OC3FE` writer - Output compare 3 fast enable"] pub type Oc3feW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC3PE` reader - Output compare 3 preload enable"] pub type Oc3peR = crate :: BitReader ;
#[doc = "Field `OC3PE` writer - Output compare 3 preload enable"] pub type Oc3peW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC3M` reader - Output compare 3 mode"] pub type Oc3mR = crate :: FieldReader ;
#[doc = "Field `OC3M` writer - Output compare 3 mode"] pub type Oc3mW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `OC3CE` reader - Output compare 3 clear enable"] pub type Oc3ceR = crate :: BitReader ;
#[doc = "Field `OC3CE` writer - Output compare 3 clear enable"] pub type Oc3ceW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4S` reader - Capture/Compare 4 selection"] pub type Cc4sR = crate :: FieldReader ;
#[doc = "Field `CC4S` writer - Capture/Compare 4 selection"] pub type Cc4sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `OC4FE` reader - Output compare 4 fast enable"] pub type Oc4feR = crate :: BitReader ;
#[doc = "Field `OC4FE` writer - Output compare 4 fast enable"] pub type Oc4feW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC4PE` reader - Output compare 4 preload enable"] pub type Oc4peR = crate :: BitReader ;
#[doc = "Field `OC4PE` writer - Output compare 4 preload enable"] pub type Oc4peW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC4M` reader - Output compare 4 mode"] pub type Oc4mR = crate :: FieldReader ;
#[doc = "Field `OC4M` writer - Output compare 4 mode"] pub type Oc4mW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `O24CE` reader - Output compare 4 clear enable"] pub type O24ceR = crate :: BitReader ;
#[doc = "Field `O24CE` writer - Output compare 4 clear enable"] pub type O24ceW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:1 - Capture/Compare 3 selection"]
#[inline (always)] pub fn cc3s (& self) -> Cc3sR { Cc3sR :: new ((self . bits & 3) as u8) }
#[doc = "Bit 2 - Output compare 3 fast enable"]
#[inline (always)] pub fn oc3fe (& self) -> Oc3feR { Oc3feR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Output compare 3 preload enable"]
#[inline (always)] pub fn oc3pe (& self) -> Oc3peR { Oc3peR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:6 - Output compare 3 mode"]
#[inline (always)] pub fn oc3m (& self) -> Oc3mR { Oc3mR :: new (((self . bits >> 4) & 7) as u8) }
#[doc = "Bit 7 - Output compare 3 clear enable"]
#[inline (always)] pub fn oc3ce (& self) -> Oc3ceR { Oc3ceR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Capture/Compare 4 selection"]
#[inline (always)] pub fn cc4s (& self) -> Cc4sR { Cc4sR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bit 10 - Output compare 4 fast enable"]
#[inline (always)] pub fn oc4fe (& self) -> Oc4feR { Oc4feR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Output compare 4 preload enable"]
#[inline (always)] pub fn oc4pe (& self) -> Oc4peR { Oc4peR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:14 - Output compare 4 mode"]
#[inline (always)] pub fn oc4m (& self) -> Oc4mR { Oc4mR :: new (((self . bits >> 12) & 7) as u8) }
#[doc = "Bit 15 - Output compare 4 clear enable"]
#[inline (always)] pub fn o24ce (& self) -> O24ceR { O24ceR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:1 - Capture/Compare 3 selection"]
#[inline (always)] pub fn cc3s (& mut self) -> Cc3sW < '_ , Ccmr2OutputSpec > { Cc3sW :: new (self , 0) }
#[doc = "Bit 2 - Output compare 3 fast enable"]
#[inline (always)] pub fn oc3fe (& mut self) -> Oc3feW < '_ , Ccmr2OutputSpec > { Oc3feW :: new (self , 2) }
#[doc = "Bit 3 - Output compare 3 preload enable"]
#[inline (always)] pub fn oc3pe (& mut self) -> Oc3peW < '_ , Ccmr2OutputSpec > { Oc3peW :: new (self , 3) }
#[doc = "Bits 4:6 - Output compare 3 mode"]
#[inline (always)] pub fn oc3m (& mut self) -> Oc3mW < '_ , Ccmr2OutputSpec > { Oc3mW :: new (self , 4) }
#[doc = "Bit 7 - Output compare 3 clear enable"]
#[inline (always)] pub fn oc3ce (& mut self) -> Oc3ceW < '_ , Ccmr2OutputSpec > { Oc3ceW :: new (self , 7) }
#[doc = "Bits 8:9 - Capture/Compare 4 selection"]
#[inline (always)] pub fn cc4s (& mut self) -> Cc4sW < '_ , Ccmr2OutputSpec > { Cc4sW :: new (self , 8) }
#[doc = "Bit 10 - Output compare 4 fast enable"]
#[inline (always)] pub fn oc4fe (& mut self) -> Oc4feW < '_ , Ccmr2OutputSpec > { Oc4feW :: new (self , 10) }
#[doc = "Bit 11 - Output compare 4 preload enable"]
#[inline (always)] pub fn oc4pe (& mut self) -> Oc4peW < '_ , Ccmr2OutputSpec > { Oc4peW :: new (self , 11) }
#[doc = "Bits 12:14 - Output compare 4 mode"]
#[inline (always)] pub fn oc4m (& mut self) -> Oc4mW < '_ , Ccmr2OutputSpec > { Oc4mW :: new (self , 12) }
#[doc = "Bit 15 - Output compare 4 clear enable"]
#[inline (always)] pub fn o24ce (& mut self) -> O24ceW < '_ , Ccmr2OutputSpec > { O24ceW :: new (self , 15) } }
#[doc = "capture/compare mode register 2 (output mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr2_output::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr2_output::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccmr2OutputSpec ; impl crate :: RegisterSpec for Ccmr2OutputSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccmr2_output::R`](R) reader structure"] impl crate :: Readable for Ccmr2OutputSpec { }
#[doc = "`write(|w| ..)` method takes [`ccmr2_output::W`](W) writer structure"] impl crate :: Writable for Ccmr2OutputSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCMR2_Output to value 0"] impl crate :: Resettable for Ccmr2OutputSpec { } }
#[doc = "CCMR2_Input (rw) register accessor: capture/compare mode register 2 (input mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr2_input::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr2_input::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccmr2_input`] module"]
#[doc (alias = "CCMR2_Input")] pub type Ccmr2Input = crate :: Reg < ccmr2_input :: Ccmr2InputSpec > ;
#[doc = "capture/compare mode register 2 (input mode)"] pub mod ccmr2_input {
#[doc = "Register `CCMR2_Input` reader"] pub type R = crate :: R < Ccmr2InputSpec > ;
#[doc = "Register `CCMR2_Input` writer"] pub type W = crate :: W < Ccmr2InputSpec > ;
#[doc = "Field `CC3S` reader - Capture/Compare 3 selection"] pub type Cc3sR = crate :: FieldReader ;
#[doc = "Field `CC3S` writer - Capture/Compare 3 selection"] pub type Cc3sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC3PSC` reader - Input capture 3 prescaler"] pub type Ic3pscR = crate :: FieldReader ;
#[doc = "Field `IC3PSC` writer - Input capture 3 prescaler"] pub type Ic3pscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC3F` reader - Input capture 3 filter"] pub type Ic3fR = crate :: FieldReader ;
#[doc = "Field `IC3F` writer - Input capture 3 filter"] pub type Ic3fW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `CC4S` reader - Capture/Compare 4 selection"] pub type Cc4sR = crate :: FieldReader ;
#[doc = "Field `CC4S` writer - Capture/Compare 4 selection"] pub type Cc4sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC4PSC` reader - Input capture 4 prescaler"] pub type Ic4pscR = crate :: FieldReader ;
#[doc = "Field `IC4PSC` writer - Input capture 4 prescaler"] pub type Ic4pscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC4F` reader - Input capture 4 filter"] pub type Ic4fR = crate :: FieldReader ;
#[doc = "Field `IC4F` writer - Input capture 4 filter"] pub type Ic4fW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ; impl R {
#[doc = "Bits 0:1 - Capture/Compare 3 selection"]
#[inline (always)] pub fn cc3s (& self) -> Cc3sR { Cc3sR :: new ((self . bits & 3) as u8) }
#[doc = "Bits 2:3 - Input capture 3 prescaler"]
#[inline (always)] pub fn ic3psc (& self) -> Ic3pscR { Ic3pscR :: new (((self . bits >> 2) & 3) as u8) }
#[doc = "Bits 4:7 - Input capture 3 filter"]
#[inline (always)] pub fn ic3f (& self) -> Ic3fR { Ic3fR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:9 - Capture/Compare 4 selection"]
#[inline (always)] pub fn cc4s (& self) -> Cc4sR { Cc4sR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - Input capture 4 prescaler"]
#[inline (always)] pub fn ic4psc (& self) -> Ic4pscR { Ic4pscR :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bits 12:15 - Input capture 4 filter"]
#[inline (always)] pub fn ic4f (& self) -> Ic4fR { Ic4fR :: new (((self . bits >> 12) & 0x0f) as u8) } } impl W {
#[doc = "Bits 0:1 - Capture/Compare 3 selection"]
#[inline (always)] pub fn cc3s (& mut self) -> Cc3sW < '_ , Ccmr2InputSpec > { Cc3sW :: new (self , 0) }
#[doc = "Bits 2:3 - Input capture 3 prescaler"]
#[inline (always)] pub fn ic3psc (& mut self) -> Ic3pscW < '_ , Ccmr2InputSpec > { Ic3pscW :: new (self , 2) }
#[doc = "Bits 4:7 - Input capture 3 filter"]
#[inline (always)] pub fn ic3f (& mut self) -> Ic3fW < '_ , Ccmr2InputSpec > { Ic3fW :: new (self , 4) }
#[doc = "Bits 8:9 - Capture/Compare 4 selection"]
#[inline (always)] pub fn cc4s (& mut self) -> Cc4sW < '_ , Ccmr2InputSpec > { Cc4sW :: new (self , 8) }
#[doc = "Bits 10:11 - Input capture 4 prescaler"]
#[inline (always)] pub fn ic4psc (& mut self) -> Ic4pscW < '_ , Ccmr2InputSpec > { Ic4pscW :: new (self , 10) }
#[doc = "Bits 12:15 - Input capture 4 filter"]
#[inline (always)] pub fn ic4f (& mut self) -> Ic4fW < '_ , Ccmr2InputSpec > { Ic4fW :: new (self , 12) } }
#[doc = "capture/compare mode register 2 (input mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr2_input::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr2_input::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccmr2InputSpec ; impl crate :: RegisterSpec for Ccmr2InputSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccmr2_input::R`](R) reader structure"] impl crate :: Readable for Ccmr2InputSpec { }
#[doc = "`write(|w| ..)` method takes [`ccmr2_input::W`](W) writer structure"] impl crate :: Writable for Ccmr2InputSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCMR2_Input to value 0"] impl crate :: Resettable for Ccmr2InputSpec { } }
#[doc = "CCER (rw) register accessor: capture/compare enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`ccer::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccer::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccer`] module"]
#[doc (alias = "CCER")] pub type Ccer = crate :: Reg < ccer :: CcerSpec > ;
#[doc = "capture/compare enable register"] pub mod ccer {
#[doc = "Register `CCER` reader"] pub type R = crate :: R < CcerSpec > ;
#[doc = "Register `CCER` writer"] pub type W = crate :: W < CcerSpec > ;
#[doc = "Field `CC1E` reader - Capture/Compare 1 output enable"] pub type Cc1eR = crate :: BitReader ;
#[doc = "Field `CC1E` writer - Capture/Compare 1 output enable"] pub type Cc1eW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1P` reader - Capture/Compare 1 output Polarity"] pub type Cc1pR = crate :: BitReader ;
#[doc = "Field `CC1P` writer - Capture/Compare 1 output Polarity"] pub type Cc1pW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2E` reader - Capture/Compare 2 output enable"] pub type Cc2eR = crate :: BitReader ;
#[doc = "Field `CC2E` writer - Capture/Compare 2 output enable"] pub type Cc2eW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2P` reader - Capture/Compare 2 output Polarity"] pub type Cc2pR = crate :: BitReader ;
#[doc = "Field `CC2P` writer - Capture/Compare 2 output Polarity"] pub type Cc2pW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3E` reader - Capture/Compare 3 output enable"] pub type Cc3eR = crate :: BitReader ;
#[doc = "Field `CC3E` writer - Capture/Compare 3 output enable"] pub type Cc3eW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC3P` reader - Capture/Compare 3 output Polarity"] pub type Cc3pR = crate :: BitReader ;
#[doc = "Field `CC3P` writer - Capture/Compare 3 output Polarity"] pub type Cc3pW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4E` reader - Capture/Compare 4 output enable"] pub type Cc4eR = crate :: BitReader ;
#[doc = "Field `CC4E` writer - Capture/Compare 4 output enable"] pub type Cc4eW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC4P` reader - Capture/Compare 3 output Polarity"] pub type Cc4pR = crate :: BitReader ;
#[doc = "Field `CC4P` writer - Capture/Compare 3 output Polarity"] pub type Cc4pW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Capture/Compare 1 output enable"]
#[inline (always)] pub fn cc1e (& self) -> Cc1eR { Cc1eR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Capture/Compare 1 output Polarity"]
#[inline (always)] pub fn cc1p (& self) -> Cc1pR { Cc1pR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 4 - Capture/Compare 2 output enable"]
#[inline (always)] pub fn cc2e (& self) -> Cc2eR { Cc2eR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Capture/Compare 2 output Polarity"]
#[inline (always)] pub fn cc2p (& self) -> Cc2pR { Cc2pR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 8 - Capture/Compare 3 output enable"]
#[inline (always)] pub fn cc3e (& self) -> Cc3eR { Cc3eR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Capture/Compare 3 output Polarity"]
#[inline (always)] pub fn cc3p (& self) -> Cc3pR { Cc3pR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 12 - Capture/Compare 4 output enable"]
#[inline (always)] pub fn cc4e (& self) -> Cc4eR { Cc4eR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Capture/Compare 3 output Polarity"]
#[inline (always)] pub fn cc4p (& self) -> Cc4pR { Cc4pR :: new (((self . bits >> 13) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Capture/Compare 1 output enable"]
#[inline (always)] pub fn cc1e (& mut self) -> Cc1eW < '_ , CcerSpec > { Cc1eW :: new (self , 0) }
#[doc = "Bit 1 - Capture/Compare 1 output Polarity"]
#[inline (always)] pub fn cc1p (& mut self) -> Cc1pW < '_ , CcerSpec > { Cc1pW :: new (self , 1) }
#[doc = "Bit 4 - Capture/Compare 2 output enable"]
#[inline (always)] pub fn cc2e (& mut self) -> Cc2eW < '_ , CcerSpec > { Cc2eW :: new (self , 4) }
#[doc = "Bit 5 - Capture/Compare 2 output Polarity"]
#[inline (always)] pub fn cc2p (& mut self) -> Cc2pW < '_ , CcerSpec > { Cc2pW :: new (self , 5) }
#[doc = "Bit 8 - Capture/Compare 3 output enable"]
#[inline (always)] pub fn cc3e (& mut self) -> Cc3eW < '_ , CcerSpec > { Cc3eW :: new (self , 8) }
#[doc = "Bit 9 - Capture/Compare 3 output Polarity"]
#[inline (always)] pub fn cc3p (& mut self) -> Cc3pW < '_ , CcerSpec > { Cc3pW :: new (self , 9) }
#[doc = "Bit 12 - Capture/Compare 4 output enable"]
#[inline (always)] pub fn cc4e (& mut self) -> Cc4eW < '_ , CcerSpec > { Cc4eW :: new (self , 12) }
#[doc = "Bit 13 - Capture/Compare 3 output Polarity"]
#[inline (always)] pub fn cc4p (& mut self) -> Cc4pW < '_ , CcerSpec > { Cc4pW :: new (self , 13) } }
#[doc = "capture/compare enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`ccer::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccer::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CcerSpec ; impl crate :: RegisterSpec for CcerSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccer::R`](R) reader structure"] impl crate :: Readable for CcerSpec { }
#[doc = "`write(|w| ..)` method takes [`ccer::W`](W) writer structure"] impl crate :: Writable for CcerSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCER to value 0"] impl crate :: Resettable for CcerSpec { } }
#[doc = "CNT (rw) register accessor: counter\n\nYou can [`read`](crate::Reg::read) this register and get [`cnt::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnt::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cnt`] module"]
#[doc (alias = "CNT")] pub type Cnt = crate :: Reg < cnt :: CntSpec > ;
#[doc = "counter"] pub mod cnt {
#[doc = "Register `CNT` reader"] pub type R = crate :: R < CntSpec > ;
#[doc = "Register `CNT` writer"] pub type W = crate :: W < CntSpec > ;
#[doc = "Field `CNT` reader - counter value"] pub type CntR = crate :: FieldReader < u16 > ;
#[doc = "Field `CNT` writer - counter value"] pub type CntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - counter value"]
#[inline (always)] pub fn cnt (& self) -> CntR { CntR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - counter value"]
#[inline (always)] pub fn cnt (& mut self) -> CntW < '_ , CntSpec > { CntW :: new (self , 0) } }
#[doc = "counter\n\nYou can [`read`](crate::Reg::read) this register and get [`cnt::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnt::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CntSpec ; impl crate :: RegisterSpec for CntSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cnt::R`](R) reader structure"] impl crate :: Readable for CntSpec { }
#[doc = "`write(|w| ..)` method takes [`cnt::W`](W) writer structure"] impl crate :: Writable for CntSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNT to value 0"] impl crate :: Resettable for CntSpec { } }
#[doc = "PSC (rw) register accessor: prescaler\n\nYou can [`read`](crate::Reg::read) this register and get [`psc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`psc::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@psc`] module"]
#[doc (alias = "PSC")] pub type Psc = crate :: Reg < psc :: PscSpec > ;
#[doc = "prescaler"] pub mod psc {
#[doc = "Register `PSC` reader"] pub type R = crate :: R < PscSpec > ;
#[doc = "Register `PSC` writer"] pub type W = crate :: W < PscSpec > ;
#[doc = "Field `PSC` reader - Prescaler value"] pub type PscR = crate :: FieldReader < u16 > ;
#[doc = "Field `PSC` writer - Prescaler value"] pub type PscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Prescaler value"]
#[inline (always)] pub fn psc (& self) -> PscR { PscR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Prescaler value"]
#[inline (always)] pub fn psc (& mut self) -> PscW < '_ , PscSpec > { PscW :: new (self , 0) } }
#[doc = "prescaler\n\nYou can [`read`](crate::Reg::read) this register and get [`psc::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`psc::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PscSpec ; impl crate :: RegisterSpec for PscSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`psc::R`](R) reader structure"] impl crate :: Readable for PscSpec { }
#[doc = "`write(|w| ..)` method takes [`psc::W`](W) writer structure"] impl crate :: Writable for PscSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PSC to value 0"] impl crate :: Resettable for PscSpec { } }
#[doc = "ARR (rw) register accessor: auto-reload register\n\nYou can [`read`](crate::Reg::read) this register and get [`arr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@arr`] module"]
#[doc (alias = "ARR")] pub type Arr = crate :: Reg < arr :: ArrSpec > ;
#[doc = "auto-reload register"] pub mod arr {
#[doc = "Register `ARR` reader"] pub type R = crate :: R < ArrSpec > ;
#[doc = "Register `ARR` writer"] pub type W = crate :: W < ArrSpec > ;
#[doc = "Field `ARR` reader - Auto-reload value"] pub type ArrR = crate :: FieldReader < u16 > ;
#[doc = "Field `ARR` writer - Auto-reload value"] pub type ArrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Auto-reload value"]
#[inline (always)] pub fn arr (& self) -> ArrR { ArrR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Auto-reload value"]
#[inline (always)] pub fn arr (& mut self) -> ArrW < '_ , ArrSpec > { ArrW :: new (self , 0) } }
#[doc = "auto-reload register\n\nYou can [`read`](crate::Reg::read) this register and get [`arr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct ArrSpec ; impl crate :: RegisterSpec for ArrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`arr::R`](R) reader structure"] impl crate :: Readable for ArrSpec { }
#[doc = "`write(|w| ..)` method takes [`arr::W`](W) writer structure"] impl crate :: Writable for ArrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets ARR to value 0"] impl crate :: Resettable for ArrSpec { } }
#[doc = "CCR1 (rw) register accessor: capture/compare register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr1`] module"]
#[doc (alias = "CCR1")] pub type Ccr1 = crate :: Reg < ccr1 :: Ccr1Spec > ;
#[doc = "capture/compare register 1"] pub mod ccr1 {
#[doc = "Register `CCR1` reader"] pub type R = crate :: R < Ccr1Spec > ;
#[doc = "Register `CCR1` writer"] pub type W = crate :: W < Ccr1Spec > ;
#[doc = "Field `CCR1` reader - Capture/Compare 1 value"] pub type Ccr1R = crate :: FieldReader < u16 > ;
#[doc = "Field `CCR1` writer - Capture/Compare 1 value"] pub type Ccr1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Capture/Compare 1 value"]
#[inline (always)] pub fn ccr1 (& self) -> Ccr1R { Ccr1R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Capture/Compare 1 value"]
#[inline (always)] pub fn ccr1 (& mut self) -> Ccr1W < '_ , Ccr1Spec > { Ccr1W :: new (self , 0) } }
#[doc = "capture/compare register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr1Spec ; impl crate :: RegisterSpec for Ccr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr1::R`](R) reader structure"] impl crate :: Readable for Ccr1Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr1::W`](W) writer structure"] impl crate :: Writable for Ccr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR1 to value 0"] impl crate :: Resettable for Ccr1Spec { } }
#[doc = "CCR2 (rw) register accessor: capture/compare register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr2`] module"]
#[doc (alias = "CCR2")] pub type Ccr2 = crate :: Reg < ccr2 :: Ccr2Spec > ;
#[doc = "capture/compare register 2"] pub mod ccr2 {
#[doc = "Register `CCR2` reader"] pub type R = crate :: R < Ccr2Spec > ;
#[doc = "Register `CCR2` writer"] pub type W = crate :: W < Ccr2Spec > ;
#[doc = "Field `CCR2` reader - Capture/Compare 2 value"] pub type Ccr2R = crate :: FieldReader < u16 > ;
#[doc = "Field `CCR2` writer - Capture/Compare 2 value"] pub type Ccr2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Capture/Compare 2 value"]
#[inline (always)] pub fn ccr2 (& self) -> Ccr2R { Ccr2R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Capture/Compare 2 value"]
#[inline (always)] pub fn ccr2 (& mut self) -> Ccr2W < '_ , Ccr2Spec > { Ccr2W :: new (self , 0) } }
#[doc = "capture/compare register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr2Spec ; impl crate :: RegisterSpec for Ccr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr2::R`](R) reader structure"] impl crate :: Readable for Ccr2Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr2::W`](W) writer structure"] impl crate :: Writable for Ccr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR2 to value 0"] impl crate :: Resettable for Ccr2Spec { } }
#[doc = "CCR3 (rw) register accessor: capture/compare register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr3`] module"]
#[doc (alias = "CCR3")] pub type Ccr3 = crate :: Reg < ccr3 :: Ccr3Spec > ;
#[doc = "capture/compare register 3"] pub mod ccr3 {
#[doc = "Register `CCR3` reader"] pub type R = crate :: R < Ccr3Spec > ;
#[doc = "Register `CCR3` writer"] pub type W = crate :: W < Ccr3Spec > ;
#[doc = "Field `CCR3` reader - Capture/Compare value"] pub type Ccr3R = crate :: FieldReader < u16 > ;
#[doc = "Field `CCR3` writer - Capture/Compare value"] pub type Ccr3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Capture/Compare value"]
#[inline (always)] pub fn ccr3 (& self) -> Ccr3R { Ccr3R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Capture/Compare value"]
#[inline (always)] pub fn ccr3 (& mut self) -> Ccr3W < '_ , Ccr3Spec > { Ccr3W :: new (self , 0) } }
#[doc = "capture/compare register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr3Spec ; impl crate :: RegisterSpec for Ccr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr3::R`](R) reader structure"] impl crate :: Readable for Ccr3Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr3::W`](W) writer structure"] impl crate :: Writable for Ccr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR3 to value 0"] impl crate :: Resettable for Ccr3Spec { } }
#[doc = "CCR4 (rw) register accessor: capture/compare register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr4`] module"]
#[doc (alias = "CCR4")] pub type Ccr4 = crate :: Reg < ccr4 :: Ccr4Spec > ;
#[doc = "capture/compare register 4"] pub mod ccr4 {
#[doc = "Register `CCR4` reader"] pub type R = crate :: R < Ccr4Spec > ;
#[doc = "Register `CCR4` writer"] pub type W = crate :: W < Ccr4Spec > ;
#[doc = "Field `CCR4` reader - Capture/Compare value"] pub type Ccr4R = crate :: FieldReader < u16 > ;
#[doc = "Field `CCR4` writer - Capture/Compare value"] pub type Ccr4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Capture/Compare value"]
#[inline (always)] pub fn ccr4 (& self) -> Ccr4R { Ccr4R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Capture/Compare value"]
#[inline (always)] pub fn ccr4 (& mut self) -> Ccr4W < '_ , Ccr4Spec > { Ccr4W :: new (self , 0) } }
#[doc = "capture/compare register 4\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr4Spec ; impl crate :: RegisterSpec for Ccr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr4::R`](R) reader structure"] impl crate :: Readable for Ccr4Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr4::W`](W) writer structure"] impl crate :: Writable for Ccr4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR4 to value 0"] impl crate :: Resettable for Ccr4Spec { } }
#[doc = "DCR (rw) register accessor: DMA control register\n\nYou can [`read`](crate::Reg::read) this register and get [`dcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dcr`] module"]
#[doc (alias = "DCR")] pub type Dcr = crate :: Reg < dcr :: DcrSpec > ;
#[doc = "DMA control register"] pub mod dcr {
#[doc = "Register `DCR` reader"] pub type R = crate :: R < DcrSpec > ;
#[doc = "Register `DCR` writer"] pub type W = crate :: W < DcrSpec > ;
#[doc = "Field `DBA` reader - DMA base address"] pub type DbaR = crate :: FieldReader ;
#[doc = "Field `DBA` writer - DMA base address"] pub type DbaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `DBL` reader - DMA burst length"] pub type DblR = crate :: FieldReader ;
#[doc = "Field `DBL` writer - DMA burst length"] pub type DblW < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ; impl R {
#[doc = "Bits 0:4 - DMA base address"]
#[inline (always)] pub fn dba (& self) -> DbaR { DbaR :: new ((self . bits & 0x1f) as u8) }
#[doc = "Bits 8:12 - DMA burst length"]
#[inline (always)] pub fn dbl (& self) -> DblR { DblR :: new (((self . bits >> 8) & 0x1f) as u8) } } impl W {
#[doc = "Bits 0:4 - DMA base address"]
#[inline (always)] pub fn dba (& mut self) -> DbaW < '_ , DcrSpec > { DbaW :: new (self , 0) }
#[doc = "Bits 8:12 - DMA burst length"]
#[inline (always)] pub fn dbl (& mut self) -> DblW < '_ , DcrSpec > { DblW :: new (self , 8) } }
#[doc = "DMA control register\n\nYou can [`read`](crate::Reg::read) this register and get [`dcr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dcr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DcrSpec ; impl crate :: RegisterSpec for DcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dcr::R`](R) reader structure"] impl crate :: Readable for DcrSpec { }
#[doc = "`write(|w| ..)` method takes [`dcr::W`](W) writer structure"] impl crate :: Writable for DcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DCR to value 0"] impl crate :: Resettable for DcrSpec { } }
#[doc = "DMAR (rw) register accessor: DMA address for full transfer\n\nYou can [`read`](crate::Reg::read) this register and get [`dmar::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmar::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmar`] module"]
#[doc (alias = "DMAR")] pub type Dmar = crate :: Reg < dmar :: DmarSpec > ;
#[doc = "DMA address for full transfer"] pub mod dmar {
#[doc = "Register `DMAR` reader"] pub type R = crate :: R < DmarSpec > ;
#[doc = "Register `DMAR` writer"] pub type W = crate :: W < DmarSpec > ;
#[doc = "Field `DMAB` reader - DMA register for burst accesses"] pub type DmabR = crate :: FieldReader < u16 > ;
#[doc = "Field `DMAB` writer - DMA register for burst accesses"] pub type DmabW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - DMA register for burst accesses"]
#[inline (always)] pub fn dmab (& self) -> DmabR { DmabR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - DMA register for burst accesses"]
#[inline (always)] pub fn dmab (& mut self) -> DmabW < '_ , DmarSpec > { DmabW :: new (self , 0) } }
#[doc = "DMA address for full transfer\n\nYou can [`read`](crate::Reg::read) this register and get [`dmar::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmar::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmarSpec ; impl crate :: RegisterSpec for DmarSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmar::R`](R) reader structure"] impl crate :: Readable for DmarSpec { }
#[doc = "`write(|w| ..)` method takes [`dmar::W`](W) writer structure"] impl crate :: Writable for DmarSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DMAR to value 0"] impl crate :: Resettable for DmarSpec { } } }
#[doc = "General purpose timer"] pub type Tim3 = crate :: Periph < tim2 :: RegisterBlock , 0x4000_0400 > ; impl core :: fmt :: Debug for Tim3 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Tim3") . finish () } }
#[doc = "General purpose timer"] pub use self :: tim2 as tim3 ;
#[doc = "General purpose timer"] pub type Tim4 = crate :: Periph < tim2 :: RegisterBlock , 0x4000_0800 > ; impl core :: fmt :: Debug for Tim4 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Tim4") . finish () } }
#[doc = "General purpose timer"] pub use self :: tim2 as tim4 ;
#[doc = "General purpose timer"] pub type Tim5 = crate :: Periph < tim2 :: RegisterBlock , 0x4000_0c00 > ; impl core :: fmt :: Debug for Tim5 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Tim5") . finish () } }
#[doc = "General purpose timer"] pub use self :: tim2 as tim5 ;
#[doc = "General purpose timer"] pub type Tim9 = crate :: Periph < tim9 :: RegisterBlock , 0x4001_4c00 > ; impl core :: fmt :: Debug for Tim9 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Tim9") . finish () } }
#[doc = "General purpose timer"] pub mod tim9 {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { cr1 : Cr1 , cr2 : Cr2 , smcr : Smcr , dier : Dier , sr : Sr , egr : Egr , _reserved_6_ccmr1 : [u8 ; 0x04] , _reserved7 : [u8 ; 0x04] , ccer : Ccer , cnt : Cnt , psc : Psc , arr : Arr , _reserved11 : [u8 ; 0x04] , ccr1 : Ccr1 , ccr2 : Ccr2 , } impl RegisterBlock {
#[doc = "0x00 - control register 1"]
#[inline (always)] pub const fn cr1 (& self) -> & Cr1 { & self . cr1 }
#[doc = "0x04 - control register 2"]
#[inline (always)] pub const fn cr2 (& self) -> & Cr2 { & self . cr2 }
#[doc = "0x08 - slave mode control register"]
#[inline (always)] pub const fn smcr (& self) -> & Smcr { & self . smcr }
#[doc = "0x0c - DMA/Interrupt enable register"]
#[inline (always)] pub const fn dier (& self) -> & Dier { & self . dier }
#[doc = "0x10 - status register"]
#[inline (always)] pub const fn sr (& self) -> & Sr { & self . sr }
#[doc = "0x14 - event generation register"]
#[inline (always)] pub const fn egr (& self) -> & Egr { & self . egr }
#[doc = "0x18 - capture/compare mode register 1 (input mode)"]
#[inline (always)] pub const fn ccmr1_input (& self) -> & Ccmr1Input { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (24) . cast () } }
#[doc = "0x18 - capture/compare mode register 1 (output mode)"]
#[inline (always)] pub const fn ccmr1_output (& self) -> & Ccmr1Output { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (24) . cast () } }
#[doc = "0x20 - capture/compare enable register"]
#[inline (always)] pub const fn ccer (& self) -> & Ccer { & self . ccer }
#[doc = "0x24 - counter"]
#[inline (always)] pub const fn cnt (& self) -> & Cnt { & self . cnt }
#[doc = "0x28 - prescaler"]
#[inline (always)] pub const fn psc (& self) -> & Psc { & self . psc }
#[doc = "0x2c - auto-reload register"]
#[inline (always)] pub const fn arr (& self) -> & Arr { & self . arr }
#[doc = "0x34 - capture/compare register 1"]
#[inline (always)] pub const fn ccr1 (& self) -> & Ccr1 { & self . ccr1 }
#[doc = "0x38 - capture/compare register 2"]
#[inline (always)] pub const fn ccr2 (& self) -> & Ccr2 { & self . ccr2 } }
#[doc = "CR1 (rw) register accessor: control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr1`] module"]
#[doc (alias = "CR1")] pub type Cr1 = crate :: Reg < cr1 :: Cr1Spec > ;
#[doc = "control register 1"] pub mod cr1 {
#[doc = "Register `CR1` reader"] pub type R = crate :: R < Cr1Spec > ;
#[doc = "Register `CR1` writer"] pub type W = crate :: W < Cr1Spec > ;
#[doc = "Field `CEN` reader - Counter enable"] pub type CenR = crate :: BitReader ;
#[doc = "Field `CEN` writer - Counter enable"] pub type CenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UDIS` reader - Update disable"] pub type UdisR = crate :: BitReader ;
#[doc = "Field `UDIS` writer - Update disable"] pub type UdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `URS` reader - Update request source"] pub type UrsR = crate :: BitReader ;
#[doc = "Field `URS` writer - Update request source"] pub type UrsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OPM` reader - One-pulse mode"] pub type OpmR = crate :: BitReader ;
#[doc = "Field `OPM` writer - One-pulse mode"] pub type OpmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ARPE` reader - Auto-reload preload enable"] pub type ArpeR = crate :: BitReader ;
#[doc = "Field `ARPE` writer - Auto-reload preload enable"] pub type ArpeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CKD` reader - Clock division"] pub type CkdR = crate :: FieldReader ;
#[doc = "Field `CKD` writer - Clock division"] pub type CkdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bit 0 - Counter enable"]
#[inline (always)] pub fn cen (& self) -> CenR { CenR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Update disable"]
#[inline (always)] pub fn udis (& self) -> UdisR { UdisR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Update request source"]
#[inline (always)] pub fn urs (& self) -> UrsR { UrsR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - One-pulse mode"]
#[inline (always)] pub fn opm (& self) -> OpmR { OpmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 7 - Auto-reload preload enable"]
#[inline (always)] pub fn arpe (& self) -> ArpeR { ArpeR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Clock division"]
#[inline (always)] pub fn ckd (& self) -> CkdR { CkdR :: new (((self . bits >> 8) & 3) as u8) } } impl W {
#[doc = "Bit 0 - Counter enable"]
#[inline (always)] pub fn cen (& mut self) -> CenW < '_ , Cr1Spec > { CenW :: new (self , 0) }
#[doc = "Bit 1 - Update disable"]
#[inline (always)] pub fn udis (& mut self) -> UdisW < '_ , Cr1Spec > { UdisW :: new (self , 1) }
#[doc = "Bit 2 - Update request source"]
#[inline (always)] pub fn urs (& mut self) -> UrsW < '_ , Cr1Spec > { UrsW :: new (self , 2) }
#[doc = "Bit 3 - One-pulse mode"]
#[inline (always)] pub fn opm (& mut self) -> OpmW < '_ , Cr1Spec > { OpmW :: new (self , 3) }
#[doc = "Bit 7 - Auto-reload preload enable"]
#[inline (always)] pub fn arpe (& mut self) -> ArpeW < '_ , Cr1Spec > { ArpeW :: new (self , 7) }
#[doc = "Bits 8:9 - Clock division"]
#[inline (always)] pub fn ckd (& mut self) -> CkdW < '_ , Cr1Spec > { CkdW :: new (self , 8) } }
#[doc = "control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr1Spec ; impl crate :: RegisterSpec for Cr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr1::R`](R) reader structure"] impl crate :: Readable for Cr1Spec { }
#[doc = "`write(|w| ..)` method takes [`cr1::W`](W) writer structure"] impl crate :: Writable for Cr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR1 to value 0"] impl crate :: Resettable for Cr1Spec { } }
#[doc = "CR2 (rw) register accessor: control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr2`] module"]
#[doc (alias = "CR2")] pub type Cr2 = crate :: Reg < cr2 :: Cr2Spec > ;
#[doc = "control register 2"] pub mod cr2 {
#[doc = "Register `CR2` reader"] pub type R = crate :: R < Cr2Spec > ;
#[doc = "Register `CR2` writer"] pub type W = crate :: W < Cr2Spec > ;
#[doc = "Field `MMS` reader - Master mode selection"] pub type MmsR = crate :: FieldReader ;
#[doc = "Field `MMS` writer - Master mode selection"] pub type MmsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bits 4:6 - Master mode selection"]
#[inline (always)] pub fn mms (& self) -> MmsR { MmsR :: new (((self . bits >> 4) & 7) as u8) } } impl W {
#[doc = "Bits 4:6 - Master mode selection"]
#[inline (always)] pub fn mms (& mut self) -> MmsW < '_ , Cr2Spec > { MmsW :: new (self , 4) } }
#[doc = "control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr2Spec ; impl crate :: RegisterSpec for Cr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr2::R`](R) reader structure"] impl crate :: Readable for Cr2Spec { }
#[doc = "`write(|w| ..)` method takes [`cr2::W`](W) writer structure"] impl crate :: Writable for Cr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR2 to value 0"] impl crate :: Resettable for Cr2Spec { } }
#[doc = "SMCR (rw) register accessor: slave mode control register\n\nYou can [`read`](crate::Reg::read) this register and get [`smcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@smcr`] module"]
#[doc (alias = "SMCR")] pub type Smcr = crate :: Reg < smcr :: SmcrSpec > ;
#[doc = "slave mode control register"] pub mod smcr {
#[doc = "Register `SMCR` reader"] pub type R = crate :: R < SmcrSpec > ;
#[doc = "Register `SMCR` writer"] pub type W = crate :: W < SmcrSpec > ;
#[doc = "Field `SMS` reader - Slave mode selection"] pub type SmsR = crate :: FieldReader ;
#[doc = "Field `SMS` writer - Slave mode selection"] pub type SmsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `TS` reader - Trigger selection"] pub type TsR = crate :: FieldReader ;
#[doc = "Field `TS` writer - Trigger selection"] pub type TsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `MSM` reader - Master/Slave mode"] pub type MsmR = crate :: BitReader ;
#[doc = "Field `MSM` writer - Master/Slave mode"] pub type MsmW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:2 - Slave mode selection"]
#[inline (always)] pub fn sms (& self) -> SmsR { SmsR :: new ((self . bits & 7) as u8) }
#[doc = "Bits 4:6 - Trigger selection"]
#[inline (always)] pub fn ts (& self) -> TsR { TsR :: new (((self . bits >> 4) & 7) as u8) }
#[doc = "Bit 7 - Master/Slave mode"]
#[inline (always)] pub fn msm (& self) -> MsmR { MsmR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bits 0:2 - Slave mode selection"]
#[inline (always)] pub fn sms (& mut self) -> SmsW < '_ , SmcrSpec > { SmsW :: new (self , 0) }
#[doc = "Bits 4:6 - Trigger selection"]
#[inline (always)] pub fn ts (& mut self) -> TsW < '_ , SmcrSpec > { TsW :: new (self , 4) }
#[doc = "Bit 7 - Master/Slave mode"]
#[inline (always)] pub fn msm (& mut self) -> MsmW < '_ , SmcrSpec > { MsmW :: new (self , 7) } }
#[doc = "slave mode control register\n\nYou can [`read`](crate::Reg::read) this register and get [`smcr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smcr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SmcrSpec ; impl crate :: RegisterSpec for SmcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`smcr::R`](R) reader structure"] impl crate :: Readable for SmcrSpec { }
#[doc = "`write(|w| ..)` method takes [`smcr::W`](W) writer structure"] impl crate :: Writable for SmcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SMCR to value 0"] impl crate :: Resettable for SmcrSpec { } }
#[doc = "DIER (rw) register accessor: DMA/Interrupt enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`dier::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dier::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dier`] module"]
#[doc (alias = "DIER")] pub type Dier = crate :: Reg < dier :: DierSpec > ;
#[doc = "DMA/Interrupt enable register"] pub mod dier {
#[doc = "Register `DIER` reader"] pub type R = crate :: R < DierSpec > ;
#[doc = "Register `DIER` writer"] pub type W = crate :: W < DierSpec > ;
#[doc = "Field `UIE` reader - Update interrupt enable"] pub type UieR = crate :: BitReader ;
#[doc = "Field `UIE` writer - Update interrupt enable"] pub type UieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1IE` reader - Capture/Compare 1 interrupt enable"] pub type Cc1ieR = crate :: BitReader ;
#[doc = "Field `CC1IE` writer - Capture/Compare 1 interrupt enable"] pub type Cc1ieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2IE` reader - Capture/Compare 2 interrupt enable"] pub type Cc2ieR = crate :: BitReader ;
#[doc = "Field `CC2IE` writer - Capture/Compare 2 interrupt enable"] pub type Cc2ieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIE` reader - Trigger interrupt enable"] pub type TieR = crate :: BitReader ;
#[doc = "Field `TIE` writer - Trigger interrupt enable"] pub type TieW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Update interrupt enable"]
#[inline (always)] pub fn uie (& self) -> UieR { UieR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Capture/Compare 1 interrupt enable"]
#[inline (always)] pub fn cc1ie (& self) -> Cc1ieR { Cc1ieR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Capture/Compare 2 interrupt enable"]
#[inline (always)] pub fn cc2ie (& self) -> Cc2ieR { Cc2ieR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 6 - Trigger interrupt enable"]
#[inline (always)] pub fn tie (& self) -> TieR { TieR :: new (((self . bits >> 6) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Update interrupt enable"]
#[inline (always)] pub fn uie (& mut self) -> UieW < '_ , DierSpec > { UieW :: new (self , 0) }
#[doc = "Bit 1 - Capture/Compare 1 interrupt enable"]
#[inline (always)] pub fn cc1ie (& mut self) -> Cc1ieW < '_ , DierSpec > { Cc1ieW :: new (self , 1) }
#[doc = "Bit 2 - Capture/Compare 2 interrupt enable"]
#[inline (always)] pub fn cc2ie (& mut self) -> Cc2ieW < '_ , DierSpec > { Cc2ieW :: new (self , 2) }
#[doc = "Bit 6 - Trigger interrupt enable"]
#[inline (always)] pub fn tie (& mut self) -> TieW < '_ , DierSpec > { TieW :: new (self , 6) } }
#[doc = "DMA/Interrupt enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`dier::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dier::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DierSpec ; impl crate :: RegisterSpec for DierSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dier::R`](R) reader structure"] impl crate :: Readable for DierSpec { }
#[doc = "`write(|w| ..)` method takes [`dier::W`](W) writer structure"] impl crate :: Writable for DierSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIER to value 0"] impl crate :: Resettable for DierSpec { } }
#[doc = "SR (rw) register accessor: status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`] module"]
#[doc (alias = "SR")] pub type Sr = crate :: Reg < sr :: SrSpec > ;
#[doc = "status register"] pub mod sr {
#[doc = "Register `SR` reader"] pub type R = crate :: R < SrSpec > ;
#[doc = "Register `SR` writer"] pub type W = crate :: W < SrSpec > ;
#[doc = "Field `UIF` reader - Update interrupt flag"] pub type UifR = crate :: BitReader ;
#[doc = "Field `UIF` writer - Update interrupt flag"] pub type UifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1IF` reader - Capture/compare 1 interrupt flag"] pub type Cc1ifR = crate :: BitReader ;
#[doc = "Field `CC1IF` writer - Capture/compare 1 interrupt flag"] pub type Cc1ifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2IF` reader - Capture/Compare 2 interrupt flag"] pub type Cc2ifR = crate :: BitReader ;
#[doc = "Field `CC2IF` writer - Capture/Compare 2 interrupt flag"] pub type Cc2ifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIF` reader - Trigger interrupt flag"] pub type TifR = crate :: BitReader ;
#[doc = "Field `TIF` writer - Trigger interrupt flag"] pub type TifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1OF` reader - Capture/Compare 1 overcapture flag"] pub type Cc1ofR = crate :: BitReader ;
#[doc = "Field `CC1OF` writer - Capture/Compare 1 overcapture flag"] pub type Cc1ofW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2OF` reader - Capture/compare 2 overcapture flag"] pub type Cc2ofR = crate :: BitReader ;
#[doc = "Field `CC2OF` writer - Capture/compare 2 overcapture flag"] pub type Cc2ofW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Update interrupt flag"]
#[inline (always)] pub fn uif (& self) -> UifR { UifR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Capture/compare 1 interrupt flag"]
#[inline (always)] pub fn cc1if (& self) -> Cc1ifR { Cc1ifR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Capture/Compare 2 interrupt flag"]
#[inline (always)] pub fn cc2if (& self) -> Cc2ifR { Cc2ifR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 6 - Trigger interrupt flag"]
#[inline (always)] pub fn tif (& self) -> TifR { TifR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 9 - Capture/Compare 1 overcapture flag"]
#[inline (always)] pub fn cc1of (& self) -> Cc1ofR { Cc1ofR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Capture/compare 2 overcapture flag"]
#[inline (always)] pub fn cc2of (& self) -> Cc2ofR { Cc2ofR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Update interrupt flag"]
#[inline (always)] pub fn uif (& mut self) -> UifW < '_ , SrSpec > { UifW :: new (self , 0) }
#[doc = "Bit 1 - Capture/compare 1 interrupt flag"]
#[inline (always)] pub fn cc1if (& mut self) -> Cc1ifW < '_ , SrSpec > { Cc1ifW :: new (self , 1) }
#[doc = "Bit 2 - Capture/Compare 2 interrupt flag"]
#[inline (always)] pub fn cc2if (& mut self) -> Cc2ifW < '_ , SrSpec > { Cc2ifW :: new (self , 2) }
#[doc = "Bit 6 - Trigger interrupt flag"]
#[inline (always)] pub fn tif (& mut self) -> TifW < '_ , SrSpec > { TifW :: new (self , 6) }
#[doc = "Bit 9 - Capture/Compare 1 overcapture flag"]
#[inline (always)] pub fn cc1of (& mut self) -> Cc1ofW < '_ , SrSpec > { Cc1ofW :: new (self , 9) }
#[doc = "Bit 10 - Capture/compare 2 overcapture flag"]
#[inline (always)] pub fn cc2of (& mut self) -> Cc2ofW < '_ , SrSpec > { Cc2ofW :: new (self , 10) } }
#[doc = "status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec ; impl crate :: RegisterSpec for SrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate :: Readable for SrSpec { }
#[doc = "`write(|w| ..)` method takes [`sr::W`](W) writer structure"] impl crate :: Writable for SrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR to value 0"] impl crate :: Resettable for SrSpec { } }
#[doc = "EGR (w) register accessor: event generation register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`egr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@egr`] module"]
#[doc (alias = "EGR")] pub type Egr = crate :: Reg < egr :: EgrSpec > ;
#[doc = "event generation register"] pub mod egr {
#[doc = "Register `EGR` writer"] pub type W = crate :: W < EgrSpec > ;
#[doc = "Field `UG` writer - Update generation"] pub type UgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1G` writer - Capture/compare 1 generation"] pub type Cc1gW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2G` writer - Capture/compare 2 generation"] pub type Cc2gW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TG` writer - Trigger generation"] pub type TgW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl W {
#[doc = "Bit 0 - Update generation"]
#[inline (always)] pub fn ug (& mut self) -> UgW < '_ , EgrSpec > { UgW :: new (self , 0) }
#[doc = "Bit 1 - Capture/compare 1 generation"]
#[inline (always)] pub fn cc1g (& mut self) -> Cc1gW < '_ , EgrSpec > { Cc1gW :: new (self , 1) }
#[doc = "Bit 2 - Capture/compare 2 generation"]
#[inline (always)] pub fn cc2g (& mut self) -> Cc2gW < '_ , EgrSpec > { Cc2gW :: new (self , 2) }
#[doc = "Bit 6 - Trigger generation"]
#[inline (always)] pub fn tg (& mut self) -> TgW < '_ , EgrSpec > { TgW :: new (self , 6) } }
#[doc = "event generation register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`egr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct EgrSpec ; impl crate :: RegisterSpec for EgrSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`egr::W`](W) writer structure"] impl crate :: Writable for EgrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EGR to value 0"] impl crate :: Resettable for EgrSpec { } }
#[doc = "CCMR1_Output (rw) register accessor: capture/compare mode register 1 (output mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_output::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_output::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccmr1_output`] module"]
#[doc (alias = "CCMR1_Output")] pub type Ccmr1Output = crate :: Reg < ccmr1_output :: Ccmr1OutputSpec > ;
#[doc = "capture/compare mode register 1 (output mode)"] pub mod ccmr1_output {
#[doc = "Register `CCMR1_Output` reader"] pub type R = crate :: R < Ccmr1OutputSpec > ;
#[doc = "Register `CCMR1_Output` writer"] pub type W = crate :: W < Ccmr1OutputSpec > ;
#[doc = "Field `CC1S` reader - Capture/Compare 1 selection"] pub type Cc1sR = crate :: FieldReader ;
#[doc = "Field `CC1S` writer - Capture/Compare 1 selection"] pub type Cc1sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `OC1FE` reader - Output Compare 1 fast enable"] pub type Oc1feR = crate :: BitReader ;
#[doc = "Field `OC1FE` writer - Output Compare 1 fast enable"] pub type Oc1feW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC1PE` reader - Output Compare 1 preload enable"] pub type Oc1peR = crate :: BitReader ;
#[doc = "Field `OC1PE` writer - Output Compare 1 preload enable"] pub type Oc1peW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC1M` reader - Output Compare 1 mode"] pub type Oc1mR = crate :: FieldReader ;
#[doc = "Field `OC1M` writer - Output Compare 1 mode"] pub type Oc1mW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `CC2S` reader - Capture/Compare 2 selection"] pub type Cc2sR = crate :: FieldReader ;
#[doc = "Field `CC2S` writer - Capture/Compare 2 selection"] pub type Cc2sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `OC2FE` reader - Output Compare 2 fast enable"] pub type Oc2feR = crate :: BitReader ;
#[doc = "Field `OC2FE` writer - Output Compare 2 fast enable"] pub type Oc2feW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC2PE` reader - Output Compare 2 preload enable"] pub type Oc2peR = crate :: BitReader ;
#[doc = "Field `OC2PE` writer - Output Compare 2 preload enable"] pub type Oc2peW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC2M` reader - Output Compare 2 mode"] pub type Oc2mR = crate :: FieldReader ;
#[doc = "Field `OC2M` writer - Output Compare 2 mode"] pub type Oc2mW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& self) -> Cc1sR { Cc1sR :: new ((self . bits & 3) as u8) }
#[doc = "Bit 2 - Output Compare 1 fast enable"]
#[inline (always)] pub fn oc1fe (& self) -> Oc1feR { Oc1feR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Output Compare 1 preload enable"]
#[inline (always)] pub fn oc1pe (& self) -> Oc1peR { Oc1peR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:6 - Output Compare 1 mode"]
#[inline (always)] pub fn oc1m (& self) -> Oc1mR { Oc1mR :: new (((self . bits >> 4) & 7) as u8) }
#[doc = "Bits 8:9 - Capture/Compare 2 selection"]
#[inline (always)] pub fn cc2s (& self) -> Cc2sR { Cc2sR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bit 10 - Output Compare 2 fast enable"]
#[inline (always)] pub fn oc2fe (& self) -> Oc2feR { Oc2feR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Output Compare 2 preload enable"]
#[inline (always)] pub fn oc2pe (& self) -> Oc2peR { Oc2peR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:14 - Output Compare 2 mode"]
#[inline (always)] pub fn oc2m (& self) -> Oc2mR { Oc2mR :: new (((self . bits >> 12) & 7) as u8) } } impl W {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& mut self) -> Cc1sW < '_ , Ccmr1OutputSpec > { Cc1sW :: new (self , 0) }
#[doc = "Bit 2 - Output Compare 1 fast enable"]
#[inline (always)] pub fn oc1fe (& mut self) -> Oc1feW < '_ , Ccmr1OutputSpec > { Oc1feW :: new (self , 2) }
#[doc = "Bit 3 - Output Compare 1 preload enable"]
#[inline (always)] pub fn oc1pe (& mut self) -> Oc1peW < '_ , Ccmr1OutputSpec > { Oc1peW :: new (self , 3) }
#[doc = "Bits 4:6 - Output Compare 1 mode"]
#[inline (always)] pub fn oc1m (& mut self) -> Oc1mW < '_ , Ccmr1OutputSpec > { Oc1mW :: new (self , 4) }
#[doc = "Bits 8:9 - Capture/Compare 2 selection"]
#[inline (always)] pub fn cc2s (& mut self) -> Cc2sW < '_ , Ccmr1OutputSpec > { Cc2sW :: new (self , 8) }
#[doc = "Bit 10 - Output Compare 2 fast enable"]
#[inline (always)] pub fn oc2fe (& mut self) -> Oc2feW < '_ , Ccmr1OutputSpec > { Oc2feW :: new (self , 10) }
#[doc = "Bit 11 - Output Compare 2 preload enable"]
#[inline (always)] pub fn oc2pe (& mut self) -> Oc2peW < '_ , Ccmr1OutputSpec > { Oc2peW :: new (self , 11) }
#[doc = "Bits 12:14 - Output Compare 2 mode"]
#[inline (always)] pub fn oc2m (& mut self) -> Oc2mW < '_ , Ccmr1OutputSpec > { Oc2mW :: new (self , 12) } }
#[doc = "capture/compare mode register 1 (output mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_output::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_output::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccmr1OutputSpec ; impl crate :: RegisterSpec for Ccmr1OutputSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccmr1_output::R`](R) reader structure"] impl crate :: Readable for Ccmr1OutputSpec { }
#[doc = "`write(|w| ..)` method takes [`ccmr1_output::W`](W) writer structure"] impl crate :: Writable for Ccmr1OutputSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCMR1_Output to value 0"] impl crate :: Resettable for Ccmr1OutputSpec { } }
#[doc = "CCMR1_Input (rw) register accessor: capture/compare mode register 1 (input mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_input::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_input::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccmr1_input`] module"]
#[doc (alias = "CCMR1_Input")] pub type Ccmr1Input = crate :: Reg < ccmr1_input :: Ccmr1InputSpec > ;
#[doc = "capture/compare mode register 1 (input mode)"] pub mod ccmr1_input {
#[doc = "Register `CCMR1_Input` reader"] pub type R = crate :: R < Ccmr1InputSpec > ;
#[doc = "Register `CCMR1_Input` writer"] pub type W = crate :: W < Ccmr1InputSpec > ;
#[doc = "Field `CC1S` reader - Capture/Compare 1 selection"] pub type Cc1sR = crate :: FieldReader ;
#[doc = "Field `CC1S` writer - Capture/Compare 1 selection"] pub type Cc1sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC1PSC` reader - Input capture 1 prescaler"] pub type Ic1pscR = crate :: FieldReader ;
#[doc = "Field `IC1PSC` writer - Input capture 1 prescaler"] pub type Ic1pscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC1F` reader - Input capture 1 filter"] pub type Ic1fR = crate :: FieldReader ;
#[doc = "Field `IC1F` writer - Input capture 1 filter"] pub type Ic1fW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `CC2S` reader - Capture/Compare 2 selection"] pub type Cc2sR = crate :: FieldReader ;
#[doc = "Field `CC2S` writer - Capture/Compare 2 selection"] pub type Cc2sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC2PSC` reader - Input capture 2 prescaler"] pub type Ic2pscR = crate :: FieldReader ;
#[doc = "Field `IC2PSC` writer - Input capture 2 prescaler"] pub type Ic2pscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC2F` reader - Input capture 2 filter"] pub type Ic2fR = crate :: FieldReader ;
#[doc = "Field `IC2F` writer - Input capture 2 filter"] pub type Ic2fW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ; impl R {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& self) -> Cc1sR { Cc1sR :: new ((self . bits & 3) as u8) }
#[doc = "Bits 2:3 - Input capture 1 prescaler"]
#[inline (always)] pub fn ic1psc (& self) -> Ic1pscR { Ic1pscR :: new (((self . bits >> 2) & 3) as u8) }
#[doc = "Bits 4:7 - Input capture 1 filter"]
#[inline (always)] pub fn ic1f (& self) -> Ic1fR { Ic1fR :: new (((self . bits >> 4) & 0x0f) as u8) }
#[doc = "Bits 8:9 - Capture/Compare 2 selection"]
#[inline (always)] pub fn cc2s (& self) -> Cc2sR { Cc2sR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bits 10:11 - Input capture 2 prescaler"]
#[inline (always)] pub fn ic2psc (& self) -> Ic2pscR { Ic2pscR :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bits 12:15 - Input capture 2 filter"]
#[inline (always)] pub fn ic2f (& self) -> Ic2fR { Ic2fR :: new (((self . bits >> 12) & 0x0f) as u8) } } impl W {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& mut self) -> Cc1sW < '_ , Ccmr1InputSpec > { Cc1sW :: new (self , 0) }
#[doc = "Bits 2:3 - Input capture 1 prescaler"]
#[inline (always)] pub fn ic1psc (& mut self) -> Ic1pscW < '_ , Ccmr1InputSpec > { Ic1pscW :: new (self , 2) }
#[doc = "Bits 4:7 - Input capture 1 filter"]
#[inline (always)] pub fn ic1f (& mut self) -> Ic1fW < '_ , Ccmr1InputSpec > { Ic1fW :: new (self , 4) }
#[doc = "Bits 8:9 - Capture/Compare 2 selection"]
#[inline (always)] pub fn cc2s (& mut self) -> Cc2sW < '_ , Ccmr1InputSpec > { Cc2sW :: new (self , 8) }
#[doc = "Bits 10:11 - Input capture 2 prescaler"]
#[inline (always)] pub fn ic2psc (& mut self) -> Ic2pscW < '_ , Ccmr1InputSpec > { Ic2pscW :: new (self , 10) }
#[doc = "Bits 12:15 - Input capture 2 filter"]
#[inline (always)] pub fn ic2f (& mut self) -> Ic2fW < '_ , Ccmr1InputSpec > { Ic2fW :: new (self , 12) } }
#[doc = "capture/compare mode register 1 (input mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_input::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_input::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccmr1InputSpec ; impl crate :: RegisterSpec for Ccmr1InputSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccmr1_input::R`](R) reader structure"] impl crate :: Readable for Ccmr1InputSpec { }
#[doc = "`write(|w| ..)` method takes [`ccmr1_input::W`](W) writer structure"] impl crate :: Writable for Ccmr1InputSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCMR1_Input to value 0"] impl crate :: Resettable for Ccmr1InputSpec { } }
#[doc = "CCER (rw) register accessor: capture/compare enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`ccer::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccer::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccer`] module"]
#[doc (alias = "CCER")] pub type Ccer = crate :: Reg < ccer :: CcerSpec > ;
#[doc = "capture/compare enable register"] pub mod ccer {
#[doc = "Register `CCER` reader"] pub type R = crate :: R < CcerSpec > ;
#[doc = "Register `CCER` writer"] pub type W = crate :: W < CcerSpec > ;
#[doc = "Field `CC1E` reader - Capture/Compare 1 output enable"] pub type Cc1eR = crate :: BitReader ;
#[doc = "Field `CC1E` writer - Capture/Compare 1 output enable"] pub type Cc1eW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1P` reader - Capture/Compare 1 output Polarity"] pub type Cc1pR = crate :: BitReader ;
#[doc = "Field `CC1P` writer - Capture/Compare 1 output Polarity"] pub type Cc1pW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1NP` reader - Capture/Compare 1 output Polarity"] pub type Cc1npR = crate :: BitReader ;
#[doc = "Field `CC1NP` writer - Capture/Compare 1 output Polarity"] pub type Cc1npW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2E` reader - Capture/Compare 2 output enable"] pub type Cc2eR = crate :: BitReader ;
#[doc = "Field `CC2E` writer - Capture/Compare 2 output enable"] pub type Cc2eW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2P` reader - Capture/Compare 2 output Polarity"] pub type Cc2pR = crate :: BitReader ;
#[doc = "Field `CC2P` writer - Capture/Compare 2 output Polarity"] pub type Cc2pW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC2NP` reader - Capture/Compare 2 output Polarity"] pub type Cc2npR = crate :: BitReader ;
#[doc = "Field `CC2NP` writer - Capture/Compare 2 output Polarity"] pub type Cc2npW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Capture/Compare 1 output enable"]
#[inline (always)] pub fn cc1e (& self) -> Cc1eR { Cc1eR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Capture/Compare 1 output Polarity"]
#[inline (always)] pub fn cc1p (& self) -> Cc1pR { Cc1pR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - Capture/Compare 1 output Polarity"]
#[inline (always)] pub fn cc1np (& self) -> Cc1npR { Cc1npR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Capture/Compare 2 output enable"]
#[inline (always)] pub fn cc2e (& self) -> Cc2eR { Cc2eR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Capture/Compare 2 output Polarity"]
#[inline (always)] pub fn cc2p (& self) -> Cc2pR { Cc2pR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 7 - Capture/Compare 2 output Polarity"]
#[inline (always)] pub fn cc2np (& self) -> Cc2npR { Cc2npR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Capture/Compare 1 output enable"]
#[inline (always)] pub fn cc1e (& mut self) -> Cc1eW < '_ , CcerSpec > { Cc1eW :: new (self , 0) }
#[doc = "Bit 1 - Capture/Compare 1 output Polarity"]
#[inline (always)] pub fn cc1p (& mut self) -> Cc1pW < '_ , CcerSpec > { Cc1pW :: new (self , 1) }
#[doc = "Bit 3 - Capture/Compare 1 output Polarity"]
#[inline (always)] pub fn cc1np (& mut self) -> Cc1npW < '_ , CcerSpec > { Cc1npW :: new (self , 3) }
#[doc = "Bit 4 - Capture/Compare 2 output enable"]
#[inline (always)] pub fn cc2e (& mut self) -> Cc2eW < '_ , CcerSpec > { Cc2eW :: new (self , 4) }
#[doc = "Bit 5 - Capture/Compare 2 output Polarity"]
#[inline (always)] pub fn cc2p (& mut self) -> Cc2pW < '_ , CcerSpec > { Cc2pW :: new (self , 5) }
#[doc = "Bit 7 - Capture/Compare 2 output Polarity"]
#[inline (always)] pub fn cc2np (& mut self) -> Cc2npW < '_ , CcerSpec > { Cc2npW :: new (self , 7) } }
#[doc = "capture/compare enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`ccer::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccer::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CcerSpec ; impl crate :: RegisterSpec for CcerSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccer::R`](R) reader structure"] impl crate :: Readable for CcerSpec { }
#[doc = "`write(|w| ..)` method takes [`ccer::W`](W) writer structure"] impl crate :: Writable for CcerSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCER to value 0"] impl crate :: Resettable for CcerSpec { } }
#[doc = "CNT (rw) register accessor: counter\n\nYou can [`read`](crate::Reg::read) this register and get [`cnt::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnt::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cnt`] module"]
#[doc (alias = "CNT")] pub type Cnt = crate :: Reg < cnt :: CntSpec > ;
#[doc = "counter"] pub mod cnt {
#[doc = "Register `CNT` reader"] pub type R = crate :: R < CntSpec > ;
#[doc = "Register `CNT` writer"] pub type W = crate :: W < CntSpec > ;
#[doc = "Field `CNT` reader - counter value"] pub type CntR = crate :: FieldReader < u16 > ;
#[doc = "Field `CNT` writer - counter value"] pub type CntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - counter value"]
#[inline (always)] pub fn cnt (& self) -> CntR { CntR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - counter value"]
#[inline (always)] pub fn cnt (& mut self) -> CntW < '_ , CntSpec > { CntW :: new (self , 0) } }
#[doc = "counter\n\nYou can [`read`](crate::Reg::read) this register and get [`cnt::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnt::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CntSpec ; impl crate :: RegisterSpec for CntSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cnt::R`](R) reader structure"] impl crate :: Readable for CntSpec { }
#[doc = "`write(|w| ..)` method takes [`cnt::W`](W) writer structure"] impl crate :: Writable for CntSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNT to value 0"] impl crate :: Resettable for CntSpec { } }
#[doc = "PSC (rw) register accessor: prescaler\n\nYou can [`read`](crate::Reg::read) this register and get [`psc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`psc::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@psc`] module"]
#[doc (alias = "PSC")] pub type Psc = crate :: Reg < psc :: PscSpec > ;
#[doc = "prescaler"] pub mod psc {
#[doc = "Register `PSC` reader"] pub type R = crate :: R < PscSpec > ;
#[doc = "Register `PSC` writer"] pub type W = crate :: W < PscSpec > ;
#[doc = "Field `PSC` reader - Prescaler value"] pub type PscR = crate :: FieldReader < u16 > ;
#[doc = "Field `PSC` writer - Prescaler value"] pub type PscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Prescaler value"]
#[inline (always)] pub fn psc (& self) -> PscR { PscR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Prescaler value"]
#[inline (always)] pub fn psc (& mut self) -> PscW < '_ , PscSpec > { PscW :: new (self , 0) } }
#[doc = "prescaler\n\nYou can [`read`](crate::Reg::read) this register and get [`psc::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`psc::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PscSpec ; impl crate :: RegisterSpec for PscSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`psc::R`](R) reader structure"] impl crate :: Readable for PscSpec { }
#[doc = "`write(|w| ..)` method takes [`psc::W`](W) writer structure"] impl crate :: Writable for PscSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PSC to value 0"] impl crate :: Resettable for PscSpec { } }
#[doc = "ARR (rw) register accessor: auto-reload register\n\nYou can [`read`](crate::Reg::read) this register and get [`arr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@arr`] module"]
#[doc (alias = "ARR")] pub type Arr = crate :: Reg < arr :: ArrSpec > ;
#[doc = "auto-reload register"] pub mod arr {
#[doc = "Register `ARR` reader"] pub type R = crate :: R < ArrSpec > ;
#[doc = "Register `ARR` writer"] pub type W = crate :: W < ArrSpec > ;
#[doc = "Field `ARR` reader - Auto-reload value"] pub type ArrR = crate :: FieldReader < u16 > ;
#[doc = "Field `ARR` writer - Auto-reload value"] pub type ArrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Auto-reload value"]
#[inline (always)] pub fn arr (& self) -> ArrR { ArrR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Auto-reload value"]
#[inline (always)] pub fn arr (& mut self) -> ArrW < '_ , ArrSpec > { ArrW :: new (self , 0) } }
#[doc = "auto-reload register\n\nYou can [`read`](crate::Reg::read) this register and get [`arr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct ArrSpec ; impl crate :: RegisterSpec for ArrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`arr::R`](R) reader structure"] impl crate :: Readable for ArrSpec { }
#[doc = "`write(|w| ..)` method takes [`arr::W`](W) writer structure"] impl crate :: Writable for ArrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets ARR to value 0"] impl crate :: Resettable for ArrSpec { } }
#[doc = "CCR1 (rw) register accessor: capture/compare register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr1`] module"]
#[doc (alias = "CCR1")] pub type Ccr1 = crate :: Reg < ccr1 :: Ccr1Spec > ;
#[doc = "capture/compare register 1"] pub mod ccr1 {
#[doc = "Register `CCR1` reader"] pub type R = crate :: R < Ccr1Spec > ;
#[doc = "Register `CCR1` writer"] pub type W = crate :: W < Ccr1Spec > ;
#[doc = "Field `CCR1` reader - Capture/Compare 1 value"] pub type Ccr1R = crate :: FieldReader < u16 > ;
#[doc = "Field `CCR1` writer - Capture/Compare 1 value"] pub type Ccr1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Capture/Compare 1 value"]
#[inline (always)] pub fn ccr1 (& self) -> Ccr1R { Ccr1R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Capture/Compare 1 value"]
#[inline (always)] pub fn ccr1 (& mut self) -> Ccr1W < '_ , Ccr1Spec > { Ccr1W :: new (self , 0) } }
#[doc = "capture/compare register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr1Spec ; impl crate :: RegisterSpec for Ccr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr1::R`](R) reader structure"] impl crate :: Readable for Ccr1Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr1::W`](W) writer structure"] impl crate :: Writable for Ccr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR1 to value 0"] impl crate :: Resettable for Ccr1Spec { } }
#[doc = "CCR2 (rw) register accessor: capture/compare register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr2`] module"]
#[doc (alias = "CCR2")] pub type Ccr2 = crate :: Reg < ccr2 :: Ccr2Spec > ;
#[doc = "capture/compare register 2"] pub mod ccr2 {
#[doc = "Register `CCR2` reader"] pub type R = crate :: R < Ccr2Spec > ;
#[doc = "Register `CCR2` writer"] pub type W = crate :: W < Ccr2Spec > ;
#[doc = "Field `CCR2` reader - Capture/Compare 2 value"] pub type Ccr2R = crate :: FieldReader < u16 > ;
#[doc = "Field `CCR2` writer - Capture/Compare 2 value"] pub type Ccr2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Capture/Compare 2 value"]
#[inline (always)] pub fn ccr2 (& self) -> Ccr2R { Ccr2R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Capture/Compare 2 value"]
#[inline (always)] pub fn ccr2 (& mut self) -> Ccr2W < '_ , Ccr2Spec > { Ccr2W :: new (self , 0) } }
#[doc = "capture/compare register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr2Spec ; impl crate :: RegisterSpec for Ccr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr2::R`](R) reader structure"] impl crate :: Readable for Ccr2Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr2::W`](W) writer structure"] impl crate :: Writable for Ccr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR2 to value 0"] impl crate :: Resettable for Ccr2Spec { } } }
#[doc = "General purpose timer"] pub type Tim12 = crate :: Periph < tim9 :: RegisterBlock , 0x4000_1800 > ; impl core :: fmt :: Debug for Tim12 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Tim12") . finish () } }
#[doc = "General purpose timer"] pub use self :: tim9 as tim12 ;
#[doc = "General purpose timer"] pub type Tim10 = crate :: Periph < tim10 :: RegisterBlock , 0x4001_5000 > ; impl core :: fmt :: Debug for Tim10 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Tim10") . finish () } }
#[doc = "General purpose timer"] pub mod tim10 {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { cr1 : Cr1 , cr2 : Cr2 , _reserved2 : [u8 ; 0x04] , dier : Dier , sr : Sr , egr : Egr , _reserved_5_ccmr1 : [u8 ; 0x04] , _reserved6 : [u8 ; 0x04] , ccer : Ccer , cnt : Cnt , psc : Psc , arr : Arr , _reserved10 : [u8 ; 0x04] , ccr1 : Ccr1 , } impl RegisterBlock {
#[doc = "0x00 - control register 1"]
#[inline (always)] pub const fn cr1 (& self) -> & Cr1 { & self . cr1 }
#[doc = "0x04 - control register 2"]
#[inline (always)] pub const fn cr2 (& self) -> & Cr2 { & self . cr2 }
#[doc = "0x0c - DMA/Interrupt enable register"]
#[inline (always)] pub const fn dier (& self) -> & Dier { & self . dier }
#[doc = "0x10 - status register"]
#[inline (always)] pub const fn sr (& self) -> & Sr { & self . sr }
#[doc = "0x14 - event generation register"]
#[inline (always)] pub const fn egr (& self) -> & Egr { & self . egr }
#[doc = "0x18 - capture/compare mode register (input mode)"]
#[inline (always)] pub const fn ccmr1_input (& self) -> & Ccmr1Input { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (24) . cast () } }
#[doc = "0x18 - capture/compare mode register (output mode)"]
#[inline (always)] pub const fn ccmr1_output (& self) -> & Ccmr1Output { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (24) . cast () } }
#[doc = "0x20 - capture/compare enable register"]
#[inline (always)] pub const fn ccer (& self) -> & Ccer { & self . ccer }
#[doc = "0x24 - counter"]
#[inline (always)] pub const fn cnt (& self) -> & Cnt { & self . cnt }
#[doc = "0x28 - prescaler"]
#[inline (always)] pub const fn psc (& self) -> & Psc { & self . psc }
#[doc = "0x2c - auto-reload register"]
#[inline (always)] pub const fn arr (& self) -> & Arr { & self . arr }
#[doc = "0x34 - capture/compare register 1"]
#[inline (always)] pub const fn ccr1 (& self) -> & Ccr1 { & self . ccr1 } }
#[doc = "CR1 (rw) register accessor: control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr1`] module"]
#[doc (alias = "CR1")] pub type Cr1 = crate :: Reg < cr1 :: Cr1Spec > ;
#[doc = "control register 1"] pub mod cr1 {
#[doc = "Register `CR1` reader"] pub type R = crate :: R < Cr1Spec > ;
#[doc = "Register `CR1` writer"] pub type W = crate :: W < Cr1Spec > ;
#[doc = "Field `CEN` reader - Counter enable"] pub type CenR = crate :: BitReader ;
#[doc = "Field `CEN` writer - Counter enable"] pub type CenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UDIS` reader - Update disable"] pub type UdisR = crate :: BitReader ;
#[doc = "Field `UDIS` writer - Update disable"] pub type UdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `URS` reader - Update request source"] pub type UrsR = crate :: BitReader ;
#[doc = "Field `URS` writer - Update request source"] pub type UrsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ARPE` reader - Auto-reload preload enable"] pub type ArpeR = crate :: BitReader ;
#[doc = "Field `ARPE` writer - Auto-reload preload enable"] pub type ArpeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CKD` reader - Clock division"] pub type CkdR = crate :: FieldReader ;
#[doc = "Field `CKD` writer - Clock division"] pub type CkdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bit 0 - Counter enable"]
#[inline (always)] pub fn cen (& self) -> CenR { CenR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Update disable"]
#[inline (always)] pub fn udis (& self) -> UdisR { UdisR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Update request source"]
#[inline (always)] pub fn urs (& self) -> UrsR { UrsR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 7 - Auto-reload preload enable"]
#[inline (always)] pub fn arpe (& self) -> ArpeR { ArpeR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - Clock division"]
#[inline (always)] pub fn ckd (& self) -> CkdR { CkdR :: new (((self . bits >> 8) & 3) as u8) } } impl W {
#[doc = "Bit 0 - Counter enable"]
#[inline (always)] pub fn cen (& mut self) -> CenW < '_ , Cr1Spec > { CenW :: new (self , 0) }
#[doc = "Bit 1 - Update disable"]
#[inline (always)] pub fn udis (& mut self) -> UdisW < '_ , Cr1Spec > { UdisW :: new (self , 1) }
#[doc = "Bit 2 - Update request source"]
#[inline (always)] pub fn urs (& mut self) -> UrsW < '_ , Cr1Spec > { UrsW :: new (self , 2) }
#[doc = "Bit 7 - Auto-reload preload enable"]
#[inline (always)] pub fn arpe (& mut self) -> ArpeW < '_ , Cr1Spec > { ArpeW :: new (self , 7) }
#[doc = "Bits 8:9 - Clock division"]
#[inline (always)] pub fn ckd (& mut self) -> CkdW < '_ , Cr1Spec > { CkdW :: new (self , 8) } }
#[doc = "control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr1Spec ; impl crate :: RegisterSpec for Cr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr1::R`](R) reader structure"] impl crate :: Readable for Cr1Spec { }
#[doc = "`write(|w| ..)` method takes [`cr1::W`](W) writer structure"] impl crate :: Writable for Cr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR1 to value 0"] impl crate :: Resettable for Cr1Spec { } }
#[doc = "CR2 (rw) register accessor: control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr2`] module"]
#[doc (alias = "CR2")] pub type Cr2 = crate :: Reg < cr2 :: Cr2Spec > ;
#[doc = "control register 2"] pub mod cr2 {
#[doc = "Register `CR2` reader"] pub type R = crate :: R < Cr2Spec > ;
#[doc = "Register `CR2` writer"] pub type W = crate :: W < Cr2Spec > ;
#[doc = "Field `MMS` reader - Master mode selection"] pub type MmsR = crate :: FieldReader ;
#[doc = "Field `MMS` writer - Master mode selection"] pub type MmsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bits 4:6 - Master mode selection"]
#[inline (always)] pub fn mms (& self) -> MmsR { MmsR :: new (((self . bits >> 4) & 7) as u8) } } impl W {
#[doc = "Bits 4:6 - Master mode selection"]
#[inline (always)] pub fn mms (& mut self) -> MmsW < '_ , Cr2Spec > { MmsW :: new (self , 4) } }
#[doc = "control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr2Spec ; impl crate :: RegisterSpec for Cr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr2::R`](R) reader structure"] impl crate :: Readable for Cr2Spec { }
#[doc = "`write(|w| ..)` method takes [`cr2::W`](W) writer structure"] impl crate :: Writable for Cr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR2 to value 0"] impl crate :: Resettable for Cr2Spec { } }
#[doc = "DIER (rw) register accessor: DMA/Interrupt enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`dier::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dier::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dier`] module"]
#[doc (alias = "DIER")] pub type Dier = crate :: Reg < dier :: DierSpec > ;
#[doc = "DMA/Interrupt enable register"] pub mod dier {
#[doc = "Register `DIER` reader"] pub type R = crate :: R < DierSpec > ;
#[doc = "Register `DIER` writer"] pub type W = crate :: W < DierSpec > ;
#[doc = "Field `UIE` reader - Update interrupt enable"] pub type UieR = crate :: BitReader ;
#[doc = "Field `UIE` writer - Update interrupt enable"] pub type UieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1IE` reader - Capture/Compare 1 interrupt enable"] pub type Cc1ieR = crate :: BitReader ;
#[doc = "Field `CC1IE` writer - Capture/Compare 1 interrupt enable"] pub type Cc1ieW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Update interrupt enable"]
#[inline (always)] pub fn uie (& self) -> UieR { UieR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Capture/Compare 1 interrupt enable"]
#[inline (always)] pub fn cc1ie (& self) -> Cc1ieR { Cc1ieR :: new (((self . bits >> 1) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Update interrupt enable"]
#[inline (always)] pub fn uie (& mut self) -> UieW < '_ , DierSpec > { UieW :: new (self , 0) }
#[doc = "Bit 1 - Capture/Compare 1 interrupt enable"]
#[inline (always)] pub fn cc1ie (& mut self) -> Cc1ieW < '_ , DierSpec > { Cc1ieW :: new (self , 1) } }
#[doc = "DMA/Interrupt enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`dier::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dier::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DierSpec ; impl crate :: RegisterSpec for DierSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dier::R`](R) reader structure"] impl crate :: Readable for DierSpec { }
#[doc = "`write(|w| ..)` method takes [`dier::W`](W) writer structure"] impl crate :: Writable for DierSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIER to value 0"] impl crate :: Resettable for DierSpec { } }
#[doc = "SR (rw) register accessor: status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`] module"]
#[doc (alias = "SR")] pub type Sr = crate :: Reg < sr :: SrSpec > ;
#[doc = "status register"] pub mod sr {
#[doc = "Register `SR` reader"] pub type R = crate :: R < SrSpec > ;
#[doc = "Register `SR` writer"] pub type W = crate :: W < SrSpec > ;
#[doc = "Field `UIF` reader - Update interrupt flag"] pub type UifR = crate :: BitReader ;
#[doc = "Field `UIF` writer - Update interrupt flag"] pub type UifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1IF` reader - Capture/compare 1 interrupt flag"] pub type Cc1ifR = crate :: BitReader ;
#[doc = "Field `CC1IF` writer - Capture/compare 1 interrupt flag"] pub type Cc1ifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1OF` reader - Capture/Compare 1 overcapture flag"] pub type Cc1ofR = crate :: BitReader ;
#[doc = "Field `CC1OF` writer - Capture/Compare 1 overcapture flag"] pub type Cc1ofW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Update interrupt flag"]
#[inline (always)] pub fn uif (& self) -> UifR { UifR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Capture/compare 1 interrupt flag"]
#[inline (always)] pub fn cc1if (& self) -> Cc1ifR { Cc1ifR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 9 - Capture/Compare 1 overcapture flag"]
#[inline (always)] pub fn cc1of (& self) -> Cc1ofR { Cc1ofR :: new (((self . bits >> 9) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Update interrupt flag"]
#[inline (always)] pub fn uif (& mut self) -> UifW < '_ , SrSpec > { UifW :: new (self , 0) }
#[doc = "Bit 1 - Capture/compare 1 interrupt flag"]
#[inline (always)] pub fn cc1if (& mut self) -> Cc1ifW < '_ , SrSpec > { Cc1ifW :: new (self , 1) }
#[doc = "Bit 9 - Capture/Compare 1 overcapture flag"]
#[inline (always)] pub fn cc1of (& mut self) -> Cc1ofW < '_ , SrSpec > { Cc1ofW :: new (self , 9) } }
#[doc = "status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec ; impl crate :: RegisterSpec for SrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate :: Readable for SrSpec { }
#[doc = "`write(|w| ..)` method takes [`sr::W`](W) writer structure"] impl crate :: Writable for SrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR to value 0"] impl crate :: Resettable for SrSpec { } }
#[doc = "EGR (w) register accessor: event generation register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`egr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@egr`] module"]
#[doc (alias = "EGR")] pub type Egr = crate :: Reg < egr :: EgrSpec > ;
#[doc = "event generation register"] pub mod egr {
#[doc = "Register `EGR` writer"] pub type W = crate :: W < EgrSpec > ;
#[doc = "Field `UG` writer - Update generation"] pub type UgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1G` writer - Capture/compare 1 generation"] pub type Cc1gW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl W {
#[doc = "Bit 0 - Update generation"]
#[inline (always)] pub fn ug (& mut self) -> UgW < '_ , EgrSpec > { UgW :: new (self , 0) }
#[doc = "Bit 1 - Capture/compare 1 generation"]
#[inline (always)] pub fn cc1g (& mut self) -> Cc1gW < '_ , EgrSpec > { Cc1gW :: new (self , 1) } }
#[doc = "event generation register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`egr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct EgrSpec ; impl crate :: RegisterSpec for EgrSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`egr::W`](W) writer structure"] impl crate :: Writable for EgrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EGR to value 0"] impl crate :: Resettable for EgrSpec { } }
#[doc = "CCMR1_Output (rw) register accessor: capture/compare mode register (output mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_output::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_output::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccmr1_output`] module"]
#[doc (alias = "CCMR1_Output")] pub type Ccmr1Output = crate :: Reg < ccmr1_output :: Ccmr1OutputSpec > ;
#[doc = "capture/compare mode register (output mode)"] pub mod ccmr1_output {
#[doc = "Register `CCMR1_Output` reader"] pub type R = crate :: R < Ccmr1OutputSpec > ;
#[doc = "Register `CCMR1_Output` writer"] pub type W = crate :: W < Ccmr1OutputSpec > ;
#[doc = "Field `CC1S` reader - Capture/Compare 1 selection"] pub type Cc1sR = crate :: FieldReader ;
#[doc = "Field `CC1S` writer - Capture/Compare 1 selection"] pub type Cc1sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `OC1PE` reader - Output Compare 1 preload enable"] pub type Oc1peR = crate :: BitReader ;
#[doc = "Field `OC1PE` writer - Output Compare 1 preload enable"] pub type Oc1peW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OC1M` reader - Output Compare 1 mode"] pub type Oc1mR = crate :: FieldReader ;
#[doc = "Field `OC1M` writer - Output Compare 1 mode"] pub type Oc1mW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& self) -> Cc1sR { Cc1sR :: new ((self . bits & 3) as u8) }
#[doc = "Bit 3 - Output Compare 1 preload enable"]
#[inline (always)] pub fn oc1pe (& self) -> Oc1peR { Oc1peR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:6 - Output Compare 1 mode"]
#[inline (always)] pub fn oc1m (& self) -> Oc1mR { Oc1mR :: new (((self . bits >> 4) & 7) as u8) } } impl W {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& mut self) -> Cc1sW < '_ , Ccmr1OutputSpec > { Cc1sW :: new (self , 0) }
#[doc = "Bit 3 - Output Compare 1 preload enable"]
#[inline (always)] pub fn oc1pe (& mut self) -> Oc1peW < '_ , Ccmr1OutputSpec > { Oc1peW :: new (self , 3) }
#[doc = "Bits 4:6 - Output Compare 1 mode"]
#[inline (always)] pub fn oc1m (& mut self) -> Oc1mW < '_ , Ccmr1OutputSpec > { Oc1mW :: new (self , 4) } }
#[doc = "capture/compare mode register (output mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_output::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_output::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccmr1OutputSpec ; impl crate :: RegisterSpec for Ccmr1OutputSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccmr1_output::R`](R) reader structure"] impl crate :: Readable for Ccmr1OutputSpec { }
#[doc = "`write(|w| ..)` method takes [`ccmr1_output::W`](W) writer structure"] impl crate :: Writable for Ccmr1OutputSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCMR1_Output to value 0"] impl crate :: Resettable for Ccmr1OutputSpec { } }
#[doc = "CCMR1_Input (rw) register accessor: capture/compare mode register (input mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_input::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_input::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccmr1_input`] module"]
#[doc (alias = "CCMR1_Input")] pub type Ccmr1Input = crate :: Reg < ccmr1_input :: Ccmr1InputSpec > ;
#[doc = "capture/compare mode register (input mode)"] pub mod ccmr1_input {
#[doc = "Register `CCMR1_Input` reader"] pub type R = crate :: R < Ccmr1InputSpec > ;
#[doc = "Register `CCMR1_Input` writer"] pub type W = crate :: W < Ccmr1InputSpec > ;
#[doc = "Field `CC1S` reader - Capture/Compare 1 selection"] pub type Cc1sR = crate :: FieldReader ;
#[doc = "Field `CC1S` writer - Capture/Compare 1 selection"] pub type Cc1sW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC1PSC` reader - Input capture 1 prescaler"] pub type Ic1pscR = crate :: FieldReader ;
#[doc = "Field `IC1PSC` writer - Input capture 1 prescaler"] pub type Ic1pscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `IC1F` reader - Input capture 1 filter"] pub type Ic1fR = crate :: FieldReader ;
#[doc = "Field `IC1F` writer - Input capture 1 filter"] pub type Ic1fW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ; impl R {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& self) -> Cc1sR { Cc1sR :: new ((self . bits & 3) as u8) }
#[doc = "Bits 2:3 - Input capture 1 prescaler"]
#[inline (always)] pub fn ic1psc (& self) -> Ic1pscR { Ic1pscR :: new (((self . bits >> 2) & 3) as u8) }
#[doc = "Bits 4:7 - Input capture 1 filter"]
#[inline (always)] pub fn ic1f (& self) -> Ic1fR { Ic1fR :: new (((self . bits >> 4) & 0x0f) as u8) } } impl W {
#[doc = "Bits 0:1 - Capture/Compare 1 selection"]
#[inline (always)] pub fn cc1s (& mut self) -> Cc1sW < '_ , Ccmr1InputSpec > { Cc1sW :: new (self , 0) }
#[doc = "Bits 2:3 - Input capture 1 prescaler"]
#[inline (always)] pub fn ic1psc (& mut self) -> Ic1pscW < '_ , Ccmr1InputSpec > { Ic1pscW :: new (self , 2) }
#[doc = "Bits 4:7 - Input capture 1 filter"]
#[inline (always)] pub fn ic1f (& mut self) -> Ic1fW < '_ , Ccmr1InputSpec > { Ic1fW :: new (self , 4) } }
#[doc = "capture/compare mode register (input mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ccmr1_input::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccmr1_input::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccmr1InputSpec ; impl crate :: RegisterSpec for Ccmr1InputSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccmr1_input::R`](R) reader structure"] impl crate :: Readable for Ccmr1InputSpec { }
#[doc = "`write(|w| ..)` method takes [`ccmr1_input::W`](W) writer structure"] impl crate :: Writable for Ccmr1InputSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCMR1_Input to value 0"] impl crate :: Resettable for Ccmr1InputSpec { } }
#[doc = "CCER (rw) register accessor: capture/compare enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`ccer::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccer::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccer`] module"]
#[doc (alias = "CCER")] pub type Ccer = crate :: Reg < ccer :: CcerSpec > ;
#[doc = "capture/compare enable register"] pub mod ccer {
#[doc = "Register `CCER` reader"] pub type R = crate :: R < CcerSpec > ;
#[doc = "Register `CCER` writer"] pub type W = crate :: W < CcerSpec > ;
#[doc = "Field `CC1E` reader - Capture/Compare 1 output enable"] pub type Cc1eR = crate :: BitReader ;
#[doc = "Field `CC1E` writer - Capture/Compare 1 output enable"] pub type Cc1eW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1P` reader - Capture/Compare 1 output Polarity"] pub type Cc1pR = crate :: BitReader ;
#[doc = "Field `CC1P` writer - Capture/Compare 1 output Polarity"] pub type Cc1pW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CC1NP` reader - Capture/Compare 1 output Polarity"] pub type Cc1npR = crate :: BitReader ;
#[doc = "Field `CC1NP` writer - Capture/Compare 1 output Polarity"] pub type Cc1npW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Capture/Compare 1 output enable"]
#[inline (always)] pub fn cc1e (& self) -> Cc1eR { Cc1eR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Capture/Compare 1 output Polarity"]
#[inline (always)] pub fn cc1p (& self) -> Cc1pR { Cc1pR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - Capture/Compare 1 output Polarity"]
#[inline (always)] pub fn cc1np (& self) -> Cc1npR { Cc1npR :: new (((self . bits >> 3) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Capture/Compare 1 output enable"]
#[inline (always)] pub fn cc1e (& mut self) -> Cc1eW < '_ , CcerSpec > { Cc1eW :: new (self , 0) }
#[doc = "Bit 1 - Capture/Compare 1 output Polarity"]
#[inline (always)] pub fn cc1p (& mut self) -> Cc1pW < '_ , CcerSpec > { Cc1pW :: new (self , 1) }
#[doc = "Bit 3 - Capture/Compare 1 output Polarity"]
#[inline (always)] pub fn cc1np (& mut self) -> Cc1npW < '_ , CcerSpec > { Cc1npW :: new (self , 3) } }
#[doc = "capture/compare enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`ccer::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccer::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CcerSpec ; impl crate :: RegisterSpec for CcerSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccer::R`](R) reader structure"] impl crate :: Readable for CcerSpec { }
#[doc = "`write(|w| ..)` method takes [`ccer::W`](W) writer structure"] impl crate :: Writable for CcerSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCER to value 0"] impl crate :: Resettable for CcerSpec { } }
#[doc = "CNT (rw) register accessor: counter\n\nYou can [`read`](crate::Reg::read) this register and get [`cnt::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnt::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cnt`] module"]
#[doc (alias = "CNT")] pub type Cnt = crate :: Reg < cnt :: CntSpec > ;
#[doc = "counter"] pub mod cnt {
#[doc = "Register `CNT` reader"] pub type R = crate :: R < CntSpec > ;
#[doc = "Register `CNT` writer"] pub type W = crate :: W < CntSpec > ;
#[doc = "Field `CNT` reader - counter value"] pub type CntR = crate :: FieldReader < u16 > ;
#[doc = "Field `CNT` writer - counter value"] pub type CntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - counter value"]
#[inline (always)] pub fn cnt (& self) -> CntR { CntR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - counter value"]
#[inline (always)] pub fn cnt (& mut self) -> CntW < '_ , CntSpec > { CntW :: new (self , 0) } }
#[doc = "counter\n\nYou can [`read`](crate::Reg::read) this register and get [`cnt::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnt::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CntSpec ; impl crate :: RegisterSpec for CntSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cnt::R`](R) reader structure"] impl crate :: Readable for CntSpec { }
#[doc = "`write(|w| ..)` method takes [`cnt::W`](W) writer structure"] impl crate :: Writable for CntSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNT to value 0"] impl crate :: Resettable for CntSpec { } }
#[doc = "PSC (rw) register accessor: prescaler\n\nYou can [`read`](crate::Reg::read) this register and get [`psc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`psc::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@psc`] module"]
#[doc (alias = "PSC")] pub type Psc = crate :: Reg < psc :: PscSpec > ;
#[doc = "prescaler"] pub mod psc {
#[doc = "Register `PSC` reader"] pub type R = crate :: R < PscSpec > ;
#[doc = "Register `PSC` writer"] pub type W = crate :: W < PscSpec > ;
#[doc = "Field `PSC` reader - Prescaler value"] pub type PscR = crate :: FieldReader < u16 > ;
#[doc = "Field `PSC` writer - Prescaler value"] pub type PscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Prescaler value"]
#[inline (always)] pub fn psc (& self) -> PscR { PscR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Prescaler value"]
#[inline (always)] pub fn psc (& mut self) -> PscW < '_ , PscSpec > { PscW :: new (self , 0) } }
#[doc = "prescaler\n\nYou can [`read`](crate::Reg::read) this register and get [`psc::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`psc::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PscSpec ; impl crate :: RegisterSpec for PscSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`psc::R`](R) reader structure"] impl crate :: Readable for PscSpec { }
#[doc = "`write(|w| ..)` method takes [`psc::W`](W) writer structure"] impl crate :: Writable for PscSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PSC to value 0"] impl crate :: Resettable for PscSpec { } }
#[doc = "ARR (rw) register accessor: auto-reload register\n\nYou can [`read`](crate::Reg::read) this register and get [`arr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@arr`] module"]
#[doc (alias = "ARR")] pub type Arr = crate :: Reg < arr :: ArrSpec > ;
#[doc = "auto-reload register"] pub mod arr {
#[doc = "Register `ARR` reader"] pub type R = crate :: R < ArrSpec > ;
#[doc = "Register `ARR` writer"] pub type W = crate :: W < ArrSpec > ;
#[doc = "Field `ARR` reader - Auto-reload value"] pub type ArrR = crate :: FieldReader < u16 > ;
#[doc = "Field `ARR` writer - Auto-reload value"] pub type ArrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Auto-reload value"]
#[inline (always)] pub fn arr (& self) -> ArrR { ArrR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Auto-reload value"]
#[inline (always)] pub fn arr (& mut self) -> ArrW < '_ , ArrSpec > { ArrW :: new (self , 0) } }
#[doc = "auto-reload register\n\nYou can [`read`](crate::Reg::read) this register and get [`arr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct ArrSpec ; impl crate :: RegisterSpec for ArrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`arr::R`](R) reader structure"] impl crate :: Readable for ArrSpec { }
#[doc = "`write(|w| ..)` method takes [`arr::W`](W) writer structure"] impl crate :: Writable for ArrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets ARR to value 0"] impl crate :: Resettable for ArrSpec { } }
#[doc = "CCR1 (rw) register accessor: capture/compare register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr1`] module"]
#[doc (alias = "CCR1")] pub type Ccr1 = crate :: Reg < ccr1 :: Ccr1Spec > ;
#[doc = "capture/compare register 1"] pub mod ccr1 {
#[doc = "Register `CCR1` reader"] pub type R = crate :: R < Ccr1Spec > ;
#[doc = "Register `CCR1` writer"] pub type W = crate :: W < Ccr1Spec > ;
#[doc = "Field `CCR1` reader - Capture/Compare 1 value"] pub type Ccr1R = crate :: FieldReader < u16 > ;
#[doc = "Field `CCR1` writer - Capture/Compare 1 value"] pub type Ccr1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Capture/Compare 1 value"]
#[inline (always)] pub fn ccr1 (& self) -> Ccr1R { Ccr1R :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Capture/Compare 1 value"]
#[inline (always)] pub fn ccr1 (& mut self) -> Ccr1W < '_ , Ccr1Spec > { Ccr1W :: new (self , 0) } }
#[doc = "capture/compare register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ccr1Spec ; impl crate :: RegisterSpec for Ccr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr1::R`](R) reader structure"] impl crate :: Readable for Ccr1Spec { }
#[doc = "`write(|w| ..)` method takes [`ccr1::W`](W) writer structure"] impl crate :: Writable for Ccr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR1 to value 0"] impl crate :: Resettable for Ccr1Spec { } } }
#[doc = "General purpose timer"] pub type Tim11 = crate :: Periph < tim10 :: RegisterBlock , 0x4001_5400 > ; impl core :: fmt :: Debug for Tim11 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Tim11") . finish () } }
#[doc = "General purpose timer"] pub use self :: tim10 as tim11 ;
#[doc = "General purpose timer"] pub type Tim13 = crate :: Periph < tim10 :: RegisterBlock , 0x4000_1c00 > ; impl core :: fmt :: Debug for Tim13 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Tim13") . finish () } }
#[doc = "General purpose timer"] pub use self :: tim10 as tim13 ;
#[doc = "General purpose timer"] pub type Tim14 = crate :: Periph < tim10 :: RegisterBlock , 0x4000_2000 > ; impl core :: fmt :: Debug for Tim14 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Tim14") . finish () } }
#[doc = "General purpose timer"] pub use self :: tim10 as tim14 ;
#[doc = "Basic timer"] pub type Tim6 = crate :: Periph < tim6 :: RegisterBlock , 0x4000_1000 > ; impl core :: fmt :: Debug for Tim6 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Tim6") . finish () } }
#[doc = "Basic timer"] pub mod tim6 {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { cr1 : Cr1 , cr2 : Cr2 , _reserved2 : [u8 ; 0x04] , dier : Dier , sr : Sr , egr : Egr , _reserved5 : [u8 ; 0x0c] , cnt : Cnt , psc : Psc , arr : Arr , } impl RegisterBlock {
#[doc = "0x00 - control register 1"]
#[inline (always)] pub const fn cr1 (& self) -> & Cr1 { & self . cr1 }
#[doc = "0x04 - control register 2"]
#[inline (always)] pub const fn cr2 (& self) -> & Cr2 { & self . cr2 }
#[doc = "0x0c - DMA/Interrupt enable register"]
#[inline (always)] pub const fn dier (& self) -> & Dier { & self . dier }
#[doc = "0x10 - status register"]
#[inline (always)] pub const fn sr (& self) -> & Sr { & self . sr }
#[doc = "0x14 - event generation register"]
#[inline (always)] pub const fn egr (& self) -> & Egr { & self . egr }
#[doc = "0x24 - counter"]
#[inline (always)] pub const fn cnt (& self) -> & Cnt { & self . cnt }
#[doc = "0x28 - prescaler"]
#[inline (always)] pub const fn psc (& self) -> & Psc { & self . psc }
#[doc = "0x2c - auto-reload register"]
#[inline (always)] pub const fn arr (& self) -> & Arr { & self . arr } }
#[doc = "CR1 (rw) register accessor: control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr1`] module"]
#[doc (alias = "CR1")] pub type Cr1 = crate :: Reg < cr1 :: Cr1Spec > ;
#[doc = "control register 1"] pub mod cr1 {
#[doc = "Register `CR1` reader"] pub type R = crate :: R < Cr1Spec > ;
#[doc = "Register `CR1` writer"] pub type W = crate :: W < Cr1Spec > ;
#[doc = "Field `CEN` reader - Counter enable"] pub type CenR = crate :: BitReader ;
#[doc = "Field `CEN` writer - Counter enable"] pub type CenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UDIS` reader - Update disable"] pub type UdisR = crate :: BitReader ;
#[doc = "Field `UDIS` writer - Update disable"] pub type UdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `URS` reader - Update request source"] pub type UrsR = crate :: BitReader ;
#[doc = "Field `URS` writer - Update request source"] pub type UrsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OPM` reader - One-pulse mode"] pub type OpmR = crate :: BitReader ;
#[doc = "Field `OPM` writer - One-pulse mode"] pub type OpmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ARPE` reader - Auto-reload preload enable"] pub type ArpeR = crate :: BitReader ;
#[doc = "Field `ARPE` writer - Auto-reload preload enable"] pub type ArpeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Counter enable"]
#[inline (always)] pub fn cen (& self) -> CenR { CenR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Update disable"]
#[inline (always)] pub fn udis (& self) -> UdisR { UdisR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Update request source"]
#[inline (always)] pub fn urs (& self) -> UrsR { UrsR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - One-pulse mode"]
#[inline (always)] pub fn opm (& self) -> OpmR { OpmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 7 - Auto-reload preload enable"]
#[inline (always)] pub fn arpe (& self) -> ArpeR { ArpeR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Counter enable"]
#[inline (always)] pub fn cen (& mut self) -> CenW < '_ , Cr1Spec > { CenW :: new (self , 0) }
#[doc = "Bit 1 - Update disable"]
#[inline (always)] pub fn udis (& mut self) -> UdisW < '_ , Cr1Spec > { UdisW :: new (self , 1) }
#[doc = "Bit 2 - Update request source"]
#[inline (always)] pub fn urs (& mut self) -> UrsW < '_ , Cr1Spec > { UrsW :: new (self , 2) }
#[doc = "Bit 3 - One-pulse mode"]
#[inline (always)] pub fn opm (& mut self) -> OpmW < '_ , Cr1Spec > { OpmW :: new (self , 3) }
#[doc = "Bit 7 - Auto-reload preload enable"]
#[inline (always)] pub fn arpe (& mut self) -> ArpeW < '_ , Cr1Spec > { ArpeW :: new (self , 7) } }
#[doc = "control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr1Spec ; impl crate :: RegisterSpec for Cr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr1::R`](R) reader structure"] impl crate :: Readable for Cr1Spec { }
#[doc = "`write(|w| ..)` method takes [`cr1::W`](W) writer structure"] impl crate :: Writable for Cr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR1 to value 0"] impl crate :: Resettable for Cr1Spec { } }
#[doc = "CR2 (rw) register accessor: control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr2`] module"]
#[doc (alias = "CR2")] pub type Cr2 = crate :: Reg < cr2 :: Cr2Spec > ;
#[doc = "control register 2"] pub mod cr2 {
#[doc = "Register `CR2` reader"] pub type R = crate :: R < Cr2Spec > ;
#[doc = "Register `CR2` writer"] pub type W = crate :: W < Cr2Spec > ;
#[doc = "Field `MMS` reader - Master mode selection"] pub type MmsR = crate :: FieldReader ;
#[doc = "Field `MMS` writer - Master mode selection"] pub type MmsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bits 4:6 - Master mode selection"]
#[inline (always)] pub fn mms (& self) -> MmsR { MmsR :: new (((self . bits >> 4) & 7) as u8) } } impl W {
#[doc = "Bits 4:6 - Master mode selection"]
#[inline (always)] pub fn mms (& mut self) -> MmsW < '_ , Cr2Spec > { MmsW :: new (self , 4) } }
#[doc = "control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr2Spec ; impl crate :: RegisterSpec for Cr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr2::R`](R) reader structure"] impl crate :: Readable for Cr2Spec { }
#[doc = "`write(|w| ..)` method takes [`cr2::W`](W) writer structure"] impl crate :: Writable for Cr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR2 to value 0"] impl crate :: Resettable for Cr2Spec { } }
#[doc = "DIER (rw) register accessor: DMA/Interrupt enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`dier::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dier::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dier`] module"]
#[doc (alias = "DIER")] pub type Dier = crate :: Reg < dier :: DierSpec > ;
#[doc = "DMA/Interrupt enable register"] pub mod dier {
#[doc = "Register `DIER` reader"] pub type R = crate :: R < DierSpec > ;
#[doc = "Register `DIER` writer"] pub type W = crate :: W < DierSpec > ;
#[doc = "Field `UIE` reader - Update interrupt enable"] pub type UieR = crate :: BitReader ;
#[doc = "Field `UIE` writer - Update interrupt enable"] pub type UieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UDE` reader - Update DMA request enable"] pub type UdeR = crate :: BitReader ;
#[doc = "Field `UDE` writer - Update DMA request enable"] pub type UdeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Update interrupt enable"]
#[inline (always)] pub fn uie (& self) -> UieR { UieR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 8 - Update DMA request enable"]
#[inline (always)] pub fn ude (& self) -> UdeR { UdeR :: new (((self . bits >> 8) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Update interrupt enable"]
#[inline (always)] pub fn uie (& mut self) -> UieW < '_ , DierSpec > { UieW :: new (self , 0) }
#[doc = "Bit 8 - Update DMA request enable"]
#[inline (always)] pub fn ude (& mut self) -> UdeW < '_ , DierSpec > { UdeW :: new (self , 8) } }
#[doc = "DMA/Interrupt enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`dier::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dier::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DierSpec ; impl crate :: RegisterSpec for DierSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dier::R`](R) reader structure"] impl crate :: Readable for DierSpec { }
#[doc = "`write(|w| ..)` method takes [`dier::W`](W) writer structure"] impl crate :: Writable for DierSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIER to value 0"] impl crate :: Resettable for DierSpec { } }
#[doc = "SR (rw) register accessor: status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`] module"]
#[doc (alias = "SR")] pub type Sr = crate :: Reg < sr :: SrSpec > ;
#[doc = "status register"] pub mod sr {
#[doc = "Register `SR` reader"] pub type R = crate :: R < SrSpec > ;
#[doc = "Register `SR` writer"] pub type W = crate :: W < SrSpec > ;
#[doc = "Field `UIF` reader - Update interrupt flag"] pub type UifR = crate :: BitReader ;
#[doc = "Field `UIF` writer - Update interrupt flag"] pub type UifW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Update interrupt flag"]
#[inline (always)] pub fn uif (& self) -> UifR { UifR :: new ((self . bits & 1) != 0) } } impl W {
#[doc = "Bit 0 - Update interrupt flag"]
#[inline (always)] pub fn uif (& mut self) -> UifW < '_ , SrSpec > { UifW :: new (self , 0) } }
#[doc = "status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec ; impl crate :: RegisterSpec for SrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate :: Readable for SrSpec { }
#[doc = "`write(|w| ..)` method takes [`sr::W`](W) writer structure"] impl crate :: Writable for SrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR to value 0"] impl crate :: Resettable for SrSpec { } }
#[doc = "EGR (w) register accessor: event generation register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`egr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@egr`] module"]
#[doc (alias = "EGR")] pub type Egr = crate :: Reg < egr :: EgrSpec > ;
#[doc = "event generation register"] pub mod egr {
#[doc = "Register `EGR` writer"] pub type W = crate :: W < EgrSpec > ;
#[doc = "Field `UG` writer - Update generation"] pub type UgW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl W {
#[doc = "Bit 0 - Update generation"]
#[inline (always)] pub fn ug (& mut self) -> UgW < '_ , EgrSpec > { UgW :: new (self , 0) } }
#[doc = "event generation register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`egr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct EgrSpec ; impl crate :: RegisterSpec for EgrSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`egr::W`](W) writer structure"] impl crate :: Writable for EgrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EGR to value 0"] impl crate :: Resettable for EgrSpec { } }
#[doc = "CNT (rw) register accessor: counter\n\nYou can [`read`](crate::Reg::read) this register and get [`cnt::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnt::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cnt`] module"]
#[doc (alias = "CNT")] pub type Cnt = crate :: Reg < cnt :: CntSpec > ;
#[doc = "counter"] pub mod cnt {
#[doc = "Register `CNT` reader"] pub type R = crate :: R < CntSpec > ;
#[doc = "Register `CNT` writer"] pub type W = crate :: W < CntSpec > ;
#[doc = "Field `CNT` reader - Low counter value"] pub type CntR = crate :: FieldReader < u16 > ;
#[doc = "Field `CNT` writer - Low counter value"] pub type CntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Low counter value"]
#[inline (always)] pub fn cnt (& self) -> CntR { CntR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Low counter value"]
#[inline (always)] pub fn cnt (& mut self) -> CntW < '_ , CntSpec > { CntW :: new (self , 0) } }
#[doc = "counter\n\nYou can [`read`](crate::Reg::read) this register and get [`cnt::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnt::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CntSpec ; impl crate :: RegisterSpec for CntSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cnt::R`](R) reader structure"] impl crate :: Readable for CntSpec { }
#[doc = "`write(|w| ..)` method takes [`cnt::W`](W) writer structure"] impl crate :: Writable for CntSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNT to value 0"] impl crate :: Resettable for CntSpec { } }
#[doc = "PSC (rw) register accessor: prescaler\n\nYou can [`read`](crate::Reg::read) this register and get [`psc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`psc::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@psc`] module"]
#[doc (alias = "PSC")] pub type Psc = crate :: Reg < psc :: PscSpec > ;
#[doc = "prescaler"] pub mod psc {
#[doc = "Register `PSC` reader"] pub type R = crate :: R < PscSpec > ;
#[doc = "Register `PSC` writer"] pub type W = crate :: W < PscSpec > ;
#[doc = "Field `PSC` reader - Prescaler value"] pub type PscR = crate :: FieldReader < u16 > ;
#[doc = "Field `PSC` writer - Prescaler value"] pub type PscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Prescaler value"]
#[inline (always)] pub fn psc (& self) -> PscR { PscR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Prescaler value"]
#[inline (always)] pub fn psc (& mut self) -> PscW < '_ , PscSpec > { PscW :: new (self , 0) } }
#[doc = "prescaler\n\nYou can [`read`](crate::Reg::read) this register and get [`psc::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`psc::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PscSpec ; impl crate :: RegisterSpec for PscSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`psc::R`](R) reader structure"] impl crate :: Readable for PscSpec { }
#[doc = "`write(|w| ..)` method takes [`psc::W`](W) writer structure"] impl crate :: Writable for PscSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PSC to value 0"] impl crate :: Resettable for PscSpec { } }
#[doc = "ARR (rw) register accessor: auto-reload register\n\nYou can [`read`](crate::Reg::read) this register and get [`arr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@arr`] module"]
#[doc (alias = "ARR")] pub type Arr = crate :: Reg < arr :: ArrSpec > ;
#[doc = "auto-reload register"] pub mod arr {
#[doc = "Register `ARR` reader"] pub type R = crate :: R < ArrSpec > ;
#[doc = "Register `ARR` writer"] pub type W = crate :: W < ArrSpec > ;
#[doc = "Field `ARR` reader - Low Auto-reload value"] pub type ArrR = crate :: FieldReader < u16 > ;
#[doc = "Field `ARR` writer - Low Auto-reload value"] pub type ArrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Low Auto-reload value"]
#[inline (always)] pub fn arr (& self) -> ArrR { ArrR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Low Auto-reload value"]
#[inline (always)] pub fn arr (& mut self) -> ArrW < '_ , ArrSpec > { ArrW :: new (self , 0) } }
#[doc = "auto-reload register\n\nYou can [`read`](crate::Reg::read) this register and get [`arr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct ArrSpec ; impl crate :: RegisterSpec for ArrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`arr::R`](R) reader structure"] impl crate :: Readable for ArrSpec { }
#[doc = "`write(|w| ..)` method takes [`arr::W`](W) writer structure"] impl crate :: Writable for ArrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets ARR to value 0"] impl crate :: Resettable for ArrSpec { } } }
#[doc = "Basic timer"] pub type Tim7 = crate :: Periph < tim6 :: RegisterBlock , 0x4000_1400 > ; impl core :: fmt :: Debug for Tim7 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Tim7") . finish () } }
#[doc = "Basic timer"] pub use self :: tim6 as tim7 ;
#[doc = "Inter integrated circuit"] pub type I2c1 = crate :: Periph < i2c1 :: RegisterBlock , 0x4000_5400 > ; impl core :: fmt :: Debug for I2c1 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("I2c1") . finish () } }
#[doc = "Inter integrated circuit"] pub mod i2c1 {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { cr1 : Cr1 , cr2 : Cr2 , oar1 : Oar1 , oar2 : Oar2 , dr : Dr , sr1 : Sr1 , sr2 : Sr2 , ccr : Ccr , trise : Trise , } impl RegisterBlock {
#[doc = "0x00 - Control register 1"]
#[inline (always)] pub const fn cr1 (& self) -> & Cr1 { & self . cr1 }
#[doc = "0x04 - Control register 2"]
#[inline (always)] pub const fn cr2 (& self) -> & Cr2 { & self . cr2 }
#[doc = "0x08 - Own address register 1"]
#[inline (always)] pub const fn oar1 (& self) -> & Oar1 { & self . oar1 }
#[doc = "0x0c - Own address register 2"]
#[inline (always)] pub const fn oar2 (& self) -> & Oar2 { & self . oar2 }
#[doc = "0x10 - Data register"]
#[inline (always)] pub const fn dr (& self) -> & Dr { & self . dr }
#[doc = "0x14 - Status register 1"]
#[inline (always)] pub const fn sr1 (& self) -> & Sr1 { & self . sr1 }
#[doc = "0x18 - Status register 2"]
#[inline (always)] pub const fn sr2 (& self) -> & Sr2 { & self . sr2 }
#[doc = "0x1c - Clock control register"]
#[inline (always)] pub const fn ccr (& self) -> & Ccr { & self . ccr }
#[doc = "0x20 - TRISE register"]
#[inline (always)] pub const fn trise (& self) -> & Trise { & self . trise } }
#[doc = "CR1 (rw) register accessor: Control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr1`] module"]
#[doc (alias = "CR1")] pub type Cr1 = crate :: Reg < cr1 :: Cr1Spec > ;
#[doc = "Control register 1"] pub mod cr1 {
#[doc = "Register `CR1` reader"] pub type R = crate :: R < Cr1Spec > ;
#[doc = "Register `CR1` writer"] pub type W = crate :: W < Cr1Spec > ;
#[doc = "Field `PE` reader - Peripheral enable"] pub type PeR = crate :: BitReader ;
#[doc = "Field `PE` writer - Peripheral enable"] pub type PeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SMBUS` reader - SMBus mode"] pub type SmbusR = crate :: BitReader ;
#[doc = "Field `SMBUS` writer - SMBus mode"] pub type SmbusW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SMBTYPE` reader - SMBus type"] pub type SmbtypeR = crate :: BitReader ;
#[doc = "Field `SMBTYPE` writer - SMBus type"] pub type SmbtypeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ENARP` reader - ARP enable"] pub type EnarpR = crate :: BitReader ;
#[doc = "Field `ENARP` writer - ARP enable"] pub type EnarpW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ENPEC` reader - PEC enable"] pub type EnpecR = crate :: BitReader ;
#[doc = "Field `ENPEC` writer - PEC enable"] pub type EnpecW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ENGC` reader - General call enable"] pub type EngcR = crate :: BitReader ;
#[doc = "Field `ENGC` writer - General call enable"] pub type EngcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NOSTRETCH` reader - Clock stretching disable (Slave mode)"] pub type NostretchR = crate :: BitReader ;
#[doc = "Field `NOSTRETCH` writer - Clock stretching disable (Slave mode)"] pub type NostretchW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `START` reader - Start generation"] pub type StartR = crate :: BitReader ;
#[doc = "Field `START` writer - Start generation"] pub type StartW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STOP` reader - Stop generation"] pub type StopR = crate :: BitReader ;
#[doc = "Field `STOP` writer - Stop generation"] pub type StopW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACK` reader - Acknowledge enable"] pub type AckR = crate :: BitReader ;
#[doc = "Field `ACK` writer - Acknowledge enable"] pub type AckW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `POS` reader - Acknowledge/PEC Position (for data reception)"] pub type PosR = crate :: BitReader ;
#[doc = "Field `POS` writer - Acknowledge/PEC Position (for data reception)"] pub type PosW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PEC` reader - Packet error checking"] pub type PecR = crate :: BitReader ;
#[doc = "Field `PEC` writer - Packet error checking"] pub type PecW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ALERT` reader - SMBus alert"] pub type AlertR = crate :: BitReader ;
#[doc = "Field `ALERT` writer - SMBus alert"] pub type AlertW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWRST` reader - Software reset"] pub type SwrstR = crate :: BitReader ;
#[doc = "Field `SWRST` writer - Software reset"] pub type SwrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Peripheral enable"]
#[inline (always)] pub fn pe (& self) -> PeR { PeR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - SMBus mode"]
#[inline (always)] pub fn smbus (& self) -> SmbusR { SmbusR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - SMBus type"]
#[inline (always)] pub fn smbtype (& self) -> SmbtypeR { SmbtypeR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - ARP enable"]
#[inline (always)] pub fn enarp (& self) -> EnarpR { EnarpR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - PEC enable"]
#[inline (always)] pub fn enpec (& self) -> EnpecR { EnpecR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - General call enable"]
#[inline (always)] pub fn engc (& self) -> EngcR { EngcR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Clock stretching disable (Slave mode)"]
#[inline (always)] pub fn nostretch (& self) -> NostretchR { NostretchR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Start generation"]
#[inline (always)] pub fn start (& self) -> StartR { StartR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Stop generation"]
#[inline (always)] pub fn stop (& self) -> StopR { StopR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Acknowledge enable"]
#[inline (always)] pub fn ack (& self) -> AckR { AckR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Acknowledge/PEC Position (for data reception)"]
#[inline (always)] pub fn pos (& self) -> PosR { PosR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Packet error checking"]
#[inline (always)] pub fn pec (& self) -> PecR { PecR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - SMBus alert"]
#[inline (always)] pub fn alert (& self) -> AlertR { AlertR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 15 - Software reset"]
#[inline (always)] pub fn swrst (& self) -> SwrstR { SwrstR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Peripheral enable"]
#[inline (always)] pub fn pe (& mut self) -> PeW < '_ , Cr1Spec > { PeW :: new (self , 0) }
#[doc = "Bit 1 - SMBus mode"]
#[inline (always)] pub fn smbus (& mut self) -> SmbusW < '_ , Cr1Spec > { SmbusW :: new (self , 1) }
#[doc = "Bit 3 - SMBus type"]
#[inline (always)] pub fn smbtype (& mut self) -> SmbtypeW < '_ , Cr1Spec > { SmbtypeW :: new (self , 3) }
#[doc = "Bit 4 - ARP enable"]
#[inline (always)] pub fn enarp (& mut self) -> EnarpW < '_ , Cr1Spec > { EnarpW :: new (self , 4) }
#[doc = "Bit 5 - PEC enable"]
#[inline (always)] pub fn enpec (& mut self) -> EnpecW < '_ , Cr1Spec > { EnpecW :: new (self , 5) }
#[doc = "Bit 6 - General call enable"]
#[inline (always)] pub fn engc (& mut self) -> EngcW < '_ , Cr1Spec > { EngcW :: new (self , 6) }
#[doc = "Bit 7 - Clock stretching disable (Slave mode)"]
#[inline (always)] pub fn nostretch (& mut self) -> NostretchW < '_ , Cr1Spec > { NostretchW :: new (self , 7) }
#[doc = "Bit 8 - Start generation"]
#[inline (always)] pub fn start (& mut self) -> StartW < '_ , Cr1Spec > { StartW :: new (self , 8) }
#[doc = "Bit 9 - Stop generation"]
#[inline (always)] pub fn stop (& mut self) -> StopW < '_ , Cr1Spec > { StopW :: new (self , 9) }
#[doc = "Bit 10 - Acknowledge enable"]
#[inline (always)] pub fn ack (& mut self) -> AckW < '_ , Cr1Spec > { AckW :: new (self , 10) }
#[doc = "Bit 11 - Acknowledge/PEC Position (for data reception)"]
#[inline (always)] pub fn pos (& mut self) -> PosW < '_ , Cr1Spec > { PosW :: new (self , 11) }
#[doc = "Bit 12 - Packet error checking"]
#[inline (always)] pub fn pec (& mut self) -> PecW < '_ , Cr1Spec > { PecW :: new (self , 12) }
#[doc = "Bit 13 - SMBus alert"]
#[inline (always)] pub fn alert (& mut self) -> AlertW < '_ , Cr1Spec > { AlertW :: new (self , 13) }
#[doc = "Bit 15 - Software reset"]
#[inline (always)] pub fn swrst (& mut self) -> SwrstW < '_ , Cr1Spec > { SwrstW :: new (self , 15) } }
#[doc = "Control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr1Spec ; impl crate :: RegisterSpec for Cr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr1::R`](R) reader structure"] impl crate :: Readable for Cr1Spec { }
#[doc = "`write(|w| ..)` method takes [`cr1::W`](W) writer structure"] impl crate :: Writable for Cr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR1 to value 0"] impl crate :: Resettable for Cr1Spec { } }
#[doc = "CR2 (rw) register accessor: Control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr2`] module"]
#[doc (alias = "CR2")] pub type Cr2 = crate :: Reg < cr2 :: Cr2Spec > ;
#[doc = "Control register 2"] pub mod cr2 {
#[doc = "Register `CR2` reader"] pub type R = crate :: R < Cr2Spec > ;
#[doc = "Register `CR2` writer"] pub type W = crate :: W < Cr2Spec > ;
#[doc = "Field `FREQ` reader - Peripheral clock frequency"] pub type FreqR = crate :: FieldReader ;
#[doc = "Field `FREQ` writer - Peripheral clock frequency"] pub type FreqW < 'a , REG > = crate :: FieldWriter < 'a , REG , 6 > ;
#[doc = "Field `ITERREN` reader - Error interrupt enable"] pub type IterrenR = crate :: BitReader ;
#[doc = "Field `ITERREN` writer - Error interrupt enable"] pub type IterrenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ITEVTEN` reader - Event interrupt enable"] pub type ItevtenR = crate :: BitReader ;
#[doc = "Field `ITEVTEN` writer - Event interrupt enable"] pub type ItevtenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ITBUFEN` reader - Buffer interrupt enable"] pub type ItbufenR = crate :: BitReader ;
#[doc = "Field `ITBUFEN` writer - Buffer interrupt enable"] pub type ItbufenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DMAEN` reader - DMA requests enable"] pub type DmaenR = crate :: BitReader ;
#[doc = "Field `DMAEN` writer - DMA requests enable"] pub type DmaenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LAST` reader - DMA last transfer"] pub type LastR = crate :: BitReader ;
#[doc = "Field `LAST` writer - DMA last transfer"] pub type LastW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:5 - Peripheral clock frequency"]
#[inline (always)] pub fn freq (& self) -> FreqR { FreqR :: new ((self . bits & 0x3f) as u8) }
#[doc = "Bit 8 - Error interrupt enable"]
#[inline (always)] pub fn iterren (& self) -> IterrenR { IterrenR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Event interrupt enable"]
#[inline (always)] pub fn itevten (& self) -> ItevtenR { ItevtenR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Buffer interrupt enable"]
#[inline (always)] pub fn itbufen (& self) -> ItbufenR { ItbufenR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - DMA requests enable"]
#[inline (always)] pub fn dmaen (& self) -> DmaenR { DmaenR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - DMA last transfer"]
#[inline (always)] pub fn last (& self) -> LastR { LastR :: new (((self . bits >> 12) & 1) != 0) } } impl W {
#[doc = "Bits 0:5 - Peripheral clock frequency"]
#[inline (always)] pub fn freq (& mut self) -> FreqW < '_ , Cr2Spec > { FreqW :: new (self , 0) }
#[doc = "Bit 8 - Error interrupt enable"]
#[inline (always)] pub fn iterren (& mut self) -> IterrenW < '_ , Cr2Spec > { IterrenW :: new (self , 8) }
#[doc = "Bit 9 - Event interrupt enable"]
#[inline (always)] pub fn itevten (& mut self) -> ItevtenW < '_ , Cr2Spec > { ItevtenW :: new (self , 9) }
#[doc = "Bit 10 - Buffer interrupt enable"]
#[inline (always)] pub fn itbufen (& mut self) -> ItbufenW < '_ , Cr2Spec > { ItbufenW :: new (self , 10) }
#[doc = "Bit 11 - DMA requests enable"]
#[inline (always)] pub fn dmaen (& mut self) -> DmaenW < '_ , Cr2Spec > { DmaenW :: new (self , 11) }
#[doc = "Bit 12 - DMA last transfer"]
#[inline (always)] pub fn last (& mut self) -> LastW < '_ , Cr2Spec > { LastW :: new (self , 12) } }
#[doc = "Control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr2Spec ; impl crate :: RegisterSpec for Cr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr2::R`](R) reader structure"] impl crate :: Readable for Cr2Spec { }
#[doc = "`write(|w| ..)` method takes [`cr2::W`](W) writer structure"] impl crate :: Writable for Cr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR2 to value 0"] impl crate :: Resettable for Cr2Spec { } }
#[doc = "OAR1 (rw) register accessor: Own address register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`oar1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`oar1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@oar1`] module"]
#[doc (alias = "OAR1")] pub type Oar1 = crate :: Reg < oar1 :: Oar1Spec > ;
#[doc = "Own address register 1"] pub mod oar1 {
#[doc = "Register `OAR1` reader"] pub type R = crate :: R < Oar1Spec > ;
#[doc = "Register `OAR1` writer"] pub type W = crate :: W < Oar1Spec > ;
#[doc = "Field `ADD0` reader - Interface address"] pub type Add0R = crate :: BitReader ;
#[doc = "Field `ADD0` writer - Interface address"] pub type Add0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ADD7` reader - Interface address"] pub type Add7R = crate :: FieldReader ;
#[doc = "Field `ADD7` writer - Interface address"] pub type Add7W < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `ADD10` reader - Interface address"] pub type Add10R = crate :: FieldReader ;
#[doc = "Field `ADD10` writer - Interface address"] pub type Add10W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `ADDMODE` reader - Addressing mode (slave mode)"] pub type AddmodeR = crate :: BitReader ;
#[doc = "Field `ADDMODE` writer - Addressing mode (slave mode)"] pub type AddmodeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Interface address"]
#[inline (always)] pub fn add0 (& self) -> Add0R { Add0R :: new ((self . bits & 1) != 0) }
#[doc = "Bits 1:7 - Interface address"]
#[inline (always)] pub fn add7 (& self) -> Add7R { Add7R :: new (((self . bits >> 1) & 0x7f) as u8) }
#[doc = "Bits 8:9 - Interface address"]
#[inline (always)] pub fn add10 (& self) -> Add10R { Add10R :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bit 15 - Addressing mode (slave mode)"]
#[inline (always)] pub fn addmode (& self) -> AddmodeR { AddmodeR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Interface address"]
#[inline (always)] pub fn add0 (& mut self) -> Add0W < '_ , Oar1Spec > { Add0W :: new (self , 0) }
#[doc = "Bits 1:7 - Interface address"]
#[inline (always)] pub fn add7 (& mut self) -> Add7W < '_ , Oar1Spec > { Add7W :: new (self , 1) }
#[doc = "Bits 8:9 - Interface address"]
#[inline (always)] pub fn add10 (& mut self) -> Add10W < '_ , Oar1Spec > { Add10W :: new (self , 8) }
#[doc = "Bit 15 - Addressing mode (slave mode)"]
#[inline (always)] pub fn addmode (& mut self) -> AddmodeW < '_ , Oar1Spec > { AddmodeW :: new (self , 15) } }
#[doc = "Own address register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`oar1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`oar1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Oar1Spec ; impl crate :: RegisterSpec for Oar1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`oar1::R`](R) reader structure"] impl crate :: Readable for Oar1Spec { }
#[doc = "`write(|w| ..)` method takes [`oar1::W`](W) writer structure"] impl crate :: Writable for Oar1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets OAR1 to value 0"] impl crate :: Resettable for Oar1Spec { } }
#[doc = "OAR2 (rw) register accessor: Own address register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`oar2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`oar2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@oar2`] module"]
#[doc (alias = "OAR2")] pub type Oar2 = crate :: Reg < oar2 :: Oar2Spec > ;
#[doc = "Own address register 2"] pub mod oar2 {
#[doc = "Register `OAR2` reader"] pub type R = crate :: R < Oar2Spec > ;
#[doc = "Register `OAR2` writer"] pub type W = crate :: W < Oar2Spec > ;
#[doc = "Field `ENDUAL` reader - Dual addressing mode enable"] pub type EndualR = crate :: BitReader ;
#[doc = "Field `ENDUAL` writer - Dual addressing mode enable"] pub type EndualW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ADD2` reader - Interface address"] pub type Add2R = crate :: FieldReader ;
#[doc = "Field `ADD2` writer - Interface address"] pub type Add2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ; impl R {
#[doc = "Bit 0 - Dual addressing mode enable"]
#[inline (always)] pub fn endual (& self) -> EndualR { EndualR :: new ((self . bits & 1) != 0) }
#[doc = "Bits 1:7 - Interface address"]
#[inline (always)] pub fn add2 (& self) -> Add2R { Add2R :: new (((self . bits >> 1) & 0x7f) as u8) } } impl W {
#[doc = "Bit 0 - Dual addressing mode enable"]
#[inline (always)] pub fn endual (& mut self) -> EndualW < '_ , Oar2Spec > { EndualW :: new (self , 0) }
#[doc = "Bits 1:7 - Interface address"]
#[inline (always)] pub fn add2 (& mut self) -> Add2W < '_ , Oar2Spec > { Add2W :: new (self , 1) } }
#[doc = "Own address register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`oar2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`oar2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Oar2Spec ; impl crate :: RegisterSpec for Oar2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`oar2::R`](R) reader structure"] impl crate :: Readable for Oar2Spec { }
#[doc = "`write(|w| ..)` method takes [`oar2::W`](W) writer structure"] impl crate :: Writable for Oar2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets OAR2 to value 0"] impl crate :: Resettable for Oar2Spec { } }
#[doc = "DR (rw) register accessor: Data register\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr`] module"]
#[doc (alias = "DR")] pub type Dr = crate :: Reg < dr :: DrSpec > ;
#[doc = "Data register"] pub mod dr {
#[doc = "Register `DR` reader"] pub type R = crate :: R < DrSpec > ;
#[doc = "Register `DR` writer"] pub type W = crate :: W < DrSpec > ;
#[doc = "Field `DR` reader - 8-bit data register"] pub type DrR = crate :: FieldReader ;
#[doc = "Field `DR` writer - 8-bit data register"] pub type DrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - 8-bit data register"]
#[inline (always)] pub fn dr (& self) -> DrR { DrR :: new ((self . bits & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - 8-bit data register"]
#[inline (always)] pub fn dr (& mut self) -> DrW < '_ , DrSpec > { DrW :: new (self , 0) } }
#[doc = "Data register\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DrSpec ; impl crate :: RegisterSpec for DrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr::R`](R) reader structure"] impl crate :: Readable for DrSpec { }
#[doc = "`write(|w| ..)` method takes [`dr::W`](W) writer structure"] impl crate :: Writable for DrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR to value 0"] impl crate :: Resettable for DrSpec { } }
#[doc = "SR1 (rw) register accessor: Status register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`sr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr1`] module"]
#[doc (alias = "SR1")] pub type Sr1 = crate :: Reg < sr1 :: Sr1Spec > ;
#[doc = "Status register 1"] pub mod sr1 {
#[doc = "Register `SR1` reader"] pub type R = crate :: R < Sr1Spec > ;
#[doc = "Register `SR1` writer"] pub type W = crate :: W < Sr1Spec > ;
#[doc = "Field `SB` reader - Start bit (Master mode)"] pub type SbR = crate :: BitReader ;
#[doc = "Field `ADDR` reader - Address sent (master mode)/matched (slave mode)"] pub type AddrR = crate :: BitReader ;
#[doc = "Field `BTF` reader - Byte transfer finished"] pub type BtfR = crate :: BitReader ;
#[doc = "Field `ADD10` reader - 10-bit header sent (Master mode)"] pub type Add10R = crate :: BitReader ;
#[doc = "Field `STOPF` reader - Stop detection (slave mode)"] pub type StopfR = crate :: BitReader ;
#[doc = "Field `RxNE` reader - Data register not empty (receivers)"] pub type RxNeR = crate :: BitReader ;
#[doc = "Field `TxE` reader - Data register empty (transmitters)"] pub type TxER = crate :: BitReader ;
#[doc = "Field `BERR` reader - Bus error"] pub type BerrR = crate :: BitReader ;
#[doc = "Field `BERR` writer - Bus error"] pub type BerrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ARLO` reader - Arbitration lost (master mode)"] pub type ArloR = crate :: BitReader ;
#[doc = "Field `ARLO` writer - Arbitration lost (master mode)"] pub type ArloW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AF` reader - Acknowledge failure"] pub type AfR = crate :: BitReader ;
#[doc = "Field `AF` writer - Acknowledge failure"] pub type AfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OVR` reader - Overrun/Underrun"] pub type OvrR = crate :: BitReader ;
#[doc = "Field `OVR` writer - Overrun/Underrun"] pub type OvrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PECERR` reader - PEC Error in reception"] pub type PecerrR = crate :: BitReader ;
#[doc = "Field `PECERR` writer - PEC Error in reception"] pub type PecerrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIMEOUT` reader - Timeout or Tlow error"] pub type TimeoutR = crate :: BitReader ;
#[doc = "Field `TIMEOUT` writer - Timeout or Tlow error"] pub type TimeoutW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SMBALERT` reader - SMBus alert"] pub type SmbalertR = crate :: BitReader ;
#[doc = "Field `SMBALERT` writer - SMBus alert"] pub type SmbalertW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Start bit (Master mode)"]
#[inline (always)] pub fn sb (& self) -> SbR { SbR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Address sent (master mode)/matched (slave mode)"]
#[inline (always)] pub fn addr (& self) -> AddrR { AddrR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Byte transfer finished"]
#[inline (always)] pub fn btf (& self) -> BtfR { BtfR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - 10-bit header sent (Master mode)"]
#[inline (always)] pub fn add10 (& self) -> Add10R { Add10R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Stop detection (slave mode)"]
#[inline (always)] pub fn stopf (& self) -> StopfR { StopfR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 6 - Data register not empty (receivers)"]
#[inline (always)] pub fn rx_ne (& self) -> RxNeR { RxNeR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Data register empty (transmitters)"]
#[inline (always)] pub fn tx_e (& self) -> TxER { TxER :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Bus error"]
#[inline (always)] pub fn berr (& self) -> BerrR { BerrR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Arbitration lost (master mode)"]
#[inline (always)] pub fn arlo (& self) -> ArloR { ArloR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Acknowledge failure"]
#[inline (always)] pub fn af (& self) -> AfR { AfR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Overrun/Underrun"]
#[inline (always)] pub fn ovr (& self) -> OvrR { OvrR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - PEC Error in reception"]
#[inline (always)] pub fn pecerr (& self) -> PecerrR { PecerrR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 14 - Timeout or Tlow error"]
#[inline (always)] pub fn timeout (& self) -> TimeoutR { TimeoutR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - SMBus alert"]
#[inline (always)] pub fn smbalert (& self) -> SmbalertR { SmbalertR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bit 8 - Bus error"]
#[inline (always)] pub fn berr (& mut self) -> BerrW < '_ , Sr1Spec > { BerrW :: new (self , 8) }
#[doc = "Bit 9 - Arbitration lost (master mode)"]
#[inline (always)] pub fn arlo (& mut self) -> ArloW < '_ , Sr1Spec > { ArloW :: new (self , 9) }
#[doc = "Bit 10 - Acknowledge failure"]
#[inline (always)] pub fn af (& mut self) -> AfW < '_ , Sr1Spec > { AfW :: new (self , 10) }
#[doc = "Bit 11 - Overrun/Underrun"]
#[inline (always)] pub fn ovr (& mut self) -> OvrW < '_ , Sr1Spec > { OvrW :: new (self , 11) }
#[doc = "Bit 12 - PEC Error in reception"]
#[inline (always)] pub fn pecerr (& mut self) -> PecerrW < '_ , Sr1Spec > { PecerrW :: new (self , 12) }
#[doc = "Bit 14 - Timeout or Tlow error"]
#[inline (always)] pub fn timeout (& mut self) -> TimeoutW < '_ , Sr1Spec > { TimeoutW :: new (self , 14) }
#[doc = "Bit 15 - SMBus alert"]
#[inline (always)] pub fn smbalert (& mut self) -> SmbalertW < '_ , Sr1Spec > { SmbalertW :: new (self , 15) } }
#[doc = "Status register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`sr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Sr1Spec ; impl crate :: RegisterSpec for Sr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr1::R`](R) reader structure"] impl crate :: Readable for Sr1Spec { }
#[doc = "`write(|w| ..)` method takes [`sr1::W`](W) writer structure"] impl crate :: Writable for Sr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR1 to value 0"] impl crate :: Resettable for Sr1Spec { } }
#[doc = "SR2 (r) register accessor: Status register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`sr2::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr2`] module"]
#[doc (alias = "SR2")] pub type Sr2 = crate :: Reg < sr2 :: Sr2Spec > ;
#[doc = "Status register 2"] pub mod sr2 {
#[doc = "Register `SR2` reader"] pub type R = crate :: R < Sr2Spec > ;
#[doc = "Field `MSL` reader - Master/slave"] pub type MslR = crate :: BitReader ;
#[doc = "Field `BUSY` reader - Bus busy"] pub type BusyR = crate :: BitReader ;
#[doc = "Field `TRA` reader - Transmitter/receiver"] pub type TraR = crate :: BitReader ;
#[doc = "Field `GENCALL` reader - General call address (Slave mode)"] pub type GencallR = crate :: BitReader ;
#[doc = "Field `SMBDEFAULT` reader - SMBus device default address (Slave mode)"] pub type SmbdefaultR = crate :: BitReader ;
#[doc = "Field `SMBHOST` reader - SMBus host header (Slave mode)"] pub type SmbhostR = crate :: BitReader ;
#[doc = "Field `DUALF` reader - Dual flag (Slave mode)"] pub type DualfR = crate :: BitReader ;
#[doc = "Field `PEC` reader - acket error checking register"] pub type PecR = crate :: FieldReader ; impl R {
#[doc = "Bit 0 - Master/slave"]
#[inline (always)] pub fn msl (& self) -> MslR { MslR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Bus busy"]
#[inline (always)] pub fn busy (& self) -> BusyR { BusyR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Transmitter/receiver"]
#[inline (always)] pub fn tra (& self) -> TraR { TraR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 4 - General call address (Slave mode)"]
#[inline (always)] pub fn gencall (& self) -> GencallR { GencallR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - SMBus device default address (Slave mode)"]
#[inline (always)] pub fn smbdefault (& self) -> SmbdefaultR { SmbdefaultR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - SMBus host header (Slave mode)"]
#[inline (always)] pub fn smbhost (& self) -> SmbhostR { SmbhostR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Dual flag (Slave mode)"]
#[inline (always)] pub fn dualf (& self) -> DualfR { DualfR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:15 - acket error checking register"]
#[inline (always)] pub fn pec (& self) -> PecR { PecR :: new (((self . bits >> 8) & 0xff) as u8) } }
#[doc = "Status register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`sr2::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Sr2Spec ; impl crate :: RegisterSpec for Sr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr2::R`](R) reader structure"] impl crate :: Readable for Sr2Spec { }
#[doc = "`reset()` method sets SR2 to value 0"] impl crate :: Resettable for Sr2Spec { } }
#[doc = "CCR (rw) register accessor: Clock control register\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ccr`] module"]
#[doc (alias = "CCR")] pub type Ccr = crate :: Reg < ccr :: CcrSpec > ;
#[doc = "Clock control register"] pub mod ccr {
#[doc = "Register `CCR` reader"] pub type R = crate :: R < CcrSpec > ;
#[doc = "Register `CCR` writer"] pub type W = crate :: W < CcrSpec > ;
#[doc = "Field `CCR` reader - Clock control register in Fast/Standard mode (Master mode)"] pub type CcrR = crate :: FieldReader < u16 > ;
#[doc = "Field `CCR` writer - Clock control register in Fast/Standard mode (Master mode)"] pub type CcrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ;
#[doc = "Field `DUTY` reader - Fast mode duty cycle"] pub type DutyR = crate :: BitReader ;
#[doc = "Field `DUTY` writer - Fast mode duty cycle"] pub type DutyW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `F_S` reader - I2C master mode selection"] pub type FSR = crate :: BitReader ;
#[doc = "Field `F_S` writer - I2C master mode selection"] pub type FSW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:11 - Clock control register in Fast/Standard mode (Master mode)"]
#[inline (always)] pub fn ccr (& self) -> CcrR { CcrR :: new ((self . bits & 0x0fff) as u16) }
#[doc = "Bit 14 - Fast mode duty cycle"]
#[inline (always)] pub fn duty (& self) -> DutyR { DutyR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - I2C master mode selection"]
#[inline (always)] pub fn f_s (& self) -> FSR { FSR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:11 - Clock control register in Fast/Standard mode (Master mode)"]
#[inline (always)] pub fn ccr (& mut self) -> CcrW < '_ , CcrSpec > { CcrW :: new (self , 0) }
#[doc = "Bit 14 - Fast mode duty cycle"]
#[inline (always)] pub fn duty (& mut self) -> DutyW < '_ , CcrSpec > { DutyW :: new (self , 14) }
#[doc = "Bit 15 - I2C master mode selection"]
#[inline (always)] pub fn f_s (& mut self) -> FSW < '_ , CcrSpec > { FSW :: new (self , 15) } }
#[doc = "Clock control register\n\nYou can [`read`](crate::Reg::read) this register and get [`ccr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ccr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CcrSpec ; impl crate :: RegisterSpec for CcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ccr::R`](R) reader structure"] impl crate :: Readable for CcrSpec { }
#[doc = "`write(|w| ..)` method takes [`ccr::W`](W) writer structure"] impl crate :: Writable for CcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CCR to value 0"] impl crate :: Resettable for CcrSpec { } }
#[doc = "TRISE (rw) register accessor: TRISE register\n\nYou can [`read`](crate::Reg::read) this register and get [`trise::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`trise::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@trise`] module"]
#[doc (alias = "TRISE")] pub type Trise = crate :: Reg < trise :: TriseSpec > ;
#[doc = "TRISE register"] pub mod trise {
#[doc = "Register `TRISE` reader"] pub type R = crate :: R < TriseSpec > ;
#[doc = "Register `TRISE` writer"] pub type W = crate :: W < TriseSpec > ;
#[doc = "Field `TRISE` reader - Maximum rise time in Fast/Standard mode (Master mode)"] pub type TriseR = crate :: FieldReader ;
#[doc = "Field `TRISE` writer - Maximum rise time in Fast/Standard mode (Master mode)"] pub type TriseW < 'a , REG > = crate :: FieldWriter < 'a , REG , 6 > ; impl R {
#[doc = "Bits 0:5 - Maximum rise time in Fast/Standard mode (Master mode)"]
#[inline (always)] pub fn trise (& self) -> TriseR { TriseR :: new ((self . bits & 0x3f) as u8) } } impl W {
#[doc = "Bits 0:5 - Maximum rise time in Fast/Standard mode (Master mode)"]
#[inline (always)] pub fn trise (& mut self) -> TriseW < '_ , TriseSpec > { TriseW :: new (self , 0) } }
#[doc = "TRISE register\n\nYou can [`read`](crate::Reg::read) this register and get [`trise::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`trise::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct TriseSpec ; impl crate :: RegisterSpec for TriseSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`trise::R`](R) reader structure"] impl crate :: Readable for TriseSpec { }
#[doc = "`write(|w| ..)` method takes [`trise::W`](W) writer structure"] impl crate :: Writable for TriseSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets TRISE to value 0x02"] impl crate :: Resettable for TriseSpec { const RESET_VALUE : u32 = 0x02 ; } } }
#[doc = "Inter integrated circuit"] pub type I2c2 = crate :: Periph < i2c1 :: RegisterBlock , 0x4000_5800 > ; impl core :: fmt :: Debug for I2c2 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("I2c2") . finish () } }
#[doc = "Inter integrated circuit"] pub use self :: i2c1 as i2c2 ;
#[doc = "Serial peripheral interface"] pub type Spi1 = crate :: Periph < spi1 :: RegisterBlock , 0x4001_3000 > ; impl core :: fmt :: Debug for Spi1 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Spi1") . finish () } }
#[doc = "Serial peripheral interface"] pub mod spi1 {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { cr1 : Cr1 , cr2 : Cr2 , sr : Sr , dr : Dr , crcpr : Crcpr , rxcrcr : Rxcrcr , txcrcr : Txcrcr , i2scfgr : I2scfgr , i2spr : I2spr , } impl RegisterBlock {
#[doc = "0x00 - control register 1"]
#[inline (always)] pub const fn cr1 (& self) -> & Cr1 { & self . cr1 }
#[doc = "0x04 - control register 2"]
#[inline (always)] pub const fn cr2 (& self) -> & Cr2 { & self . cr2 }
#[doc = "0x08 - status register"]
#[inline (always)] pub const fn sr (& self) -> & Sr { & self . sr }
#[doc = "0x0c - data register"]
#[inline (always)] pub const fn dr (& self) -> & Dr { & self . dr }
#[doc = "0x10 - CRC polynomial register"]
#[inline (always)] pub const fn crcpr (& self) -> & Crcpr { & self . crcpr }
#[doc = "0x14 - RX CRC register"]
#[inline (always)] pub const fn rxcrcr (& self) -> & Rxcrcr { & self . rxcrcr }
#[doc = "0x18 - TX CRC register"]
#[inline (always)] pub const fn txcrcr (& self) -> & Txcrcr { & self . txcrcr }
#[doc = "0x1c - I2S configuration register"]
#[inline (always)] pub const fn i2scfgr (& self) -> & I2scfgr { & self . i2scfgr }
#[doc = "0x20 - I2S prescaler register"]
#[inline (always)] pub const fn i2spr (& self) -> & I2spr { & self . i2spr } }
#[doc = "CR1 (rw) register accessor: control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr1`] module"]
#[doc (alias = "CR1")] pub type Cr1 = crate :: Reg < cr1 :: Cr1Spec > ;
#[doc = "control register 1"] pub mod cr1 {
#[doc = "Register `CR1` reader"] pub type R = crate :: R < Cr1Spec > ;
#[doc = "Register `CR1` writer"] pub type W = crate :: W < Cr1Spec > ;
#[doc = "Field `CPHA` reader - Clock phase"] pub type CphaR = crate :: BitReader ;
#[doc = "Field `CPHA` writer - Clock phase"] pub type CphaW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CPOL` reader - Clock polarity"] pub type CpolR = crate :: BitReader ;
#[doc = "Field `CPOL` writer - Clock polarity"] pub type CpolW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MSTR` reader - Master selection"] pub type MstrR = crate :: BitReader ;
#[doc = "Field `MSTR` writer - Master selection"] pub type MstrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BR` reader - Baud rate control"] pub type BrR = crate :: FieldReader ;
#[doc = "Field `BR` writer - Baud rate control"] pub type BrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SPE` reader - SPI enable"] pub type SpeR = crate :: BitReader ;
#[doc = "Field `SPE` writer - SPI enable"] pub type SpeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LSBFIRST` reader - Frame format"] pub type LsbfirstR = crate :: BitReader ;
#[doc = "Field `LSBFIRST` writer - Frame format"] pub type LsbfirstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SSI` reader - Internal slave select"] pub type SsiR = crate :: BitReader ;
#[doc = "Field `SSI` writer - Internal slave select"] pub type SsiW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SSM` reader - Software slave management"] pub type SsmR = crate :: BitReader ;
#[doc = "Field `SSM` writer - Software slave management"] pub type SsmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXONLY` reader - Receive only"] pub type RxonlyR = crate :: BitReader ;
#[doc = "Field `RXONLY` writer - Receive only"] pub type RxonlyW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DFF` reader - Data frame format"] pub type DffR = crate :: BitReader ;
#[doc = "Field `DFF` writer - Data frame format"] pub type DffW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CRCNEXT` reader - CRC transfer next"] pub type CrcnextR = crate :: BitReader ;
#[doc = "Field `CRCNEXT` writer - CRC transfer next"] pub type CrcnextW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CRCEN` reader - Hardware CRC calculation enable"] pub type CrcenR = crate :: BitReader ;
#[doc = "Field `CRCEN` writer - Hardware CRC calculation enable"] pub type CrcenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BIDIOE` reader - Output enable in bidirectional mode"] pub type BidioeR = crate :: BitReader ;
#[doc = "Field `BIDIOE` writer - Output enable in bidirectional mode"] pub type BidioeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BIDIMODE` reader - Bidirectional data mode enable"] pub type BidimodeR = crate :: BitReader ;
#[doc = "Field `BIDIMODE` writer - Bidirectional data mode enable"] pub type BidimodeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Clock phase"]
#[inline (always)] pub fn cpha (& self) -> CphaR { CphaR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Clock polarity"]
#[inline (always)] pub fn cpol (& self) -> CpolR { CpolR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Master selection"]
#[inline (always)] pub fn mstr (& self) -> MstrR { MstrR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bits 3:5 - Baud rate control"]
#[inline (always)] pub fn br (& self) -> BrR { BrR :: new (((self . bits >> 3) & 7) as u8) }
#[doc = "Bit 6 - SPI enable"]
#[inline (always)] pub fn spe (& self) -> SpeR { SpeR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Frame format"]
#[inline (always)] pub fn lsbfirst (& self) -> LsbfirstR { LsbfirstR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Internal slave select"]
#[inline (always)] pub fn ssi (& self) -> SsiR { SsiR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Software slave management"]
#[inline (always)] pub fn ssm (& self) -> SsmR { SsmR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Receive only"]
#[inline (always)] pub fn rxonly (& self) -> RxonlyR { RxonlyR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Data frame format"]
#[inline (always)] pub fn dff (& self) -> DffR { DffR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - CRC transfer next"]
#[inline (always)] pub fn crcnext (& self) -> CrcnextR { CrcnextR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Hardware CRC calculation enable"]
#[inline (always)] pub fn crcen (& self) -> CrcenR { CrcenR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Output enable in bidirectional mode"]
#[inline (always)] pub fn bidioe (& self) -> BidioeR { BidioeR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Bidirectional data mode enable"]
#[inline (always)] pub fn bidimode (& self) -> BidimodeR { BidimodeR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Clock phase"]
#[inline (always)] pub fn cpha (& mut self) -> CphaW < '_ , Cr1Spec > { CphaW :: new (self , 0) }
#[doc = "Bit 1 - Clock polarity"]
#[inline (always)] pub fn cpol (& mut self) -> CpolW < '_ , Cr1Spec > { CpolW :: new (self , 1) }
#[doc = "Bit 2 - Master selection"]
#[inline (always)] pub fn mstr (& mut self) -> MstrW < '_ , Cr1Spec > { MstrW :: new (self , 2) }
#[doc = "Bits 3:5 - Baud rate control"]
#[inline (always)] pub fn br (& mut self) -> BrW < '_ , Cr1Spec > { BrW :: new (self , 3) }
#[doc = "Bit 6 - SPI enable"]
#[inline (always)] pub fn spe (& mut self) -> SpeW < '_ , Cr1Spec > { SpeW :: new (self , 6) }
#[doc = "Bit 7 - Frame format"]
#[inline (always)] pub fn lsbfirst (& mut self) -> LsbfirstW < '_ , Cr1Spec > { LsbfirstW :: new (self , 7) }
#[doc = "Bit 8 - Internal slave select"]
#[inline (always)] pub fn ssi (& mut self) -> SsiW < '_ , Cr1Spec > { SsiW :: new (self , 8) }
#[doc = "Bit 9 - Software slave management"]
#[inline (always)] pub fn ssm (& mut self) -> SsmW < '_ , Cr1Spec > { SsmW :: new (self , 9) }
#[doc = "Bit 10 - Receive only"]
#[inline (always)] pub fn rxonly (& mut self) -> RxonlyW < '_ , Cr1Spec > { RxonlyW :: new (self , 10) }
#[doc = "Bit 11 - Data frame format"]
#[inline (always)] pub fn dff (& mut self) -> DffW < '_ , Cr1Spec > { DffW :: new (self , 11) }
#[doc = "Bit 12 - CRC transfer next"]
#[inline (always)] pub fn crcnext (& mut self) -> CrcnextW < '_ , Cr1Spec > { CrcnextW :: new (self , 12) }
#[doc = "Bit 13 - Hardware CRC calculation enable"]
#[inline (always)] pub fn crcen (& mut self) -> CrcenW < '_ , Cr1Spec > { CrcenW :: new (self , 13) }
#[doc = "Bit 14 - Output enable in bidirectional mode"]
#[inline (always)] pub fn bidioe (& mut self) -> BidioeW < '_ , Cr1Spec > { BidioeW :: new (self , 14) }
#[doc = "Bit 15 - Bidirectional data mode enable"]
#[inline (always)] pub fn bidimode (& mut self) -> BidimodeW < '_ , Cr1Spec > { BidimodeW :: new (self , 15) } }
#[doc = "control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr1Spec ; impl crate :: RegisterSpec for Cr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr1::R`](R) reader structure"] impl crate :: Readable for Cr1Spec { }
#[doc = "`write(|w| ..)` method takes [`cr1::W`](W) writer structure"] impl crate :: Writable for Cr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR1 to value 0"] impl crate :: Resettable for Cr1Spec { } }
#[doc = "CR2 (rw) register accessor: control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr2`] module"]
#[doc (alias = "CR2")] pub type Cr2 = crate :: Reg < cr2 :: Cr2Spec > ;
#[doc = "control register 2"] pub mod cr2 {
#[doc = "Register `CR2` reader"] pub type R = crate :: R < Cr2Spec > ;
#[doc = "Register `CR2` writer"] pub type W = crate :: W < Cr2Spec > ;
#[doc = "Field `RXDMAEN` reader - Rx buffer DMA enable"] pub type RxdmaenR = crate :: BitReader ;
#[doc = "Field `RXDMAEN` writer - Rx buffer DMA enable"] pub type RxdmaenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXDMAEN` reader - Tx buffer DMA enable"] pub type TxdmaenR = crate :: BitReader ;
#[doc = "Field `TXDMAEN` writer - Tx buffer DMA enable"] pub type TxdmaenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SSOE` reader - SS output enable"] pub type SsoeR = crate :: BitReader ;
#[doc = "Field `SSOE` writer - SS output enable"] pub type SsoeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ERRIE` reader - Error interrupt enable"] pub type ErrieR = crate :: BitReader ;
#[doc = "Field `ERRIE` writer - Error interrupt enable"] pub type ErrieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXNEIE` reader - RX buffer not empty interrupt enable"] pub type RxneieR = crate :: BitReader ;
#[doc = "Field `RXNEIE` writer - RX buffer not empty interrupt enable"] pub type RxneieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXEIE` reader - Tx buffer empty interrupt enable"] pub type TxeieR = crate :: BitReader ;
#[doc = "Field `TXEIE` writer - Tx buffer empty interrupt enable"] pub type TxeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Rx buffer DMA enable"]
#[inline (always)] pub fn rxdmaen (& self) -> RxdmaenR { RxdmaenR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Tx buffer DMA enable"]
#[inline (always)] pub fn txdmaen (& self) -> TxdmaenR { TxdmaenR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - SS output enable"]
#[inline (always)] pub fn ssoe (& self) -> SsoeR { SsoeR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 5 - Error interrupt enable"]
#[inline (always)] pub fn errie (& self) -> ErrieR { ErrieR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - RX buffer not empty interrupt enable"]
#[inline (always)] pub fn rxneie (& self) -> RxneieR { RxneieR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Tx buffer empty interrupt enable"]
#[inline (always)] pub fn txeie (& self) -> TxeieR { TxeieR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Rx buffer DMA enable"]
#[inline (always)] pub fn rxdmaen (& mut self) -> RxdmaenW < '_ , Cr2Spec > { RxdmaenW :: new (self , 0) }
#[doc = "Bit 1 - Tx buffer DMA enable"]
#[inline (always)] pub fn txdmaen (& mut self) -> TxdmaenW < '_ , Cr2Spec > { TxdmaenW :: new (self , 1) }
#[doc = "Bit 2 - SS output enable"]
#[inline (always)] pub fn ssoe (& mut self) -> SsoeW < '_ , Cr2Spec > { SsoeW :: new (self , 2) }
#[doc = "Bit 5 - Error interrupt enable"]
#[inline (always)] pub fn errie (& mut self) -> ErrieW < '_ , Cr2Spec > { ErrieW :: new (self , 5) }
#[doc = "Bit 6 - RX buffer not empty interrupt enable"]
#[inline (always)] pub fn rxneie (& mut self) -> RxneieW < '_ , Cr2Spec > { RxneieW :: new (self , 6) }
#[doc = "Bit 7 - Tx buffer empty interrupt enable"]
#[inline (always)] pub fn txeie (& mut self) -> TxeieW < '_ , Cr2Spec > { TxeieW :: new (self , 7) } }
#[doc = "control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr2Spec ; impl crate :: RegisterSpec for Cr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr2::R`](R) reader structure"] impl crate :: Readable for Cr2Spec { }
#[doc = "`write(|w| ..)` method takes [`cr2::W`](W) writer structure"] impl crate :: Writable for Cr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR2 to value 0"] impl crate :: Resettable for Cr2Spec { } }
#[doc = "SR (rw) register accessor: status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`] module"]
#[doc (alias = "SR")] pub type Sr = crate :: Reg < sr :: SrSpec > ;
#[doc = "status register"] pub mod sr {
#[doc = "Register `SR` reader"] pub type R = crate :: R < SrSpec > ;
#[doc = "Register `SR` writer"] pub type W = crate :: W < SrSpec > ;
#[doc = "Field `RXNE` reader - Receive buffer not empty"] pub type RxneR = crate :: BitReader ;
#[doc = "Field `TXE` reader - Transmit buffer empty"] pub type TxeR = crate :: BitReader ;
#[doc = "Field `CHSIDE` reader - Channel side"] pub type ChsideR = crate :: BitReader ;
#[doc = "Field `UDR` reader - Underrun flag"] pub type UdrR = crate :: BitReader ;
#[doc = "Field `CRCERR` reader - CRC error flag"] pub type CrcerrR = crate :: BitReader ;
#[doc = "Field `CRCERR` writer - CRC error flag"] pub type CrcerrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MODF` reader - Mode fault"] pub type ModfR = crate :: BitReader ;
#[doc = "Field `OVR` reader - Overrun flag"] pub type OvrR = crate :: BitReader ;
#[doc = "Field `BSY` reader - Busy flag"] pub type BsyR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - Receive buffer not empty"]
#[inline (always)] pub fn rxne (& self) -> RxneR { RxneR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Transmit buffer empty"]
#[inline (always)] pub fn txe (& self) -> TxeR { TxeR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Channel side"]
#[inline (always)] pub fn chside (& self) -> ChsideR { ChsideR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Underrun flag"]
#[inline (always)] pub fn udr (& self) -> UdrR { UdrR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - CRC error flag"]
#[inline (always)] pub fn crcerr (& self) -> CrcerrR { CrcerrR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Mode fault"]
#[inline (always)] pub fn modf (& self) -> ModfR { ModfR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Overrun flag"]
#[inline (always)] pub fn ovr (& self) -> OvrR { OvrR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Busy flag"]
#[inline (always)] pub fn bsy (& self) -> BsyR { BsyR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bit 4 - CRC error flag"]
#[inline (always)] pub fn crcerr (& mut self) -> CrcerrW < '_ , SrSpec > { CrcerrW :: new (self , 4) } }
#[doc = "status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec ; impl crate :: RegisterSpec for SrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate :: Readable for SrSpec { }
#[doc = "`write(|w| ..)` method takes [`sr::W`](W) writer structure"] impl crate :: Writable for SrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR to value 0x02"] impl crate :: Resettable for SrSpec { const RESET_VALUE : u32 = 0x02 ; } }
#[doc = "DR (rw) register accessor: data register\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr`] module"]
#[doc (alias = "DR")] pub type Dr = crate :: Reg < dr :: DrSpec > ;
#[doc = "data register"] pub mod dr {
#[doc = "Register `DR` reader"] pub type R = crate :: R < DrSpec > ;
#[doc = "Register `DR` writer"] pub type W = crate :: W < DrSpec > ;
#[doc = "Field `DR` reader - Data register"] pub type DrR = crate :: FieldReader < u16 > ;
#[doc = "Field `DR` writer - Data register"] pub type DrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Data register"]
#[inline (always)] pub fn dr (& self) -> DrR { DrR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Data register"]
#[inline (always)] pub fn dr (& mut self) -> DrW < '_ , DrSpec > { DrW :: new (self , 0) } }
#[doc = "data register\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DrSpec ; impl crate :: RegisterSpec for DrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr::R`](R) reader structure"] impl crate :: Readable for DrSpec { }
#[doc = "`write(|w| ..)` method takes [`dr::W`](W) writer structure"] impl crate :: Writable for DrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR to value 0"] impl crate :: Resettable for DrSpec { } }
#[doc = "CRCPR (rw) register accessor: CRC polynomial register\n\nYou can [`read`](crate::Reg::read) this register and get [`crcpr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`crcpr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@crcpr`] module"]
#[doc (alias = "CRCPR")] pub type Crcpr = crate :: Reg < crcpr :: CrcprSpec > ;
#[doc = "CRC polynomial register"] pub mod crcpr {
#[doc = "Register `CRCPR` reader"] pub type R = crate :: R < CrcprSpec > ;
#[doc = "Register `CRCPR` writer"] pub type W = crate :: W < CrcprSpec > ;
#[doc = "Field `CRCPOLY` reader - CRC polynomial register"] pub type CrcpolyR = crate :: FieldReader < u16 > ;
#[doc = "Field `CRCPOLY` writer - CRC polynomial register"] pub type CrcpolyW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - CRC polynomial register"]
#[inline (always)] pub fn crcpoly (& self) -> CrcpolyR { CrcpolyR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - CRC polynomial register"]
#[inline (always)] pub fn crcpoly (& mut self) -> CrcpolyW < '_ , CrcprSpec > { CrcpolyW :: new (self , 0) } }
#[doc = "CRC polynomial register\n\nYou can [`read`](crate::Reg::read) this register and get [`crcpr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`crcpr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CrcprSpec ; impl crate :: RegisterSpec for CrcprSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`crcpr::R`](R) reader structure"] impl crate :: Readable for CrcprSpec { }
#[doc = "`write(|w| ..)` method takes [`crcpr::W`](W) writer structure"] impl crate :: Writable for CrcprSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CRCPR to value 0x07"] impl crate :: Resettable for CrcprSpec { const RESET_VALUE : u32 = 0x07 ; } }
#[doc = "RXCRCR (r) register accessor: RX CRC register\n\nYou can [`read`](crate::Reg::read) this register and get [`rxcrcr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rxcrcr`] module"]
#[doc (alias = "RXCRCR")] pub type Rxcrcr = crate :: Reg < rxcrcr :: RxcrcrSpec > ;
#[doc = "RX CRC register"] pub mod rxcrcr {
#[doc = "Register `RXCRCR` reader"] pub type R = crate :: R < RxcrcrSpec > ;
#[doc = "Field `RxCRC` reader - Rx CRC register"] pub type RxCrcR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - Rx CRC register"]
#[inline (always)] pub fn rx_crc (& self) -> RxCrcR { RxCrcR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "RX CRC register\n\nYou can [`read`](crate::Reg::read) this register and get [`rxcrcr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct RxcrcrSpec ; impl crate :: RegisterSpec for RxcrcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`rxcrcr::R`](R) reader structure"] impl crate :: Readable for RxcrcrSpec { }
#[doc = "`reset()` method sets RXCRCR to value 0"] impl crate :: Resettable for RxcrcrSpec { } }
#[doc = "TXCRCR (r) register accessor: TX CRC register\n\nYou can [`read`](crate::Reg::read) this register and get [`txcrcr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@txcrcr`] module"]
#[doc (alias = "TXCRCR")] pub type Txcrcr = crate :: Reg < txcrcr :: TxcrcrSpec > ;
#[doc = "TX CRC register"] pub mod txcrcr {
#[doc = "Register `TXCRCR` reader"] pub type R = crate :: R < TxcrcrSpec > ;
#[doc = "Field `TxCRC` reader - Tx CRC register"] pub type TxCrcR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - Tx CRC register"]
#[inline (always)] pub fn tx_crc (& self) -> TxCrcR { TxCrcR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "TX CRC register\n\nYou can [`read`](crate::Reg::read) this register and get [`txcrcr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct TxcrcrSpec ; impl crate :: RegisterSpec for TxcrcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`txcrcr::R`](R) reader structure"] impl crate :: Readable for TxcrcrSpec { }
#[doc = "`reset()` method sets TXCRCR to value 0"] impl crate :: Resettable for TxcrcrSpec { } }
#[doc = "I2SCFGR (rw) register accessor: I2S configuration register\n\nYou can [`read`](crate::Reg::read) this register and get [`i2scfgr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`i2scfgr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@i2scfgr`] module"]
#[doc (alias = "I2SCFGR")] pub type I2scfgr = crate :: Reg < i2scfgr :: I2scfgrSpec > ;
#[doc = "I2S configuration register"] pub mod i2scfgr {
#[doc = "Register `I2SCFGR` reader"] pub type R = crate :: R < I2scfgrSpec > ;
#[doc = "Register `I2SCFGR` writer"] pub type W = crate :: W < I2scfgrSpec > ;
#[doc = "Field `CHLEN` reader - Channel length (number of bits per audio channel)"] pub type ChlenR = crate :: BitReader ;
#[doc = "Field `CHLEN` writer - Channel length (number of bits per audio channel)"] pub type ChlenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DATLEN` reader - Data length to be transferred"] pub type DatlenR = crate :: FieldReader ;
#[doc = "Field `DATLEN` writer - Data length to be transferred"] pub type DatlenW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `CKPOL` reader - Steady state clock polarity"] pub type CkpolR = crate :: BitReader ;
#[doc = "Field `CKPOL` writer - Steady state clock polarity"] pub type CkpolW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `I2SSTD` reader - I2S standard selection"] pub type I2sstdR = crate :: FieldReader ;
#[doc = "Field `I2SSTD` writer - I2S standard selection"] pub type I2sstdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `PCMSYNC` reader - PCM frame synchronization"] pub type PcmsyncR = crate :: BitReader ;
#[doc = "Field `PCMSYNC` writer - PCM frame synchronization"] pub type PcmsyncW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `I2SCFG` reader - I2S configuration mode"] pub type I2scfgR = crate :: FieldReader ;
#[doc = "Field `I2SCFG` writer - I2S configuration mode"] pub type I2scfgW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `I2SE` reader - I2S Enable"] pub type I2seR = crate :: BitReader ;
#[doc = "Field `I2SE` writer - I2S Enable"] pub type I2seW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `I2SMOD` reader - I2S mode selection"] pub type I2smodR = crate :: BitReader ;
#[doc = "Field `I2SMOD` writer - I2S mode selection"] pub type I2smodW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Channel length (number of bits per audio channel)"]
#[inline (always)] pub fn chlen (& self) -> ChlenR { ChlenR :: new ((self . bits & 1) != 0) }
#[doc = "Bits 1:2 - Data length to be transferred"]
#[inline (always)] pub fn datlen (& self) -> DatlenR { DatlenR :: new (((self . bits >> 1) & 3) as u8) }
#[doc = "Bit 3 - Steady state clock polarity"]
#[inline (always)] pub fn ckpol (& self) -> CkpolR { CkpolR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:5 - I2S standard selection"]
#[inline (always)] pub fn i2sstd (& self) -> I2sstdR { I2sstdR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 7 - PCM frame synchronization"]
#[inline (always)] pub fn pcmsync (& self) -> PcmsyncR { PcmsyncR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 8:9 - I2S configuration mode"]
#[inline (always)] pub fn i2scfg (& self) -> I2scfgR { I2scfgR :: new (((self . bits >> 8) & 3) as u8) }
#[doc = "Bit 10 - I2S Enable"]
#[inline (always)] pub fn i2se (& self) -> I2seR { I2seR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - I2S mode selection"]
#[inline (always)] pub fn i2smod (& self) -> I2smodR { I2smodR :: new (((self . bits >> 11) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Channel length (number of bits per audio channel)"]
#[inline (always)] pub fn chlen (& mut self) -> ChlenW < '_ , I2scfgrSpec > { ChlenW :: new (self , 0) }
#[doc = "Bits 1:2 - Data length to be transferred"]
#[inline (always)] pub fn datlen (& mut self) -> DatlenW < '_ , I2scfgrSpec > { DatlenW :: new (self , 1) }
#[doc = "Bit 3 - Steady state clock polarity"]
#[inline (always)] pub fn ckpol (& mut self) -> CkpolW < '_ , I2scfgrSpec > { CkpolW :: new (self , 3) }
#[doc = "Bits 4:5 - I2S standard selection"]
#[inline (always)] pub fn i2sstd (& mut self) -> I2sstdW < '_ , I2scfgrSpec > { I2sstdW :: new (self , 4) }
#[doc = "Bit 7 - PCM frame synchronization"]
#[inline (always)] pub fn pcmsync (& mut self) -> PcmsyncW < '_ , I2scfgrSpec > { PcmsyncW :: new (self , 7) }
#[doc = "Bits 8:9 - I2S configuration mode"]
#[inline (always)] pub fn i2scfg (& mut self) -> I2scfgW < '_ , I2scfgrSpec > { I2scfgW :: new (self , 8) }
#[doc = "Bit 10 - I2S Enable"]
#[inline (always)] pub fn i2se (& mut self) -> I2seW < '_ , I2scfgrSpec > { I2seW :: new (self , 10) }
#[doc = "Bit 11 - I2S mode selection"]
#[inline (always)] pub fn i2smod (& mut self) -> I2smodW < '_ , I2scfgrSpec > { I2smodW :: new (self , 11) } }
#[doc = "I2S configuration register\n\nYou can [`read`](crate::Reg::read) this register and get [`i2scfgr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`i2scfgr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct I2scfgrSpec ; impl crate :: RegisterSpec for I2scfgrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`i2scfgr::R`](R) reader structure"] impl crate :: Readable for I2scfgrSpec { }
#[doc = "`write(|w| ..)` method takes [`i2scfgr::W`](W) writer structure"] impl crate :: Writable for I2scfgrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets I2SCFGR to value 0"] impl crate :: Resettable for I2scfgrSpec { } }
#[doc = "I2SPR (rw) register accessor: I2S prescaler register\n\nYou can [`read`](crate::Reg::read) this register and get [`i2spr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`i2spr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@i2spr`] module"]
#[doc (alias = "I2SPR")] pub type I2spr = crate :: Reg < i2spr :: I2sprSpec > ;
#[doc = "I2S prescaler register"] pub mod i2spr {
#[doc = "Register `I2SPR` reader"] pub type R = crate :: R < I2sprSpec > ;
#[doc = "Register `I2SPR` writer"] pub type W = crate :: W < I2sprSpec > ;
#[doc = "Field `I2SDIV` reader - I2S Linear prescaler"] pub type I2sdivR = crate :: FieldReader ;
#[doc = "Field `I2SDIV` writer - I2S Linear prescaler"] pub type I2sdivW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `ODD` reader - Odd factor for the prescaler"] pub type OddR = crate :: BitReader ;
#[doc = "Field `ODD` writer - Odd factor for the prescaler"] pub type OddW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MCKOE` reader - Master clock output enable"] pub type MckoeR = crate :: BitReader ;
#[doc = "Field `MCKOE` writer - Master clock output enable"] pub type MckoeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:7 - I2S Linear prescaler"]
#[inline (always)] pub fn i2sdiv (& self) -> I2sdivR { I2sdivR :: new ((self . bits & 0xff) as u8) }
#[doc = "Bit 8 - Odd factor for the prescaler"]
#[inline (always)] pub fn odd (& self) -> OddR { OddR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Master clock output enable"]
#[inline (always)] pub fn mckoe (& self) -> MckoeR { MckoeR :: new (((self . bits >> 9) & 1) != 0) } } impl W {
#[doc = "Bits 0:7 - I2S Linear prescaler"]
#[inline (always)] pub fn i2sdiv (& mut self) -> I2sdivW < '_ , I2sprSpec > { I2sdivW :: new (self , 0) }
#[doc = "Bit 8 - Odd factor for the prescaler"]
#[inline (always)] pub fn odd (& mut self) -> OddW < '_ , I2sprSpec > { OddW :: new (self , 8) }
#[doc = "Bit 9 - Master clock output enable"]
#[inline (always)] pub fn mckoe (& mut self) -> MckoeW < '_ , I2sprSpec > { MckoeW :: new (self , 9) } }
#[doc = "I2S prescaler register\n\nYou can [`read`](crate::Reg::read) this register and get [`i2spr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`i2spr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct I2sprSpec ; impl crate :: RegisterSpec for I2sprSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`i2spr::R`](R) reader structure"] impl crate :: Readable for I2sprSpec { }
#[doc = "`write(|w| ..)` method takes [`i2spr::W`](W) writer structure"] impl crate :: Writable for I2sprSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets I2SPR to value 0x0a"] impl crate :: Resettable for I2sprSpec { const RESET_VALUE : u32 = 0x0a ; } } }
#[doc = "Serial peripheral interface"] pub type Spi2 = crate :: Periph < spi1 :: RegisterBlock , 0x4000_3800 > ; impl core :: fmt :: Debug for Spi2 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Spi2") . finish () } }
#[doc = "Serial peripheral interface"] pub use self :: spi1 as spi2 ;
#[doc = "Serial peripheral interface"] pub type Spi3 = crate :: Periph < spi1 :: RegisterBlock , 0x4000_3c00 > ; impl core :: fmt :: Debug for Spi3 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Spi3") . finish () } }
#[doc = "Serial peripheral interface"] pub use self :: spi1 as spi3 ;
#[doc = "Universal synchronous asynchronous receiver transmitter"] pub type Usart1 = crate :: Periph < usart1 :: RegisterBlock , 0x4001_3800 > ; impl core :: fmt :: Debug for Usart1 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Usart1") . finish () } }
#[doc = "Universal synchronous asynchronous receiver transmitter"] pub mod usart1 {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { sr : Sr , dr : Dr , brr : Brr , cr1 : Cr1 , cr2 : Cr2 , cr3 : Cr3 , gtpr : Gtpr , } impl RegisterBlock {
#[doc = "0x00 - Status register"]
#[inline (always)] pub const fn sr (& self) -> & Sr { & self . sr }
#[doc = "0x04 - Data register"]
#[inline (always)] pub const fn dr (& self) -> & Dr { & self . dr }
#[doc = "0x08 - Baud rate register"]
#[inline (always)] pub const fn brr (& self) -> & Brr { & self . brr }
#[doc = "0x0c - Control register 1"]
#[inline (always)] pub const fn cr1 (& self) -> & Cr1 { & self . cr1 }
#[doc = "0x10 - Control register 2"]
#[inline (always)] pub const fn cr2 (& self) -> & Cr2 { & self . cr2 }
#[doc = "0x14 - Control register 3"]
#[inline (always)] pub const fn cr3 (& self) -> & Cr3 { & self . cr3 }
#[doc = "0x18 - Guard time and prescaler register"]
#[inline (always)] pub const fn gtpr (& self) -> & Gtpr { & self . gtpr } }
#[doc = "SR (rw) register accessor: Status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`] module"]
#[doc (alias = "SR")] pub type Sr = crate :: Reg < sr :: SrSpec > ;
#[doc = "Status register"] pub mod sr {
#[doc = "Register `SR` reader"] pub type R = crate :: R < SrSpec > ;
#[doc = "Register `SR` writer"] pub type W = crate :: W < SrSpec > ;
#[doc = "Field `PE` reader - Parity error"] pub type PeR = crate :: BitReader ;
#[doc = "Field `FE` reader - Framing error"] pub type FeR = crate :: BitReader ;
#[doc = "Field `NE` reader - Noise error flag"] pub type NeR = crate :: BitReader ;
#[doc = "Field `ORE` reader - Overrun error"] pub type OreR = crate :: BitReader ;
#[doc = "Field `IDLE` reader - IDLE line detected"] pub type IdleR = crate :: BitReader ;
#[doc = "Field `RXNE` reader - Read data register not empty"] pub type RxneR = crate :: BitReader ;
#[doc = "Field `RXNE` writer - Read data register not empty"] pub type RxneW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TC` reader - Transmission complete"] pub type TcR = crate :: BitReader ;
#[doc = "Field `TC` writer - Transmission complete"] pub type TcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXE` reader - Transmit data register empty"] pub type TxeR = crate :: BitReader ;
#[doc = "Field `LBD` reader - LIN break detection flag"] pub type LbdR = crate :: BitReader ;
#[doc = "Field `LBD` writer - LIN break detection flag"] pub type LbdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTS` reader - CTS flag"] pub type CtsR = crate :: BitReader ;
#[doc = "Field `CTS` writer - CTS flag"] pub type CtsW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Parity error"]
#[inline (always)] pub fn pe (& self) -> PeR { PeR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Framing error"]
#[inline (always)] pub fn fe (& self) -> FeR { FeR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Noise error flag"]
#[inline (always)] pub fn ne (& self) -> NeR { NeR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Overrun error"]
#[inline (always)] pub fn ore (& self) -> OreR { OreR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - IDLE line detected"]
#[inline (always)] pub fn idle (& self) -> IdleR { IdleR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Read data register not empty"]
#[inline (always)] pub fn rxne (& self) -> RxneR { RxneR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Transmission complete"]
#[inline (always)] pub fn tc (& self) -> TcR { TcR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Transmit data register empty"]
#[inline (always)] pub fn txe (& self) -> TxeR { TxeR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - LIN break detection flag"]
#[inline (always)] pub fn lbd (& self) -> LbdR { LbdR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - CTS flag"]
#[inline (always)] pub fn cts (& self) -> CtsR { CtsR :: new (((self . bits >> 9) & 1) != 0) } } impl W {
#[doc = "Bit 5 - Read data register not empty"]
#[inline (always)] pub fn rxne (& mut self) -> RxneW < '_ , SrSpec > { RxneW :: new (self , 5) }
#[doc = "Bit 6 - Transmission complete"]
#[inline (always)] pub fn tc (& mut self) -> TcW < '_ , SrSpec > { TcW :: new (self , 6) }
#[doc = "Bit 8 - LIN break detection flag"]
#[inline (always)] pub fn lbd (& mut self) -> LbdW < '_ , SrSpec > { LbdW :: new (self , 8) }
#[doc = "Bit 9 - CTS flag"]
#[inline (always)] pub fn cts (& mut self) -> CtsW < '_ , SrSpec > { CtsW :: new (self , 9) } }
#[doc = "Status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec ; impl crate :: RegisterSpec for SrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate :: Readable for SrSpec { }
#[doc = "`write(|w| ..)` method takes [`sr::W`](W) writer structure"] impl crate :: Writable for SrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR to value 0xc0"] impl crate :: Resettable for SrSpec { const RESET_VALUE : u32 = 0xc0 ; } }
#[doc = "DR (rw) register accessor: Data register\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr`] module"]
#[doc (alias = "DR")] pub type Dr = crate :: Reg < dr :: DrSpec > ;
#[doc = "Data register"] pub mod dr {
#[doc = "Register `DR` reader"] pub type R = crate :: R < DrSpec > ;
#[doc = "Register `DR` writer"] pub type W = crate :: W < DrSpec > ;
#[doc = "Field `DR` reader - Data value"] pub type DrR = crate :: FieldReader < u16 > ;
#[doc = "Field `DR` writer - Data value"] pub type DrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 9 , u16 > ; impl R {
#[doc = "Bits 0:8 - Data value"]
#[inline (always)] pub fn dr (& self) -> DrR { DrR :: new ((self . bits & 0x01ff) as u16) } } impl W {
#[doc = "Bits 0:8 - Data value"]
#[inline (always)] pub fn dr (& mut self) -> DrW < '_ , DrSpec > { DrW :: new (self , 0) } }
#[doc = "Data register\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DrSpec ; impl crate :: RegisterSpec for DrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr::R`](R) reader structure"] impl crate :: Readable for DrSpec { }
#[doc = "`write(|w| ..)` method takes [`dr::W`](W) writer structure"] impl crate :: Writable for DrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR to value 0"] impl crate :: Resettable for DrSpec { } }
#[doc = "BRR (rw) register accessor: Baud rate register\n\nYou can [`read`](crate::Reg::read) this register and get [`brr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`brr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@brr`] module"]
#[doc (alias = "BRR")] pub type Brr = crate :: Reg < brr :: BrrSpec > ;
#[doc = "Baud rate register"] pub mod brr {
#[doc = "Register `BRR` reader"] pub type R = crate :: R < BrrSpec > ;
#[doc = "Register `BRR` writer"] pub type W = crate :: W < BrrSpec > ;
#[doc = "Field `DIV_Fraction` reader - fraction of USARTDIV"] pub type DivFractionR = crate :: FieldReader ;
#[doc = "Field `DIV_Fraction` writer - fraction of USARTDIV"] pub type DivFractionW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DIV_Mantissa` reader - mantissa of USARTDIV"] pub type DivMantissaR = crate :: FieldReader < u16 > ;
#[doc = "Field `DIV_Mantissa` writer - mantissa of USARTDIV"] pub type DivMantissaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:3 - fraction of USARTDIV"]
#[inline (always)] pub fn div_fraction (& self) -> DivFractionR { DivFractionR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:15 - mantissa of USARTDIV"]
#[inline (always)] pub fn div_mantissa (& self) -> DivMantissaR { DivMantissaR :: new (((self . bits >> 4) & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:3 - fraction of USARTDIV"]
#[inline (always)] pub fn div_fraction (& mut self) -> DivFractionW < '_ , BrrSpec > { DivFractionW :: new (self , 0) }
#[doc = "Bits 4:15 - mantissa of USARTDIV"]
#[inline (always)] pub fn div_mantissa (& mut self) -> DivMantissaW < '_ , BrrSpec > { DivMantissaW :: new (self , 4) } }
#[doc = "Baud rate register\n\nYou can [`read`](crate::Reg::read) this register and get [`brr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`brr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct BrrSpec ; impl crate :: RegisterSpec for BrrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`brr::R`](R) reader structure"] impl crate :: Readable for BrrSpec { }
#[doc = "`write(|w| ..)` method takes [`brr::W`](W) writer structure"] impl crate :: Writable for BrrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BRR to value 0"] impl crate :: Resettable for BrrSpec { } }
#[doc = "CR1 (rw) register accessor: Control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr1`] module"]
#[doc (alias = "CR1")] pub type Cr1 = crate :: Reg < cr1 :: Cr1Spec > ;
#[doc = "Control register 1"] pub mod cr1 {
#[doc = "Register `CR1` reader"] pub type R = crate :: R < Cr1Spec > ;
#[doc = "Register `CR1` writer"] pub type W = crate :: W < Cr1Spec > ;
#[doc = "Field `SBK` reader - Send break"] pub type SbkR = crate :: BitReader ;
#[doc = "Field `SBK` writer - Send break"] pub type SbkW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RWU` reader - Receiver wakeup"] pub type RwuR = crate :: BitReader ;
#[doc = "Field `RWU` writer - Receiver wakeup"] pub type RwuW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RE` reader - Receiver enable"] pub type ReR = crate :: BitReader ;
#[doc = "Field `RE` writer - Receiver enable"] pub type ReW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TE` reader - Transmitter enable"] pub type TeR = crate :: BitReader ;
#[doc = "Field `TE` writer - Transmitter enable"] pub type TeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IDLEIE` reader - IDLE interrupt enable"] pub type IdleieR = crate :: BitReader ;
#[doc = "Field `IDLEIE` writer - IDLE interrupt enable"] pub type IdleieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXNEIE` reader - RXNE interrupt enable"] pub type RxneieR = crate :: BitReader ;
#[doc = "Field `RXNEIE` writer - RXNE interrupt enable"] pub type RxneieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TCIE` reader - Transmission complete interrupt enable"] pub type TcieR = crate :: BitReader ;
#[doc = "Field `TCIE` writer - Transmission complete interrupt enable"] pub type TcieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXEIE` reader - TXE interrupt enable"] pub type TxeieR = crate :: BitReader ;
#[doc = "Field `TXEIE` writer - TXE interrupt enable"] pub type TxeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PEIE` reader - PE interrupt enable"] pub type PeieR = crate :: BitReader ;
#[doc = "Field `PEIE` writer - PE interrupt enable"] pub type PeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PS` reader - Parity selection"] pub type PsR = crate :: BitReader ;
#[doc = "Field `PS` writer - Parity selection"] pub type PsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PCE` reader - Parity control enable"] pub type PceR = crate :: BitReader ;
#[doc = "Field `PCE` writer - Parity control enable"] pub type PceW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAKE` reader - Wakeup method"] pub type WakeR = crate :: BitReader ;
#[doc = "Field `WAKE` writer - Wakeup method"] pub type WakeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `M` reader - Word length"] pub type MR = crate :: BitReader ;
#[doc = "Field `M` writer - Word length"] pub type MW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UE` reader - USART enable"] pub type UeR = crate :: BitReader ;
#[doc = "Field `UE` writer - USART enable"] pub type UeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Send break"]
#[inline (always)] pub fn sbk (& self) -> SbkR { SbkR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Receiver wakeup"]
#[inline (always)] pub fn rwu (& self) -> RwuR { RwuR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Receiver enable"]
#[inline (always)] pub fn re (& self) -> ReR { ReR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Transmitter enable"]
#[inline (always)] pub fn te (& self) -> TeR { TeR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - IDLE interrupt enable"]
#[inline (always)] pub fn idleie (& self) -> IdleieR { IdleieR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - RXNE interrupt enable"]
#[inline (always)] pub fn rxneie (& self) -> RxneieR { RxneieR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Transmission complete interrupt enable"]
#[inline (always)] pub fn tcie (& self) -> TcieR { TcieR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - TXE interrupt enable"]
#[inline (always)] pub fn txeie (& self) -> TxeieR { TxeieR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - PE interrupt enable"]
#[inline (always)] pub fn peie (& self) -> PeieR { PeieR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Parity selection"]
#[inline (always)] pub fn ps (& self) -> PsR { PsR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Parity control enable"]
#[inline (always)] pub fn pce (& self) -> PceR { PceR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Wakeup method"]
#[inline (always)] pub fn wake (& self) -> WakeR { WakeR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Word length"]
#[inline (always)] pub fn m (& self) -> MR { MR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - USART enable"]
#[inline (always)] pub fn ue (& self) -> UeR { UeR :: new (((self . bits >> 13) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Send break"]
#[inline (always)] pub fn sbk (& mut self) -> SbkW < '_ , Cr1Spec > { SbkW :: new (self , 0) }
#[doc = "Bit 1 - Receiver wakeup"]
#[inline (always)] pub fn rwu (& mut self) -> RwuW < '_ , Cr1Spec > { RwuW :: new (self , 1) }
#[doc = "Bit 2 - Receiver enable"]
#[inline (always)] pub fn re (& mut self) -> ReW < '_ , Cr1Spec > { ReW :: new (self , 2) }
#[doc = "Bit 3 - Transmitter enable"]
#[inline (always)] pub fn te (& mut self) -> TeW < '_ , Cr1Spec > { TeW :: new (self , 3) }
#[doc = "Bit 4 - IDLE interrupt enable"]
#[inline (always)] pub fn idleie (& mut self) -> IdleieW < '_ , Cr1Spec > { IdleieW :: new (self , 4) }
#[doc = "Bit 5 - RXNE interrupt enable"]
#[inline (always)] pub fn rxneie (& mut self) -> RxneieW < '_ , Cr1Spec > { RxneieW :: new (self , 5) }
#[doc = "Bit 6 - Transmission complete interrupt enable"]
#[inline (always)] pub fn tcie (& mut self) -> TcieW < '_ , Cr1Spec > { TcieW :: new (self , 6) }
#[doc = "Bit 7 - TXE interrupt enable"]
#[inline (always)] pub fn txeie (& mut self) -> TxeieW < '_ , Cr1Spec > { TxeieW :: new (self , 7) }
#[doc = "Bit 8 - PE interrupt enable"]
#[inline (always)] pub fn peie (& mut self) -> PeieW < '_ , Cr1Spec > { PeieW :: new (self , 8) }
#[doc = "Bit 9 - Parity selection"]
#[inline (always)] pub fn ps (& mut self) -> PsW < '_ , Cr1Spec > { PsW :: new (self , 9) }
#[doc = "Bit 10 - Parity control enable"]
#[inline (always)] pub fn pce (& mut self) -> PceW < '_ , Cr1Spec > { PceW :: new (self , 10) }
#[doc = "Bit 11 - Wakeup method"]
#[inline (always)] pub fn wake (& mut self) -> WakeW < '_ , Cr1Spec > { WakeW :: new (self , 11) }
#[doc = "Bit 12 - Word length"]
#[inline (always)] pub fn m (& mut self) -> MW < '_ , Cr1Spec > { MW :: new (self , 12) }
#[doc = "Bit 13 - USART enable"]
#[inline (always)] pub fn ue (& mut self) -> UeW < '_ , Cr1Spec > { UeW :: new (self , 13) } }
#[doc = "Control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr1Spec ; impl crate :: RegisterSpec for Cr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr1::R`](R) reader structure"] impl crate :: Readable for Cr1Spec { }
#[doc = "`write(|w| ..)` method takes [`cr1::W`](W) writer structure"] impl crate :: Writable for Cr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR1 to value 0"] impl crate :: Resettable for Cr1Spec { } }
#[doc = "CR2 (rw) register accessor: Control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr2`] module"]
#[doc (alias = "CR2")] pub type Cr2 = crate :: Reg < cr2 :: Cr2Spec > ;
#[doc = "Control register 2"] pub mod cr2 {
#[doc = "Register `CR2` reader"] pub type R = crate :: R < Cr2Spec > ;
#[doc = "Register `CR2` writer"] pub type W = crate :: W < Cr2Spec > ;
#[doc = "Field `ADD` reader - Address of the USART node"] pub type AddR = crate :: FieldReader ;
#[doc = "Field `ADD` writer - Address of the USART node"] pub type AddW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `LBDL` reader - lin break detection length"] pub type LbdlR = crate :: BitReader ;
#[doc = "Field `LBDL` writer - lin break detection length"] pub type LbdlW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LBDIE` reader - LIN break detection interrupt enable"] pub type LbdieR = crate :: BitReader ;
#[doc = "Field `LBDIE` writer - LIN break detection interrupt enable"] pub type LbdieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LBCL` reader - Last bit clock pulse"] pub type LbclR = crate :: BitReader ;
#[doc = "Field `LBCL` writer - Last bit clock pulse"] pub type LbclW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CPHA` reader - Clock phase"] pub type CphaR = crate :: BitReader ;
#[doc = "Field `CPHA` writer - Clock phase"] pub type CphaW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CPOL` reader - Clock polarity"] pub type CpolR = crate :: BitReader ;
#[doc = "Field `CPOL` writer - Clock polarity"] pub type CpolW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CLKEN` reader - Clock enable"] pub type ClkenR = crate :: BitReader ;
#[doc = "Field `CLKEN` writer - Clock enable"] pub type ClkenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STOP` reader - STOP bits"] pub type StopR = crate :: FieldReader ;
#[doc = "Field `STOP` writer - STOP bits"] pub type StopW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `LINEN` reader - LIN mode enable"] pub type LinenR = crate :: BitReader ;
#[doc = "Field `LINEN` writer - LIN mode enable"] pub type LinenW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:3 - Address of the USART node"]
#[inline (always)] pub fn add (& self) -> AddR { AddR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bit 5 - lin break detection length"]
#[inline (always)] pub fn lbdl (& self) -> LbdlR { LbdlR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - LIN break detection interrupt enable"]
#[inline (always)] pub fn lbdie (& self) -> LbdieR { LbdieR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 8 - Last bit clock pulse"]
#[inline (always)] pub fn lbcl (& self) -> LbclR { LbclR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Clock phase"]
#[inline (always)] pub fn cpha (& self) -> CphaR { CphaR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Clock polarity"]
#[inline (always)] pub fn cpol (& self) -> CpolR { CpolR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Clock enable"]
#[inline (always)] pub fn clken (& self) -> ClkenR { ClkenR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:13 - STOP bits"]
#[inline (always)] pub fn stop (& self) -> StopR { StopR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - LIN mode enable"]
#[inline (always)] pub fn linen (& self) -> LinenR { LinenR :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bits 0:3 - Address of the USART node"]
#[inline (always)] pub fn add (& mut self) -> AddW < '_ , Cr2Spec > { AddW :: new (self , 0) }
#[doc = "Bit 5 - lin break detection length"]
#[inline (always)] pub fn lbdl (& mut self) -> LbdlW < '_ , Cr2Spec > { LbdlW :: new (self , 5) }
#[doc = "Bit 6 - LIN break detection interrupt enable"]
#[inline (always)] pub fn lbdie (& mut self) -> LbdieW < '_ , Cr2Spec > { LbdieW :: new (self , 6) }
#[doc = "Bit 8 - Last bit clock pulse"]
#[inline (always)] pub fn lbcl (& mut self) -> LbclW < '_ , Cr2Spec > { LbclW :: new (self , 8) }
#[doc = "Bit 9 - Clock phase"]
#[inline (always)] pub fn cpha (& mut self) -> CphaW < '_ , Cr2Spec > { CphaW :: new (self , 9) }
#[doc = "Bit 10 - Clock polarity"]
#[inline (always)] pub fn cpol (& mut self) -> CpolW < '_ , Cr2Spec > { CpolW :: new (self , 10) }
#[doc = "Bit 11 - Clock enable"]
#[inline (always)] pub fn clken (& mut self) -> ClkenW < '_ , Cr2Spec > { ClkenW :: new (self , 11) }
#[doc = "Bits 12:13 - STOP bits"]
#[inline (always)] pub fn stop (& mut self) -> StopW < '_ , Cr2Spec > { StopW :: new (self , 12) }
#[doc = "Bit 14 - LIN mode enable"]
#[inline (always)] pub fn linen (& mut self) -> LinenW < '_ , Cr2Spec > { LinenW :: new (self , 14) } }
#[doc = "Control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr2Spec ; impl crate :: RegisterSpec for Cr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr2::R`](R) reader structure"] impl crate :: Readable for Cr2Spec { }
#[doc = "`write(|w| ..)` method takes [`cr2::W`](W) writer structure"] impl crate :: Writable for Cr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR2 to value 0"] impl crate :: Resettable for Cr2Spec { } }
#[doc = "CR3 (rw) register accessor: Control register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`cr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr3`] module"]
#[doc (alias = "CR3")] pub type Cr3 = crate :: Reg < cr3 :: Cr3Spec > ;
#[doc = "Control register 3"] pub mod cr3 {
#[doc = "Register `CR3` reader"] pub type R = crate :: R < Cr3Spec > ;
#[doc = "Register `CR3` writer"] pub type W = crate :: W < Cr3Spec > ;
#[doc = "Field `EIE` reader - Error interrupt enable"] pub type EieR = crate :: BitReader ;
#[doc = "Field `EIE` writer - Error interrupt enable"] pub type EieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IREN` reader - IrDA mode enable"] pub type IrenR = crate :: BitReader ;
#[doc = "Field `IREN` writer - IrDA mode enable"] pub type IrenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IRLP` reader - IrDA low-power"] pub type IrlpR = crate :: BitReader ;
#[doc = "Field `IRLP` writer - IrDA low-power"] pub type IrlpW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HDSEL` reader - Half-duplex selection"] pub type HdselR = crate :: BitReader ;
#[doc = "Field `HDSEL` writer - Half-duplex selection"] pub type HdselW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NACK` reader - Smartcard NACK enable"] pub type NackR = crate :: BitReader ;
#[doc = "Field `NACK` writer - Smartcard NACK enable"] pub type NackW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SCEN` reader - Smartcard mode enable"] pub type ScenR = crate :: BitReader ;
#[doc = "Field `SCEN` writer - Smartcard mode enable"] pub type ScenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DMAR` reader - DMA enable receiver"] pub type DmarR = crate :: BitReader ;
#[doc = "Field `DMAR` writer - DMA enable receiver"] pub type DmarW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DMAT` reader - DMA enable transmitter"] pub type DmatR = crate :: BitReader ;
#[doc = "Field `DMAT` writer - DMA enable transmitter"] pub type DmatW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RTSE` reader - RTS enable"] pub type RtseR = crate :: BitReader ;
#[doc = "Field `RTSE` writer - RTS enable"] pub type RtseW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTSE` reader - CTS enable"] pub type CtseR = crate :: BitReader ;
#[doc = "Field `CTSE` writer - CTS enable"] pub type CtseW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTSIE` reader - CTS interrupt enable"] pub type CtsieR = crate :: BitReader ;
#[doc = "Field `CTSIE` writer - CTS interrupt enable"] pub type CtsieW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Error interrupt enable"]
#[inline (always)] pub fn eie (& self) -> EieR { EieR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - IrDA mode enable"]
#[inline (always)] pub fn iren (& self) -> IrenR { IrenR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - IrDA low-power"]
#[inline (always)] pub fn irlp (& self) -> IrlpR { IrlpR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Half-duplex selection"]
#[inline (always)] pub fn hdsel (& self) -> HdselR { HdselR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Smartcard NACK enable"]
#[inline (always)] pub fn nack (& self) -> NackR { NackR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Smartcard mode enable"]
#[inline (always)] pub fn scen (& self) -> ScenR { ScenR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - DMA enable receiver"]
#[inline (always)] pub fn dmar (& self) -> DmarR { DmarR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - DMA enable transmitter"]
#[inline (always)] pub fn dmat (& self) -> DmatR { DmatR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - RTS enable"]
#[inline (always)] pub fn rtse (& self) -> RtseR { RtseR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - CTS enable"]
#[inline (always)] pub fn ctse (& self) -> CtseR { CtseR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - CTS interrupt enable"]
#[inline (always)] pub fn ctsie (& self) -> CtsieR { CtsieR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Error interrupt enable"]
#[inline (always)] pub fn eie (& mut self) -> EieW < '_ , Cr3Spec > { EieW :: new (self , 0) }
#[doc = "Bit 1 - IrDA mode enable"]
#[inline (always)] pub fn iren (& mut self) -> IrenW < '_ , Cr3Spec > { IrenW :: new (self , 1) }
#[doc = "Bit 2 - IrDA low-power"]
#[inline (always)] pub fn irlp (& mut self) -> IrlpW < '_ , Cr3Spec > { IrlpW :: new (self , 2) }
#[doc = "Bit 3 - Half-duplex selection"]
#[inline (always)] pub fn hdsel (& mut self) -> HdselW < '_ , Cr3Spec > { HdselW :: new (self , 3) }
#[doc = "Bit 4 - Smartcard NACK enable"]
#[inline (always)] pub fn nack (& mut self) -> NackW < '_ , Cr3Spec > { NackW :: new (self , 4) }
#[doc = "Bit 5 - Smartcard mode enable"]
#[inline (always)] pub fn scen (& mut self) -> ScenW < '_ , Cr3Spec > { ScenW :: new (self , 5) }
#[doc = "Bit 6 - DMA enable receiver"]
#[inline (always)] pub fn dmar (& mut self) -> DmarW < '_ , Cr3Spec > { DmarW :: new (self , 6) }
#[doc = "Bit 7 - DMA enable transmitter"]
#[inline (always)] pub fn dmat (& mut self) -> DmatW < '_ , Cr3Spec > { DmatW :: new (self , 7) }
#[doc = "Bit 8 - RTS enable"]
#[inline (always)] pub fn rtse (& mut self) -> RtseW < '_ , Cr3Spec > { RtseW :: new (self , 8) }
#[doc = "Bit 9 - CTS enable"]
#[inline (always)] pub fn ctse (& mut self) -> CtseW < '_ , Cr3Spec > { CtseW :: new (self , 9) }
#[doc = "Bit 10 - CTS interrupt enable"]
#[inline (always)] pub fn ctsie (& mut self) -> CtsieW < '_ , Cr3Spec > { CtsieW :: new (self , 10) } }
#[doc = "Control register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`cr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr3Spec ; impl crate :: RegisterSpec for Cr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr3::R`](R) reader structure"] impl crate :: Readable for Cr3Spec { }
#[doc = "`write(|w| ..)` method takes [`cr3::W`](W) writer structure"] impl crate :: Writable for Cr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR3 to value 0"] impl crate :: Resettable for Cr3Spec { } }
#[doc = "GTPR (rw) register accessor: Guard time and prescaler register\n\nYou can [`read`](crate::Reg::read) this register and get [`gtpr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gtpr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gtpr`] module"]
#[doc (alias = "GTPR")] pub type Gtpr = crate :: Reg < gtpr :: GtprSpec > ;
#[doc = "Guard time and prescaler register"] pub mod gtpr {
#[doc = "Register `GTPR` reader"] pub type R = crate :: R < GtprSpec > ;
#[doc = "Register `GTPR` writer"] pub type W = crate :: W < GtprSpec > ;
#[doc = "Field `PSC` reader - Prescaler value"] pub type PscR = crate :: FieldReader ;
#[doc = "Field `PSC` writer - Prescaler value"] pub type PscW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `GT` reader - Guard time value"] pub type GtR = crate :: FieldReader ;
#[doc = "Field `GT` writer - Guard time value"] pub type GtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - Prescaler value"]
#[inline (always)] pub fn psc (& self) -> PscR { PscR :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - Guard time value"]
#[inline (always)] pub fn gt (& self) -> GtR { GtR :: new (((self . bits >> 8) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - Prescaler value"]
#[inline (always)] pub fn psc (& mut self) -> PscW < '_ , GtprSpec > { PscW :: new (self , 0) }
#[doc = "Bits 8:15 - Guard time value"]
#[inline (always)] pub fn gt (& mut self) -> GtW < '_ , GtprSpec > { GtW :: new (self , 8) } }
#[doc = "Guard time and prescaler register\n\nYou can [`read`](crate::Reg::read) this register and get [`gtpr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gtpr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct GtprSpec ; impl crate :: RegisterSpec for GtprSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`gtpr::R`](R) reader structure"] impl crate :: Readable for GtprSpec { }
#[doc = "`write(|w| ..)` method takes [`gtpr::W`](W) writer structure"] impl crate :: Writable for GtprSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets GTPR to value 0"] impl crate :: Resettable for GtprSpec { } } }
#[doc = "Universal synchronous asynchronous receiver transmitter"] pub type Usart2 = crate :: Periph < usart1 :: RegisterBlock , 0x4000_4400 > ; impl core :: fmt :: Debug for Usart2 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Usart2") . finish () } }
#[doc = "Universal synchronous asynchronous receiver transmitter"] pub use self :: usart1 as usart2 ;
#[doc = "Universal synchronous asynchronous receiver transmitter"] pub type Usart3 = crate :: Periph < usart1 :: RegisterBlock , 0x4000_4800 > ; impl core :: fmt :: Debug for Usart3 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Usart3") . finish () } }
#[doc = "Universal synchronous asynchronous receiver transmitter"] pub use self :: usart1 as usart3 ;
#[doc = "Analog to digital converter"] pub type Adc1 = crate :: Periph < adc1 :: RegisterBlock , 0x4001_2400 > ; impl core :: fmt :: Debug for Adc1 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Adc1") . finish () } }
#[doc = "Analog to digital converter"] pub mod adc1 {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { sr : Sr , cr1 : Cr1 , cr2 : Cr2 , smpr1 : Smpr1 , smpr2 : Smpr2 , jofr1 : Jofr1 , jofr2 : Jofr2 , jofr3 : Jofr3 , jofr4 : Jofr4 , htr : Htr , ltr : Ltr , sqr1 : Sqr1 , sqr2 : Sqr2 , sqr3 : Sqr3 , jsqr : Jsqr , jdr1 : Jdr1 , jdr2 : Jdr2 , jdr3 : Jdr3 , jdr4 : Jdr4 , dr : Dr , } impl RegisterBlock {
#[doc = "0x00 - status register"]
#[inline (always)] pub const fn sr (& self) -> & Sr { & self . sr }
#[doc = "0x04 - control register 1"]
#[inline (always)] pub const fn cr1 (& self) -> & Cr1 { & self . cr1 }
#[doc = "0x08 - control register 2"]
#[inline (always)] pub const fn cr2 (& self) -> & Cr2 { & self . cr2 }
#[doc = "0x0c - sample time register 1"]
#[inline (always)] pub const fn smpr1 (& self) -> & Smpr1 { & self . smpr1 }
#[doc = "0x10 - sample time register 2"]
#[inline (always)] pub const fn smpr2 (& self) -> & Smpr2 { & self . smpr2 }
#[doc = "0x14 - injected channel data offset register x"]
#[inline (always)] pub const fn jofr1 (& self) -> & Jofr1 { & self . jofr1 }
#[doc = "0x18 - injected channel data offset register x"]
#[inline (always)] pub const fn jofr2 (& self) -> & Jofr2 { & self . jofr2 }
#[doc = "0x1c - injected channel data offset register x"]
#[inline (always)] pub const fn jofr3 (& self) -> & Jofr3 { & self . jofr3 }
#[doc = "0x20 - injected channel data offset register x"]
#[inline (always)] pub const fn jofr4 (& self) -> & Jofr4 { & self . jofr4 }
#[doc = "0x24 - watchdog higher threshold register"]
#[inline (always)] pub const fn htr (& self) -> & Htr { & self . htr }
#[doc = "0x28 - watchdog lower threshold register"]
#[inline (always)] pub const fn ltr (& self) -> & Ltr { & self . ltr }
#[doc = "0x2c - regular sequence register 1"]
#[inline (always)] pub const fn sqr1 (& self) -> & Sqr1 { & self . sqr1 }
#[doc = "0x30 - regular sequence register 2"]
#[inline (always)] pub const fn sqr2 (& self) -> & Sqr2 { & self . sqr2 }
#[doc = "0x34 - regular sequence register 3"]
#[inline (always)] pub const fn sqr3 (& self) -> & Sqr3 { & self . sqr3 }
#[doc = "0x38 - injected sequence register"]
#[inline (always)] pub const fn jsqr (& self) -> & Jsqr { & self . jsqr }
#[doc = "0x3c - injected data register x"]
#[inline (always)] pub const fn jdr1 (& self) -> & Jdr1 { & self . jdr1 }
#[doc = "0x40 - injected data register x"]
#[inline (always)] pub const fn jdr2 (& self) -> & Jdr2 { & self . jdr2 }
#[doc = "0x44 - injected data register x"]
#[inline (always)] pub const fn jdr3 (& self) -> & Jdr3 { & self . jdr3 }
#[doc = "0x48 - injected data register x"]
#[inline (always)] pub const fn jdr4 (& self) -> & Jdr4 { & self . jdr4 }
#[doc = "0x4c - regular data register"]
#[inline (always)] pub const fn dr (& self) -> & Dr { & self . dr } }
#[doc = "SR (rw) register accessor: status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`] module"]
#[doc (alias = "SR")] pub type Sr = crate :: Reg < sr :: SrSpec > ;
#[doc = "status register"] pub mod sr {
#[doc = "Register `SR` reader"] pub type R = crate :: R < SrSpec > ;
#[doc = "Register `SR` writer"] pub type W = crate :: W < SrSpec > ;
#[doc = "Field `AWD` reader - Analog watchdog flag"] pub type AwdR = crate :: BitReader ;
#[doc = "Field `AWD` writer - Analog watchdog flag"] pub type AwdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EOC` reader - Regular channel end of conversion"] pub type EocR = crate :: BitReader ;
#[doc = "Field `EOC` writer - Regular channel end of conversion"] pub type EocW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `JEOC` reader - Injected channel end of conversion"] pub type JeocR = crate :: BitReader ;
#[doc = "Field `JEOC` writer - Injected channel end of conversion"] pub type JeocW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `JSTRT` reader - Injected channel start flag"] pub type JstrtR = crate :: BitReader ;
#[doc = "Field `JSTRT` writer - Injected channel start flag"] pub type JstrtW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STRT` reader - Regular channel start flag"] pub type StrtR = crate :: BitReader ;
#[doc = "Field `STRT` writer - Regular channel start flag"] pub type StrtW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Analog watchdog flag"]
#[inline (always)] pub fn awd (& self) -> AwdR { AwdR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Regular channel end of conversion"]
#[inline (always)] pub fn eoc (& self) -> EocR { EocR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Injected channel end of conversion"]
#[inline (always)] pub fn jeoc (& self) -> JeocR { JeocR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Injected channel start flag"]
#[inline (always)] pub fn jstrt (& self) -> JstrtR { JstrtR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Regular channel start flag"]
#[inline (always)] pub fn strt (& self) -> StrtR { StrtR :: new (((self . bits >> 4) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Analog watchdog flag"]
#[inline (always)] pub fn awd (& mut self) -> AwdW < '_ , SrSpec > { AwdW :: new (self , 0) }
#[doc = "Bit 1 - Regular channel end of conversion"]
#[inline (always)] pub fn eoc (& mut self) -> EocW < '_ , SrSpec > { EocW :: new (self , 1) }
#[doc = "Bit 2 - Injected channel end of conversion"]
#[inline (always)] pub fn jeoc (& mut self) -> JeocW < '_ , SrSpec > { JeocW :: new (self , 2) }
#[doc = "Bit 3 - Injected channel start flag"]
#[inline (always)] pub fn jstrt (& mut self) -> JstrtW < '_ , SrSpec > { JstrtW :: new (self , 3) }
#[doc = "Bit 4 - Regular channel start flag"]
#[inline (always)] pub fn strt (& mut self) -> StrtW < '_ , SrSpec > { StrtW :: new (self , 4) } }
#[doc = "status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec ; impl crate :: RegisterSpec for SrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate :: Readable for SrSpec { }
#[doc = "`write(|w| ..)` method takes [`sr::W`](W) writer structure"] impl crate :: Writable for SrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR to value 0"] impl crate :: Resettable for SrSpec { } }
#[doc = "CR1 (rw) register accessor: control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr1`] module"]
#[doc (alias = "CR1")] pub type Cr1 = crate :: Reg < cr1 :: Cr1Spec > ;
#[doc = "control register 1"] pub mod cr1 {
#[doc = "Register `CR1` reader"] pub type R = crate :: R < Cr1Spec > ;
#[doc = "Register `CR1` writer"] pub type W = crate :: W < Cr1Spec > ;
#[doc = "Field `AWDCH` reader - Analog watchdog channel select bits"] pub type AwdchR = crate :: FieldReader ;
#[doc = "Field `AWDCH` writer - Analog watchdog channel select bits"] pub type AwdchW < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `EOCIE` reader - Interrupt enable for EOC"] pub type EocieR = crate :: BitReader ;
#[doc = "Field `EOCIE` writer - Interrupt enable for EOC"] pub type EocieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AWDIE` reader - Analog watchdog interrupt enable"] pub type AwdieR = crate :: BitReader ;
#[doc = "Field `AWDIE` writer - Analog watchdog interrupt enable"] pub type AwdieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `JEOCIE` reader - Interrupt enable for injected channels"] pub type JeocieR = crate :: BitReader ;
#[doc = "Field `JEOCIE` writer - Interrupt enable for injected channels"] pub type JeocieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SCAN` reader - Scan mode"] pub type ScanR = crate :: BitReader ;
#[doc = "Field `SCAN` writer - Scan mode"] pub type ScanW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AWDSGL` reader - Enable the watchdog on a single channel in scan mode"] pub type AwdsglR = crate :: BitReader ;
#[doc = "Field `AWDSGL` writer - Enable the watchdog on a single channel in scan mode"] pub type AwdsglW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `JAUTO` reader - Automatic injected group conversion"] pub type JautoR = crate :: BitReader ;
#[doc = "Field `JAUTO` writer - Automatic injected group conversion"] pub type JautoW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DISCEN` reader - Discontinuous mode on regular channels"] pub type DiscenR = crate :: BitReader ;
#[doc = "Field `DISCEN` writer - Discontinuous mode on regular channels"] pub type DiscenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `JDISCEN` reader - Discontinuous mode on injected channels"] pub type JdiscenR = crate :: BitReader ;
#[doc = "Field `JDISCEN` writer - Discontinuous mode on injected channels"] pub type JdiscenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DISCNUM` reader - Discontinuous mode channel count"] pub type DiscnumR = crate :: FieldReader ;
#[doc = "Field `DISCNUM` writer - Discontinuous mode channel count"] pub type DiscnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `DUALMOD` reader - Dual mode selection"] pub type DualmodR = crate :: FieldReader ;
#[doc = "Field `DUALMOD` writer - Dual mode selection"] pub type DualmodW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `JAWDEN` reader - Analog watchdog enable on injected channels"] pub type JawdenR = crate :: BitReader ;
#[doc = "Field `JAWDEN` writer - Analog watchdog enable on injected channels"] pub type JawdenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AWDEN` reader - Analog watchdog enable on regular channels"] pub type AwdenR = crate :: BitReader ;
#[doc = "Field `AWDEN` writer - Analog watchdog enable on regular channels"] pub type AwdenW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:4 - Analog watchdog channel select bits"]
#[inline (always)] pub fn awdch (& self) -> AwdchR { AwdchR :: new ((self . bits & 0x1f) as u8) }
#[doc = "Bit 5 - Interrupt enable for EOC"]
#[inline (always)] pub fn eocie (& self) -> EocieR { EocieR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Analog watchdog interrupt enable"]
#[inline (always)] pub fn awdie (& self) -> AwdieR { AwdieR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Interrupt enable for injected channels"]
#[inline (always)] pub fn jeocie (& self) -> JeocieR { JeocieR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Scan mode"]
#[inline (always)] pub fn scan (& self) -> ScanR { ScanR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Enable the watchdog on a single channel in scan mode"]
#[inline (always)] pub fn awdsgl (& self) -> AwdsglR { AwdsglR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Automatic injected group conversion"]
#[inline (always)] pub fn jauto (& self) -> JautoR { JautoR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Discontinuous mode on regular channels"]
#[inline (always)] pub fn discen (& self) -> DiscenR { DiscenR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Discontinuous mode on injected channels"]
#[inline (always)] pub fn jdiscen (& self) -> JdiscenR { JdiscenR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bits 13:15 - Discontinuous mode channel count"]
#[inline (always)] pub fn discnum (& self) -> DiscnumR { DiscnumR :: new (((self . bits >> 13) & 7) as u8) }
#[doc = "Bits 16:19 - Dual mode selection"]
#[inline (always)] pub fn dualmod (& self) -> DualmodR { DualmodR :: new (((self . bits >> 16) & 0x0f) as u8) }
#[doc = "Bit 22 - Analog watchdog enable on injected channels"]
#[inline (always)] pub fn jawden (& self) -> JawdenR { JawdenR :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Analog watchdog enable on regular channels"]
#[inline (always)] pub fn awden (& self) -> AwdenR { AwdenR :: new (((self . bits >> 23) & 1) != 0) } } impl W {
#[doc = "Bits 0:4 - Analog watchdog channel select bits"]
#[inline (always)] pub fn awdch (& mut self) -> AwdchW < '_ , Cr1Spec > { AwdchW :: new (self , 0) }
#[doc = "Bit 5 - Interrupt enable for EOC"]
#[inline (always)] pub fn eocie (& mut self) -> EocieW < '_ , Cr1Spec > { EocieW :: new (self , 5) }
#[doc = "Bit 6 - Analog watchdog interrupt enable"]
#[inline (always)] pub fn awdie (& mut self) -> AwdieW < '_ , Cr1Spec > { AwdieW :: new (self , 6) }
#[doc = "Bit 7 - Interrupt enable for injected channels"]
#[inline (always)] pub fn jeocie (& mut self) -> JeocieW < '_ , Cr1Spec > { JeocieW :: new (self , 7) }
#[doc = "Bit 8 - Scan mode"]
#[inline (always)] pub fn scan (& mut self) -> ScanW < '_ , Cr1Spec > { ScanW :: new (self , 8) }
#[doc = "Bit 9 - Enable the watchdog on a single channel in scan mode"]
#[inline (always)] pub fn awdsgl (& mut self) -> AwdsglW < '_ , Cr1Spec > { AwdsglW :: new (self , 9) }
#[doc = "Bit 10 - Automatic injected group conversion"]
#[inline (always)] pub fn jauto (& mut self) -> JautoW < '_ , Cr1Spec > { JautoW :: new (self , 10) }
#[doc = "Bit 11 - Discontinuous mode on regular channels"]
#[inline (always)] pub fn discen (& mut self) -> DiscenW < '_ , Cr1Spec > { DiscenW :: new (self , 11) }
#[doc = "Bit 12 - Discontinuous mode on injected channels"]
#[inline (always)] pub fn jdiscen (& mut self) -> JdiscenW < '_ , Cr1Spec > { JdiscenW :: new (self , 12) }
#[doc = "Bits 13:15 - Discontinuous mode channel count"]
#[inline (always)] pub fn discnum (& mut self) -> DiscnumW < '_ , Cr1Spec > { DiscnumW :: new (self , 13) }
#[doc = "Bits 16:19 - Dual mode selection"]
#[inline (always)] pub fn dualmod (& mut self) -> DualmodW < '_ , Cr1Spec > { DualmodW :: new (self , 16) }
#[doc = "Bit 22 - Analog watchdog enable on injected channels"]
#[inline (always)] pub fn jawden (& mut self) -> JawdenW < '_ , Cr1Spec > { JawdenW :: new (self , 22) }
#[doc = "Bit 23 - Analog watchdog enable on regular channels"]
#[inline (always)] pub fn awden (& mut self) -> AwdenW < '_ , Cr1Spec > { AwdenW :: new (self , 23) } }
#[doc = "control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr1Spec ; impl crate :: RegisterSpec for Cr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr1::R`](R) reader structure"] impl crate :: Readable for Cr1Spec { }
#[doc = "`write(|w| ..)` method takes [`cr1::W`](W) writer structure"] impl crate :: Writable for Cr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR1 to value 0"] impl crate :: Resettable for Cr1Spec { } }
#[doc = "CR2 (rw) register accessor: control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr2`] module"]
#[doc (alias = "CR2")] pub type Cr2 = crate :: Reg < cr2 :: Cr2Spec > ;
#[doc = "control register 2"] pub mod cr2 {
#[doc = "Register `CR2` reader"] pub type R = crate :: R < Cr2Spec > ;
#[doc = "Register `CR2` writer"] pub type W = crate :: W < Cr2Spec > ;
#[doc = "Field `ADON` reader - A/D converter ON / OFF"] pub type AdonR = crate :: BitReader ;
#[doc = "Field `ADON` writer - A/D converter ON / OFF"] pub type AdonW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CONT` reader - Continuous conversion"] pub type ContR = crate :: BitReader ;
#[doc = "Field `CONT` writer - Continuous conversion"] pub type ContW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CAL` reader - A/D calibration"] pub type CalR = crate :: BitReader ;
#[doc = "Field `CAL` writer - A/D calibration"] pub type CalW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RSTCAL` reader - Reset calibration"] pub type RstcalR = crate :: BitReader ;
#[doc = "Field `RSTCAL` writer - Reset calibration"] pub type RstcalW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DMA` reader - Direct memory access mode"] pub type DmaR = crate :: BitReader ;
#[doc = "Field `DMA` writer - Direct memory access mode"] pub type DmaW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ALIGN` reader - Data alignment"] pub type AlignR = crate :: BitReader ;
#[doc = "Field `ALIGN` writer - Data alignment"] pub type AlignW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `JEXTSEL` reader - External event select for injected group"] pub type JextselR = crate :: FieldReader ;
#[doc = "Field `JEXTSEL` writer - External event select for injected group"] pub type JextselW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `JEXTTRIG` reader - External trigger conversion mode for injected channels"] pub type JexttrigR = crate :: BitReader ;
#[doc = "Field `JEXTTRIG` writer - External trigger conversion mode for injected channels"] pub type JexttrigW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EXTSEL` reader - External event select for regular group"] pub type ExtselR = crate :: FieldReader ;
#[doc = "Field `EXTSEL` writer - External event select for regular group"] pub type ExtselW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `EXTTRIG` reader - External trigger conversion mode for regular channels"] pub type ExttrigR = crate :: BitReader ;
#[doc = "Field `EXTTRIG` writer - External trigger conversion mode for regular channels"] pub type ExttrigW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `JSWSTART` reader - Start conversion of injected channels"] pub type JswstartR = crate :: BitReader ;
#[doc = "Field `JSWSTART` writer - Start conversion of injected channels"] pub type JswstartW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWSTART` reader - Start conversion of regular channels"] pub type SwstartR = crate :: BitReader ;
#[doc = "Field `SWSTART` writer - Start conversion of regular channels"] pub type SwstartW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TSVREFE` reader - Temperature sensor and VREFINT enable"] pub type TsvrefeR = crate :: BitReader ;
#[doc = "Field `TSVREFE` writer - Temperature sensor and VREFINT enable"] pub type TsvrefeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - A/D converter ON / OFF"]
#[inline (always)] pub fn adon (& self) -> AdonR { AdonR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Continuous conversion"]
#[inline (always)] pub fn cont (& self) -> ContR { ContR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - A/D calibration"]
#[inline (always)] pub fn cal (& self) -> CalR { CalR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Reset calibration"]
#[inline (always)] pub fn rstcal (& self) -> RstcalR { RstcalR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 8 - Direct memory access mode"]
#[inline (always)] pub fn dma (& self) -> DmaR { DmaR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 11 - Data alignment"]
#[inline (always)] pub fn align (& self) -> AlignR { AlignR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:14 - External event select for injected group"]
#[inline (always)] pub fn jextsel (& self) -> JextselR { JextselR :: new (((self . bits >> 12) & 7) as u8) }
#[doc = "Bit 15 - External trigger conversion mode for injected channels"]
#[inline (always)] pub fn jexttrig (& self) -> JexttrigR { JexttrigR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bits 17:19 - External event select for regular group"]
#[inline (always)] pub fn extsel (& self) -> ExtselR { ExtselR :: new (((self . bits >> 17) & 7) as u8) }
#[doc = "Bit 20 - External trigger conversion mode for regular channels"]
#[inline (always)] pub fn exttrig (& self) -> ExttrigR { ExttrigR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Start conversion of injected channels"]
#[inline (always)] pub fn jswstart (& self) -> JswstartR { JswstartR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Start conversion of regular channels"]
#[inline (always)] pub fn swstart (& self) -> SwstartR { SwstartR :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Temperature sensor and VREFINT enable"]
#[inline (always)] pub fn tsvrefe (& self) -> TsvrefeR { TsvrefeR :: new (((self . bits >> 23) & 1) != 0) } } impl W {
#[doc = "Bit 0 - A/D converter ON / OFF"]
#[inline (always)] pub fn adon (& mut self) -> AdonW < '_ , Cr2Spec > { AdonW :: new (self , 0) }
#[doc = "Bit 1 - Continuous conversion"]
#[inline (always)] pub fn cont (& mut self) -> ContW < '_ , Cr2Spec > { ContW :: new (self , 1) }
#[doc = "Bit 2 - A/D calibration"]
#[inline (always)] pub fn cal (& mut self) -> CalW < '_ , Cr2Spec > { CalW :: new (self , 2) }
#[doc = "Bit 3 - Reset calibration"]
#[inline (always)] pub fn rstcal (& mut self) -> RstcalW < '_ , Cr2Spec > { RstcalW :: new (self , 3) }
#[doc = "Bit 8 - Direct memory access mode"]
#[inline (always)] pub fn dma (& mut self) -> DmaW < '_ , Cr2Spec > { DmaW :: new (self , 8) }
#[doc = "Bit 11 - Data alignment"]
#[inline (always)] pub fn align (& mut self) -> AlignW < '_ , Cr2Spec > { AlignW :: new (self , 11) }
#[doc = "Bits 12:14 - External event select for injected group"]
#[inline (always)] pub fn jextsel (& mut self) -> JextselW < '_ , Cr2Spec > { JextselW :: new (self , 12) }
#[doc = "Bit 15 - External trigger conversion mode for injected channels"]
#[inline (always)] pub fn jexttrig (& mut self) -> JexttrigW < '_ , Cr2Spec > { JexttrigW :: new (self , 15) }
#[doc = "Bits 17:19 - External event select for regular group"]
#[inline (always)] pub fn extsel (& mut self) -> ExtselW < '_ , Cr2Spec > { ExtselW :: new (self , 17) }
#[doc = "Bit 20 - External trigger conversion mode for regular channels"]
#[inline (always)] pub fn exttrig (& mut self) -> ExttrigW < '_ , Cr2Spec > { ExttrigW :: new (self , 20) }
#[doc = "Bit 21 - Start conversion of injected channels"]
#[inline (always)] pub fn jswstart (& mut self) -> JswstartW < '_ , Cr2Spec > { JswstartW :: new (self , 21) }
#[doc = "Bit 22 - Start conversion of regular channels"]
#[inline (always)] pub fn swstart (& mut self) -> SwstartW < '_ , Cr2Spec > { SwstartW :: new (self , 22) }
#[doc = "Bit 23 - Temperature sensor and VREFINT enable"]
#[inline (always)] pub fn tsvrefe (& mut self) -> TsvrefeW < '_ , Cr2Spec > { TsvrefeW :: new (self , 23) } }
#[doc = "control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr2Spec ; impl crate :: RegisterSpec for Cr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr2::R`](R) reader structure"] impl crate :: Readable for Cr2Spec { }
#[doc = "`write(|w| ..)` method takes [`cr2::W`](W) writer structure"] impl crate :: Writable for Cr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR2 to value 0"] impl crate :: Resettable for Cr2Spec { } }
#[doc = "SMPR1 (rw) register accessor: sample time register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`smpr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smpr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@smpr1`] module"]
#[doc (alias = "SMPR1")] pub type Smpr1 = crate :: Reg < smpr1 :: Smpr1Spec > ;
#[doc = "sample time register 1"] pub mod smpr1 {
#[doc = "Register `SMPR1` reader"] pub type R = crate :: R < Smpr1Spec > ;
#[doc = "Register `SMPR1` writer"] pub type W = crate :: W < Smpr1Spec > ;
#[doc = "Field `SMP10` reader - Channel 10 sample time selection"] pub type Smp10R = crate :: FieldReader ;
#[doc = "Field `SMP10` writer - Channel 10 sample time selection"] pub type Smp10W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP11` reader - Channel 11 sample time selection"] pub type Smp11R = crate :: FieldReader ;
#[doc = "Field `SMP11` writer - Channel 11 sample time selection"] pub type Smp11W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP12` reader - Channel 12 sample time selection"] pub type Smp12R = crate :: FieldReader ;
#[doc = "Field `SMP12` writer - Channel 12 sample time selection"] pub type Smp12W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP13` reader - Channel 13 sample time selection"] pub type Smp13R = crate :: FieldReader ;
#[doc = "Field `SMP13` writer - Channel 13 sample time selection"] pub type Smp13W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP14` reader - Channel 14 sample time selection"] pub type Smp14R = crate :: FieldReader ;
#[doc = "Field `SMP14` writer - Channel 14 sample time selection"] pub type Smp14W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP15` reader - Channel 15 sample time selection"] pub type Smp15R = crate :: FieldReader ;
#[doc = "Field `SMP15` writer - Channel 15 sample time selection"] pub type Smp15W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP16` reader - Channel 16 sample time selection"] pub type Smp16R = crate :: FieldReader ;
#[doc = "Field `SMP16` writer - Channel 16 sample time selection"] pub type Smp16W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP17` reader - Channel 17 sample time selection"] pub type Smp17R = crate :: FieldReader ;
#[doc = "Field `SMP17` writer - Channel 17 sample time selection"] pub type Smp17W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bits 0:2 - Channel 10 sample time selection"]
#[inline (always)] pub fn smp10 (& self) -> Smp10R { Smp10R :: new ((self . bits & 7) as u8) }
#[doc = "Bits 3:5 - Channel 11 sample time selection"]
#[inline (always)] pub fn smp11 (& self) -> Smp11R { Smp11R :: new (((self . bits >> 3) & 7) as u8) }
#[doc = "Bits 6:8 - Channel 12 sample time selection"]
#[inline (always)] pub fn smp12 (& self) -> Smp12R { Smp12R :: new (((self . bits >> 6) & 7) as u8) }
#[doc = "Bits 9:11 - Channel 13 sample time selection"]
#[inline (always)] pub fn smp13 (& self) -> Smp13R { Smp13R :: new (((self . bits >> 9) & 7) as u8) }
#[doc = "Bits 12:14 - Channel 14 sample time selection"]
#[inline (always)] pub fn smp14 (& self) -> Smp14R { Smp14R :: new (((self . bits >> 12) & 7) as u8) }
#[doc = "Bits 15:17 - Channel 15 sample time selection"]
#[inline (always)] pub fn smp15 (& self) -> Smp15R { Smp15R :: new (((self . bits >> 15) & 7) as u8) }
#[doc = "Bits 18:20 - Channel 16 sample time selection"]
#[inline (always)] pub fn smp16 (& self) -> Smp16R { Smp16R :: new (((self . bits >> 18) & 7) as u8) }
#[doc = "Bits 21:23 - Channel 17 sample time selection"]
#[inline (always)] pub fn smp17 (& self) -> Smp17R { Smp17R :: new (((self . bits >> 21) & 7) as u8) } } impl W {
#[doc = "Bits 0:2 - Channel 10 sample time selection"]
#[inline (always)] pub fn smp10 (& mut self) -> Smp10W < '_ , Smpr1Spec > { Smp10W :: new (self , 0) }
#[doc = "Bits 3:5 - Channel 11 sample time selection"]
#[inline (always)] pub fn smp11 (& mut self) -> Smp11W < '_ , Smpr1Spec > { Smp11W :: new (self , 3) }
#[doc = "Bits 6:8 - Channel 12 sample time selection"]
#[inline (always)] pub fn smp12 (& mut self) -> Smp12W < '_ , Smpr1Spec > { Smp12W :: new (self , 6) }
#[doc = "Bits 9:11 - Channel 13 sample time selection"]
#[inline (always)] pub fn smp13 (& mut self) -> Smp13W < '_ , Smpr1Spec > { Smp13W :: new (self , 9) }
#[doc = "Bits 12:14 - Channel 14 sample time selection"]
#[inline (always)] pub fn smp14 (& mut self) -> Smp14W < '_ , Smpr1Spec > { Smp14W :: new (self , 12) }
#[doc = "Bits 15:17 - Channel 15 sample time selection"]
#[inline (always)] pub fn smp15 (& mut self) -> Smp15W < '_ , Smpr1Spec > { Smp15W :: new (self , 15) }
#[doc = "Bits 18:20 - Channel 16 sample time selection"]
#[inline (always)] pub fn smp16 (& mut self) -> Smp16W < '_ , Smpr1Spec > { Smp16W :: new (self , 18) }
#[doc = "Bits 21:23 - Channel 17 sample time selection"]
#[inline (always)] pub fn smp17 (& mut self) -> Smp17W < '_ , Smpr1Spec > { Smp17W :: new (self , 21) } }
#[doc = "sample time register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`smpr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smpr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Smpr1Spec ; impl crate :: RegisterSpec for Smpr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`smpr1::R`](R) reader structure"] impl crate :: Readable for Smpr1Spec { }
#[doc = "`write(|w| ..)` method takes [`smpr1::W`](W) writer structure"] impl crate :: Writable for Smpr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SMPR1 to value 0"] impl crate :: Resettable for Smpr1Spec { } }
#[doc = "SMPR2 (rw) register accessor: sample time register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`smpr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smpr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@smpr2`] module"]
#[doc (alias = "SMPR2")] pub type Smpr2 = crate :: Reg < smpr2 :: Smpr2Spec > ;
#[doc = "sample time register 2"] pub mod smpr2 {
#[doc = "Register `SMPR2` reader"] pub type R = crate :: R < Smpr2Spec > ;
#[doc = "Register `SMPR2` writer"] pub type W = crate :: W < Smpr2Spec > ;
#[doc = "Field `SMP0` reader - Channel 0 sample time selection"] pub type Smp0R = crate :: FieldReader ;
#[doc = "Field `SMP0` writer - Channel 0 sample time selection"] pub type Smp0W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP1` reader - Channel 1 sample time selection"] pub type Smp1R = crate :: FieldReader ;
#[doc = "Field `SMP1` writer - Channel 1 sample time selection"] pub type Smp1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP2` reader - Channel 2 sample time selection"] pub type Smp2R = crate :: FieldReader ;
#[doc = "Field `SMP2` writer - Channel 2 sample time selection"] pub type Smp2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP3` reader - Channel 3 sample time selection"] pub type Smp3R = crate :: FieldReader ;
#[doc = "Field `SMP3` writer - Channel 3 sample time selection"] pub type Smp3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP4` reader - Channel 4 sample time selection"] pub type Smp4R = crate :: FieldReader ;
#[doc = "Field `SMP4` writer - Channel 4 sample time selection"] pub type Smp4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP5` reader - Channel 5 sample time selection"] pub type Smp5R = crate :: FieldReader ;
#[doc = "Field `SMP5` writer - Channel 5 sample time selection"] pub type Smp5W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP6` reader - Channel 6 sample time selection"] pub type Smp6R = crate :: FieldReader ;
#[doc = "Field `SMP6` writer - Channel 6 sample time selection"] pub type Smp6W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP7` reader - Channel 7 sample time selection"] pub type Smp7R = crate :: FieldReader ;
#[doc = "Field `SMP7` writer - Channel 7 sample time selection"] pub type Smp7W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP8` reader - Channel 8 sample time selection"] pub type Smp8R = crate :: FieldReader ;
#[doc = "Field `SMP8` writer - Channel 8 sample time selection"] pub type Smp8W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP9` reader - Channel 9 sample time selection"] pub type Smp9R = crate :: FieldReader ;
#[doc = "Field `SMP9` writer - Channel 9 sample time selection"] pub type Smp9W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bits 0:2 - Channel 0 sample time selection"]
#[inline (always)] pub fn smp0 (& self) -> Smp0R { Smp0R :: new ((self . bits & 7) as u8) }
#[doc = "Bits 3:5 - Channel 1 sample time selection"]
#[inline (always)] pub fn smp1 (& self) -> Smp1R { Smp1R :: new (((self . bits >> 3) & 7) as u8) }
#[doc = "Bits 6:8 - Channel 2 sample time selection"]
#[inline (always)] pub fn smp2 (& self) -> Smp2R { Smp2R :: new (((self . bits >> 6) & 7) as u8) }
#[doc = "Bits 9:11 - Channel 3 sample time selection"]
#[inline (always)] pub fn smp3 (& self) -> Smp3R { Smp3R :: new (((self . bits >> 9) & 7) as u8) }
#[doc = "Bits 12:14 - Channel 4 sample time selection"]
#[inline (always)] pub fn smp4 (& self) -> Smp4R { Smp4R :: new (((self . bits >> 12) & 7) as u8) }
#[doc = "Bits 15:17 - Channel 5 sample time selection"]
#[inline (always)] pub fn smp5 (& self) -> Smp5R { Smp5R :: new (((self . bits >> 15) & 7) as u8) }
#[doc = "Bits 18:20 - Channel 6 sample time selection"]
#[inline (always)] pub fn smp6 (& self) -> Smp6R { Smp6R :: new (((self . bits >> 18) & 7) as u8) }
#[doc = "Bits 21:23 - Channel 7 sample time selection"]
#[inline (always)] pub fn smp7 (& self) -> Smp7R { Smp7R :: new (((self . bits >> 21) & 7) as u8) }
#[doc = "Bits 24:26 - Channel 8 sample time selection"]
#[inline (always)] pub fn smp8 (& self) -> Smp8R { Smp8R :: new (((self . bits >> 24) & 7) as u8) }
#[doc = "Bits 27:29 - Channel 9 sample time selection"]
#[inline (always)] pub fn smp9 (& self) -> Smp9R { Smp9R :: new (((self . bits >> 27) & 7) as u8) } } impl W {
#[doc = "Bits 0:2 - Channel 0 sample time selection"]
#[inline (always)] pub fn smp0 (& mut self) -> Smp0W < '_ , Smpr2Spec > { Smp0W :: new (self , 0) }
#[doc = "Bits 3:5 - Channel 1 sample time selection"]
#[inline (always)] pub fn smp1 (& mut self) -> Smp1W < '_ , Smpr2Spec > { Smp1W :: new (self , 3) }
#[doc = "Bits 6:8 - Channel 2 sample time selection"]
#[inline (always)] pub fn smp2 (& mut self) -> Smp2W < '_ , Smpr2Spec > { Smp2W :: new (self , 6) }
#[doc = "Bits 9:11 - Channel 3 sample time selection"]
#[inline (always)] pub fn smp3 (& mut self) -> Smp3W < '_ , Smpr2Spec > { Smp3W :: new (self , 9) }
#[doc = "Bits 12:14 - Channel 4 sample time selection"]
#[inline (always)] pub fn smp4 (& mut self) -> Smp4W < '_ , Smpr2Spec > { Smp4W :: new (self , 12) }
#[doc = "Bits 15:17 - Channel 5 sample time selection"]
#[inline (always)] pub fn smp5 (& mut self) -> Smp5W < '_ , Smpr2Spec > { Smp5W :: new (self , 15) }
#[doc = "Bits 18:20 - Channel 6 sample time selection"]
#[inline (always)] pub fn smp6 (& mut self) -> Smp6W < '_ , Smpr2Spec > { Smp6W :: new (self , 18) }
#[doc = "Bits 21:23 - Channel 7 sample time selection"]
#[inline (always)] pub fn smp7 (& mut self) -> Smp7W < '_ , Smpr2Spec > { Smp7W :: new (self , 21) }
#[doc = "Bits 24:26 - Channel 8 sample time selection"]
#[inline (always)] pub fn smp8 (& mut self) -> Smp8W < '_ , Smpr2Spec > { Smp8W :: new (self , 24) }
#[doc = "Bits 27:29 - Channel 9 sample time selection"]
#[inline (always)] pub fn smp9 (& mut self) -> Smp9W < '_ , Smpr2Spec > { Smp9W :: new (self , 27) } }
#[doc = "sample time register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`smpr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smpr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Smpr2Spec ; impl crate :: RegisterSpec for Smpr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`smpr2::R`](R) reader structure"] impl crate :: Readable for Smpr2Spec { }
#[doc = "`write(|w| ..)` method takes [`smpr2::W`](W) writer structure"] impl crate :: Writable for Smpr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SMPR2 to value 0"] impl crate :: Resettable for Smpr2Spec { } }
#[doc = "JOFR1 (rw) register accessor: injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jofr1`] module"]
#[doc (alias = "JOFR1")] pub type Jofr1 = crate :: Reg < jofr1 :: Jofr1Spec > ;
#[doc = "injected channel data offset register x"] pub mod jofr1 {
#[doc = "Register `JOFR1` reader"] pub type R = crate :: R < Jofr1Spec > ;
#[doc = "Register `JOFR1` writer"] pub type W = crate :: W < Jofr1Spec > ;
#[doc = "Field `JOFFSET1` reader - Data offset for injected channel x"] pub type Joffset1R = crate :: FieldReader < u16 > ;
#[doc = "Field `JOFFSET1` writer - Data offset for injected channel x"] pub type Joffset1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset1 (& self) -> Joffset1R { Joffset1R :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset1 (& mut self) -> Joffset1W < '_ , Jofr1Spec > { Joffset1W :: new (self , 0) } }
#[doc = "injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jofr1Spec ; impl crate :: RegisterSpec for Jofr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jofr1::R`](R) reader structure"] impl crate :: Readable for Jofr1Spec { }
#[doc = "`write(|w| ..)` method takes [`jofr1::W`](W) writer structure"] impl crate :: Writable for Jofr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets JOFR1 to value 0"] impl crate :: Resettable for Jofr1Spec { } }
#[doc = "JOFR2 (rw) register accessor: injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jofr2`] module"]
#[doc (alias = "JOFR2")] pub type Jofr2 = crate :: Reg < jofr2 :: Jofr2Spec > ;
#[doc = "injected channel data offset register x"] pub mod jofr2 {
#[doc = "Register `JOFR2` reader"] pub type R = crate :: R < Jofr2Spec > ;
#[doc = "Register `JOFR2` writer"] pub type W = crate :: W < Jofr2Spec > ;
#[doc = "Field `JOFFSET2` reader - Data offset for injected channel x"] pub type Joffset2R = crate :: FieldReader < u16 > ;
#[doc = "Field `JOFFSET2` writer - Data offset for injected channel x"] pub type Joffset2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset2 (& self) -> Joffset2R { Joffset2R :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset2 (& mut self) -> Joffset2W < '_ , Jofr2Spec > { Joffset2W :: new (self , 0) } }
#[doc = "injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jofr2Spec ; impl crate :: RegisterSpec for Jofr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jofr2::R`](R) reader structure"] impl crate :: Readable for Jofr2Spec { }
#[doc = "`write(|w| ..)` method takes [`jofr2::W`](W) writer structure"] impl crate :: Writable for Jofr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets JOFR2 to value 0"] impl crate :: Resettable for Jofr2Spec { } }
#[doc = "JOFR3 (rw) register accessor: injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jofr3`] module"]
#[doc (alias = "JOFR3")] pub type Jofr3 = crate :: Reg < jofr3 :: Jofr3Spec > ;
#[doc = "injected channel data offset register x"] pub mod jofr3 {
#[doc = "Register `JOFR3` reader"] pub type R = crate :: R < Jofr3Spec > ;
#[doc = "Register `JOFR3` writer"] pub type W = crate :: W < Jofr3Spec > ;
#[doc = "Field `JOFFSET3` reader - Data offset for injected channel x"] pub type Joffset3R = crate :: FieldReader < u16 > ;
#[doc = "Field `JOFFSET3` writer - Data offset for injected channel x"] pub type Joffset3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset3 (& self) -> Joffset3R { Joffset3R :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset3 (& mut self) -> Joffset3W < '_ , Jofr3Spec > { Joffset3W :: new (self , 0) } }
#[doc = "injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jofr3Spec ; impl crate :: RegisterSpec for Jofr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jofr3::R`](R) reader structure"] impl crate :: Readable for Jofr3Spec { }
#[doc = "`write(|w| ..)` method takes [`jofr3::W`](W) writer structure"] impl crate :: Writable for Jofr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets JOFR3 to value 0"] impl crate :: Resettable for Jofr3Spec { } }
#[doc = "JOFR4 (rw) register accessor: injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jofr4`] module"]
#[doc (alias = "JOFR4")] pub type Jofr4 = crate :: Reg < jofr4 :: Jofr4Spec > ;
#[doc = "injected channel data offset register x"] pub mod jofr4 {
#[doc = "Register `JOFR4` reader"] pub type R = crate :: R < Jofr4Spec > ;
#[doc = "Register `JOFR4` writer"] pub type W = crate :: W < Jofr4Spec > ;
#[doc = "Field `JOFFSET4` reader - Data offset for injected channel x"] pub type Joffset4R = crate :: FieldReader < u16 > ;
#[doc = "Field `JOFFSET4` writer - Data offset for injected channel x"] pub type Joffset4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset4 (& self) -> Joffset4R { Joffset4R :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset4 (& mut self) -> Joffset4W < '_ , Jofr4Spec > { Joffset4W :: new (self , 0) } }
#[doc = "injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jofr4Spec ; impl crate :: RegisterSpec for Jofr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jofr4::R`](R) reader structure"] impl crate :: Readable for Jofr4Spec { }
#[doc = "`write(|w| ..)` method takes [`jofr4::W`](W) writer structure"] impl crate :: Writable for Jofr4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets JOFR4 to value 0"] impl crate :: Resettable for Jofr4Spec { } }
#[doc = "HTR (rw) register accessor: watchdog higher threshold register\n\nYou can [`read`](crate::Reg::read) this register and get [`htr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`htr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@htr`] module"]
#[doc (alias = "HTR")] pub type Htr = crate :: Reg < htr :: HtrSpec > ;
#[doc = "watchdog higher threshold register"] pub mod htr {
#[doc = "Register `HTR` reader"] pub type R = crate :: R < HtrSpec > ;
#[doc = "Register `HTR` writer"] pub type W = crate :: W < HtrSpec > ;
#[doc = "Field `HT` reader - Analog watchdog higher threshold"] pub type HtR = crate :: FieldReader < u16 > ;
#[doc = "Field `HT` writer - Analog watchdog higher threshold"] pub type HtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - Analog watchdog higher threshold"]
#[inline (always)] pub fn ht (& self) -> HtR { HtR :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - Analog watchdog higher threshold"]
#[inline (always)] pub fn ht (& mut self) -> HtW < '_ , HtrSpec > { HtW :: new (self , 0) } }
#[doc = "watchdog higher threshold register\n\nYou can [`read`](crate::Reg::read) this register and get [`htr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`htr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct HtrSpec ; impl crate :: RegisterSpec for HtrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`htr::R`](R) reader structure"] impl crate :: Readable for HtrSpec { }
#[doc = "`write(|w| ..)` method takes [`htr::W`](W) writer structure"] impl crate :: Writable for HtrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets HTR to value 0x0fff"] impl crate :: Resettable for HtrSpec { const RESET_VALUE : u32 = 0x0fff ; } }
#[doc = "LTR (rw) register accessor: watchdog lower threshold register\n\nYou can [`read`](crate::Reg::read) this register and get [`ltr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ltr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ltr`] module"]
#[doc (alias = "LTR")] pub type Ltr = crate :: Reg < ltr :: LtrSpec > ;
#[doc = "watchdog lower threshold register"] pub mod ltr {
#[doc = "Register `LTR` reader"] pub type R = crate :: R < LtrSpec > ;
#[doc = "Register `LTR` writer"] pub type W = crate :: W < LtrSpec > ;
#[doc = "Field `LT` reader - Analog watchdog lower threshold"] pub type LtR = crate :: FieldReader < u16 > ;
#[doc = "Field `LT` writer - Analog watchdog lower threshold"] pub type LtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - Analog watchdog lower threshold"]
#[inline (always)] pub fn lt (& self) -> LtR { LtR :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - Analog watchdog lower threshold"]
#[inline (always)] pub fn lt (& mut self) -> LtW < '_ , LtrSpec > { LtW :: new (self , 0) } }
#[doc = "watchdog lower threshold register\n\nYou can [`read`](crate::Reg::read) this register and get [`ltr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ltr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct LtrSpec ; impl crate :: RegisterSpec for LtrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ltr::R`](R) reader structure"] impl crate :: Readable for LtrSpec { }
#[doc = "`write(|w| ..)` method takes [`ltr::W`](W) writer structure"] impl crate :: Writable for LtrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets LTR to value 0"] impl crate :: Resettable for LtrSpec { } }
#[doc = "SQR1 (rw) register accessor: regular sequence register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`sqr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sqr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sqr1`] module"]
#[doc (alias = "SQR1")] pub type Sqr1 = crate :: Reg < sqr1 :: Sqr1Spec > ;
#[doc = "regular sequence register 1"] pub mod sqr1 {
#[doc = "Register `SQR1` reader"] pub type R = crate :: R < Sqr1Spec > ;
#[doc = "Register `SQR1` writer"] pub type W = crate :: W < Sqr1Spec > ;
#[doc = "Field `SQ13` reader - 13th conversion in regular sequence"] pub type Sq13R = crate :: FieldReader ;
#[doc = "Field `SQ13` writer - 13th conversion in regular sequence"] pub type Sq13W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ14` reader - 14th conversion in regular sequence"] pub type Sq14R = crate :: FieldReader ;
#[doc = "Field `SQ14` writer - 14th conversion in regular sequence"] pub type Sq14W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ15` reader - 15th conversion in regular sequence"] pub type Sq15R = crate :: FieldReader ;
#[doc = "Field `SQ15` writer - 15th conversion in regular sequence"] pub type Sq15W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ16` reader - 16th conversion in regular sequence"] pub type Sq16R = crate :: FieldReader ;
#[doc = "Field `SQ16` writer - 16th conversion in regular sequence"] pub type Sq16W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `L` reader - Regular channel sequence length"] pub type LR = crate :: FieldReader ;
#[doc = "Field `L` writer - Regular channel sequence length"] pub type LW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ; impl R {
#[doc = "Bits 0:4 - 13th conversion in regular sequence"]
#[inline (always)] pub fn sq13 (& self) -> Sq13R { Sq13R :: new ((self . bits & 0x1f) as u8) }
#[doc = "Bits 5:9 - 14th conversion in regular sequence"]
#[inline (always)] pub fn sq14 (& self) -> Sq14R { Sq14R :: new (((self . bits >> 5) & 0x1f) as u8) }
#[doc = "Bits 10:14 - 15th conversion in regular sequence"]
#[inline (always)] pub fn sq15 (& self) -> Sq15R { Sq15R :: new (((self . bits >> 10) & 0x1f) as u8) }
#[doc = "Bits 15:19 - 16th conversion in regular sequence"]
#[inline (always)] pub fn sq16 (& self) -> Sq16R { Sq16R :: new (((self . bits >> 15) & 0x1f) as u8) }
#[doc = "Bits 20:23 - Regular channel sequence length"]
#[inline (always)] pub fn l (& self) -> LR { LR :: new (((self . bits >> 20) & 0x0f) as u8) } } impl W {
#[doc = "Bits 0:4 - 13th conversion in regular sequence"]
#[inline (always)] pub fn sq13 (& mut self) -> Sq13W < '_ , Sqr1Spec > { Sq13W :: new (self , 0) }
#[doc = "Bits 5:9 - 14th conversion in regular sequence"]
#[inline (always)] pub fn sq14 (& mut self) -> Sq14W < '_ , Sqr1Spec > { Sq14W :: new (self , 5) }
#[doc = "Bits 10:14 - 15th conversion in regular sequence"]
#[inline (always)] pub fn sq15 (& mut self) -> Sq15W < '_ , Sqr1Spec > { Sq15W :: new (self , 10) }
#[doc = "Bits 15:19 - 16th conversion in regular sequence"]
#[inline (always)] pub fn sq16 (& mut self) -> Sq16W < '_ , Sqr1Spec > { Sq16W :: new (self , 15) }
#[doc = "Bits 20:23 - Regular channel sequence length"]
#[inline (always)] pub fn l (& mut self) -> LW < '_ , Sqr1Spec > { LW :: new (self , 20) } }
#[doc = "regular sequence register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`sqr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sqr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Sqr1Spec ; impl crate :: RegisterSpec for Sqr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sqr1::R`](R) reader structure"] impl crate :: Readable for Sqr1Spec { }
#[doc = "`write(|w| ..)` method takes [`sqr1::W`](W) writer structure"] impl crate :: Writable for Sqr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SQR1 to value 0"] impl crate :: Resettable for Sqr1Spec { } }
#[doc = "SQR2 (rw) register accessor: regular sequence register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`sqr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sqr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sqr2`] module"]
#[doc (alias = "SQR2")] pub type Sqr2 = crate :: Reg < sqr2 :: Sqr2Spec > ;
#[doc = "regular sequence register 2"] pub mod sqr2 {
#[doc = "Register `SQR2` reader"] pub type R = crate :: R < Sqr2Spec > ;
#[doc = "Register `SQR2` writer"] pub type W = crate :: W < Sqr2Spec > ;
#[doc = "Field `SQ7` reader - 7th conversion in regular sequence"] pub type Sq7R = crate :: FieldReader ;
#[doc = "Field `SQ7` writer - 7th conversion in regular sequence"] pub type Sq7W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ8` reader - 8th conversion in regular sequence"] pub type Sq8R = crate :: FieldReader ;
#[doc = "Field `SQ8` writer - 8th conversion in regular sequence"] pub type Sq8W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ9` reader - 9th conversion in regular sequence"] pub type Sq9R = crate :: FieldReader ;
#[doc = "Field `SQ9` writer - 9th conversion in regular sequence"] pub type Sq9W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ10` reader - 10th conversion in regular sequence"] pub type Sq10R = crate :: FieldReader ;
#[doc = "Field `SQ10` writer - 10th conversion in regular sequence"] pub type Sq10W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ11` reader - 11th conversion in regular sequence"] pub type Sq11R = crate :: FieldReader ;
#[doc = "Field `SQ11` writer - 11th conversion in regular sequence"] pub type Sq11W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ12` reader - 12th conversion in regular sequence"] pub type Sq12R = crate :: FieldReader ;
#[doc = "Field `SQ12` writer - 12th conversion in regular sequence"] pub type Sq12W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ; impl R {
#[doc = "Bits 0:4 - 7th conversion in regular sequence"]
#[inline (always)] pub fn sq7 (& self) -> Sq7R { Sq7R :: new ((self . bits & 0x1f) as u8) }
#[doc = "Bits 5:9 - 8th conversion in regular sequence"]
#[inline (always)] pub fn sq8 (& self) -> Sq8R { Sq8R :: new (((self . bits >> 5) & 0x1f) as u8) }
#[doc = "Bits 10:14 - 9th conversion in regular sequence"]
#[inline (always)] pub fn sq9 (& self) -> Sq9R { Sq9R :: new (((self . bits >> 10) & 0x1f) as u8) }
#[doc = "Bits 15:19 - 10th conversion in regular sequence"]
#[inline (always)] pub fn sq10 (& self) -> Sq10R { Sq10R :: new (((self . bits >> 15) & 0x1f) as u8) }
#[doc = "Bits 20:24 - 11th conversion in regular sequence"]
#[inline (always)] pub fn sq11 (& self) -> Sq11R { Sq11R :: new (((self . bits >> 20) & 0x1f) as u8) }
#[doc = "Bits 25:29 - 12th conversion in regular sequence"]
#[inline (always)] pub fn sq12 (& self) -> Sq12R { Sq12R :: new (((self . bits >> 25) & 0x1f) as u8) } } impl W {
#[doc = "Bits 0:4 - 7th conversion in regular sequence"]
#[inline (always)] pub fn sq7 (& mut self) -> Sq7W < '_ , Sqr2Spec > { Sq7W :: new (self , 0) }
#[doc = "Bits 5:9 - 8th conversion in regular sequence"]
#[inline (always)] pub fn sq8 (& mut self) -> Sq8W < '_ , Sqr2Spec > { Sq8W :: new (self , 5) }
#[doc = "Bits 10:14 - 9th conversion in regular sequence"]
#[inline (always)] pub fn sq9 (& mut self) -> Sq9W < '_ , Sqr2Spec > { Sq9W :: new (self , 10) }
#[doc = "Bits 15:19 - 10th conversion in regular sequence"]
#[inline (always)] pub fn sq10 (& mut self) -> Sq10W < '_ , Sqr2Spec > { Sq10W :: new (self , 15) }
#[doc = "Bits 20:24 - 11th conversion in regular sequence"]
#[inline (always)] pub fn sq11 (& mut self) -> Sq11W < '_ , Sqr2Spec > { Sq11W :: new (self , 20) }
#[doc = "Bits 25:29 - 12th conversion in regular sequence"]
#[inline (always)] pub fn sq12 (& mut self) -> Sq12W < '_ , Sqr2Spec > { Sq12W :: new (self , 25) } }
#[doc = "regular sequence register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`sqr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sqr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Sqr2Spec ; impl crate :: RegisterSpec for Sqr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sqr2::R`](R) reader structure"] impl crate :: Readable for Sqr2Spec { }
#[doc = "`write(|w| ..)` method takes [`sqr2::W`](W) writer structure"] impl crate :: Writable for Sqr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SQR2 to value 0"] impl crate :: Resettable for Sqr2Spec { } }
#[doc = "SQR3 (rw) register accessor: regular sequence register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`sqr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sqr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sqr3`] module"]
#[doc (alias = "SQR3")] pub type Sqr3 = crate :: Reg < sqr3 :: Sqr3Spec > ;
#[doc = "regular sequence register 3"] pub mod sqr3 {
#[doc = "Register `SQR3` reader"] pub type R = crate :: R < Sqr3Spec > ;
#[doc = "Register `SQR3` writer"] pub type W = crate :: W < Sqr3Spec > ;
#[doc = "Field `SQ1` reader - 1st conversion in regular sequence"] pub type Sq1R = crate :: FieldReader ;
#[doc = "Field `SQ1` writer - 1st conversion in regular sequence"] pub type Sq1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ2` reader - 2nd conversion in regular sequence"] pub type Sq2R = crate :: FieldReader ;
#[doc = "Field `SQ2` writer - 2nd conversion in regular sequence"] pub type Sq2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ3` reader - 3rd conversion in regular sequence"] pub type Sq3R = crate :: FieldReader ;
#[doc = "Field `SQ3` writer - 3rd conversion in regular sequence"] pub type Sq3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ4` reader - 4th conversion in regular sequence"] pub type Sq4R = crate :: FieldReader ;
#[doc = "Field `SQ4` writer - 4th conversion in regular sequence"] pub type Sq4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ5` reader - 5th conversion in regular sequence"] pub type Sq5R = crate :: FieldReader ;
#[doc = "Field `SQ5` writer - 5th conversion in regular sequence"] pub type Sq5W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ6` reader - 6th conversion in regular sequence"] pub type Sq6R = crate :: FieldReader ;
#[doc = "Field `SQ6` writer - 6th conversion in regular sequence"] pub type Sq6W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ; impl R {
#[doc = "Bits 0:4 - 1st conversion in regular sequence"]
#[inline (always)] pub fn sq1 (& self) -> Sq1R { Sq1R :: new ((self . bits & 0x1f) as u8) }
#[doc = "Bits 5:9 - 2nd conversion in regular sequence"]
#[inline (always)] pub fn sq2 (& self) -> Sq2R { Sq2R :: new (((self . bits >> 5) & 0x1f) as u8) }
#[doc = "Bits 10:14 - 3rd conversion in regular sequence"]
#[inline (always)] pub fn sq3 (& self) -> Sq3R { Sq3R :: new (((self . bits >> 10) & 0x1f) as u8) }
#[doc = "Bits 15:19 - 4th conversion in regular sequence"]
#[inline (always)] pub fn sq4 (& self) -> Sq4R { Sq4R :: new (((self . bits >> 15) & 0x1f) as u8) }
#[doc = "Bits 20:24 - 5th conversion in regular sequence"]
#[inline (always)] pub fn sq5 (& self) -> Sq5R { Sq5R :: new (((self . bits >> 20) & 0x1f) as u8) }
#[doc = "Bits 25:29 - 6th conversion in regular sequence"]
#[inline (always)] pub fn sq6 (& self) -> Sq6R { Sq6R :: new (((self . bits >> 25) & 0x1f) as u8) } } impl W {
#[doc = "Bits 0:4 - 1st conversion in regular sequence"]
#[inline (always)] pub fn sq1 (& mut self) -> Sq1W < '_ , Sqr3Spec > { Sq1W :: new (self , 0) }
#[doc = "Bits 5:9 - 2nd conversion in regular sequence"]
#[inline (always)] pub fn sq2 (& mut self) -> Sq2W < '_ , Sqr3Spec > { Sq2W :: new (self , 5) }
#[doc = "Bits 10:14 - 3rd conversion in regular sequence"]
#[inline (always)] pub fn sq3 (& mut self) -> Sq3W < '_ , Sqr3Spec > { Sq3W :: new (self , 10) }
#[doc = "Bits 15:19 - 4th conversion in regular sequence"]
#[inline (always)] pub fn sq4 (& mut self) -> Sq4W < '_ , Sqr3Spec > { Sq4W :: new (self , 15) }
#[doc = "Bits 20:24 - 5th conversion in regular sequence"]
#[inline (always)] pub fn sq5 (& mut self) -> Sq5W < '_ , Sqr3Spec > { Sq5W :: new (self , 20) }
#[doc = "Bits 25:29 - 6th conversion in regular sequence"]
#[inline (always)] pub fn sq6 (& mut self) -> Sq6W < '_ , Sqr3Spec > { Sq6W :: new (self , 25) } }
#[doc = "regular sequence register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`sqr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sqr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Sqr3Spec ; impl crate :: RegisterSpec for Sqr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sqr3::R`](R) reader structure"] impl crate :: Readable for Sqr3Spec { }
#[doc = "`write(|w| ..)` method takes [`sqr3::W`](W) writer structure"] impl crate :: Writable for Sqr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SQR3 to value 0"] impl crate :: Resettable for Sqr3Spec { } }
#[doc = "JSQR (rw) register accessor: injected sequence register\n\nYou can [`read`](crate::Reg::read) this register and get [`jsqr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jsqr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jsqr`] module"]
#[doc (alias = "JSQR")] pub type Jsqr = crate :: Reg < jsqr :: JsqrSpec > ;
#[doc = "injected sequence register"] pub mod jsqr {
#[doc = "Register `JSQR` reader"] pub type R = crate :: R < JsqrSpec > ;
#[doc = "Register `JSQR` writer"] pub type W = crate :: W < JsqrSpec > ;
#[doc = "Field `JSQ1` reader - 1st conversion in injected sequence"] pub type Jsq1R = crate :: FieldReader ;
#[doc = "Field `JSQ1` writer - 1st conversion in injected sequence"] pub type Jsq1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `JSQ2` reader - 2nd conversion in injected sequence"] pub type Jsq2R = crate :: FieldReader ;
#[doc = "Field `JSQ2` writer - 2nd conversion in injected sequence"] pub type Jsq2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `JSQ3` reader - 3rd conversion in injected sequence"] pub type Jsq3R = crate :: FieldReader ;
#[doc = "Field `JSQ3` writer - 3rd conversion in injected sequence"] pub type Jsq3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `JSQ4` reader - 4th conversion in injected sequence"] pub type Jsq4R = crate :: FieldReader ;
#[doc = "Field `JSQ4` writer - 4th conversion in injected sequence"] pub type Jsq4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `JL` reader - Injected sequence length"] pub type JlR = crate :: FieldReader ;
#[doc = "Field `JL` writer - Injected sequence length"] pub type JlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:4 - 1st conversion in injected sequence"]
#[inline (always)] pub fn jsq1 (& self) -> Jsq1R { Jsq1R :: new ((self . bits & 0x1f) as u8) }
#[doc = "Bits 5:9 - 2nd conversion in injected sequence"]
#[inline (always)] pub fn jsq2 (& self) -> Jsq2R { Jsq2R :: new (((self . bits >> 5) & 0x1f) as u8) }
#[doc = "Bits 10:14 - 3rd conversion in injected sequence"]
#[inline (always)] pub fn jsq3 (& self) -> Jsq3R { Jsq3R :: new (((self . bits >> 10) & 0x1f) as u8) }
#[doc = "Bits 15:19 - 4th conversion in injected sequence"]
#[inline (always)] pub fn jsq4 (& self) -> Jsq4R { Jsq4R :: new (((self . bits >> 15) & 0x1f) as u8) }
#[doc = "Bits 20:21 - Injected sequence length"]
#[inline (always)] pub fn jl (& self) -> JlR { JlR :: new (((self . bits >> 20) & 3) as u8) } } impl W {
#[doc = "Bits 0:4 - 1st conversion in injected sequence"]
#[inline (always)] pub fn jsq1 (& mut self) -> Jsq1W < '_ , JsqrSpec > { Jsq1W :: new (self , 0) }
#[doc = "Bits 5:9 - 2nd conversion in injected sequence"]
#[inline (always)] pub fn jsq2 (& mut self) -> Jsq2W < '_ , JsqrSpec > { Jsq2W :: new (self , 5) }
#[doc = "Bits 10:14 - 3rd conversion in injected sequence"]
#[inline (always)] pub fn jsq3 (& mut self) -> Jsq3W < '_ , JsqrSpec > { Jsq3W :: new (self , 10) }
#[doc = "Bits 15:19 - 4th conversion in injected sequence"]
#[inline (always)] pub fn jsq4 (& mut self) -> Jsq4W < '_ , JsqrSpec > { Jsq4W :: new (self , 15) }
#[doc = "Bits 20:21 - Injected sequence length"]
#[inline (always)] pub fn jl (& mut self) -> JlW < '_ , JsqrSpec > { JlW :: new (self , 20) } }
#[doc = "injected sequence register\n\nYou can [`read`](crate::Reg::read) this register and get [`jsqr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jsqr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct JsqrSpec ; impl crate :: RegisterSpec for JsqrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jsqr::R`](R) reader structure"] impl crate :: Readable for JsqrSpec { }
#[doc = "`write(|w| ..)` method takes [`jsqr::W`](W) writer structure"] impl crate :: Writable for JsqrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets JSQR to value 0"] impl crate :: Resettable for JsqrSpec { } }
#[doc = "JDR1 (r) register accessor: injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr1::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jdr1`] module"]
#[doc (alias = "JDR1")] pub type Jdr1 = crate :: Reg < jdr1 :: Jdr1Spec > ;
#[doc = "injected data register x"] pub mod jdr1 {
#[doc = "Register `JDR1` reader"] pub type R = crate :: R < Jdr1Spec > ;
#[doc = "Field `JDATA` reader - Injected data"] pub type JdataR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - Injected data"]
#[inline (always)] pub fn jdata (& self) -> JdataR { JdataR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jdr1Spec ; impl crate :: RegisterSpec for Jdr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jdr1::R`](R) reader structure"] impl crate :: Readable for Jdr1Spec { }
#[doc = "`reset()` method sets JDR1 to value 0"] impl crate :: Resettable for Jdr1Spec { } }
#[doc = "JDR2 (r) register accessor: injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr2::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jdr2`] module"]
#[doc (alias = "JDR2")] pub type Jdr2 = crate :: Reg < jdr2 :: Jdr2Spec > ;
#[doc = "injected data register x"] pub mod jdr2 {
#[doc = "Register `JDR2` reader"] pub type R = crate :: R < Jdr2Spec > ;
#[doc = "Field `JDATA` reader - Injected data"] pub type JdataR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - Injected data"]
#[inline (always)] pub fn jdata (& self) -> JdataR { JdataR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr2::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jdr2Spec ; impl crate :: RegisterSpec for Jdr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jdr2::R`](R) reader structure"] impl crate :: Readable for Jdr2Spec { }
#[doc = "`reset()` method sets JDR2 to value 0"] impl crate :: Resettable for Jdr2Spec { } }
#[doc = "JDR3 (r) register accessor: injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr3::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jdr3`] module"]
#[doc (alias = "JDR3")] pub type Jdr3 = crate :: Reg < jdr3 :: Jdr3Spec > ;
#[doc = "injected data register x"] pub mod jdr3 {
#[doc = "Register `JDR3` reader"] pub type R = crate :: R < Jdr3Spec > ;
#[doc = "Field `JDATA` reader - Injected data"] pub type JdataR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - Injected data"]
#[inline (always)] pub fn jdata (& self) -> JdataR { JdataR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr3::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jdr3Spec ; impl crate :: RegisterSpec for Jdr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jdr3::R`](R) reader structure"] impl crate :: Readable for Jdr3Spec { }
#[doc = "`reset()` method sets JDR3 to value 0"] impl crate :: Resettable for Jdr3Spec { } }
#[doc = "JDR4 (r) register accessor: injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr4::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jdr4`] module"]
#[doc (alias = "JDR4")] pub type Jdr4 = crate :: Reg < jdr4 :: Jdr4Spec > ;
#[doc = "injected data register x"] pub mod jdr4 {
#[doc = "Register `JDR4` reader"] pub type R = crate :: R < Jdr4Spec > ;
#[doc = "Field `JDATA` reader - Injected data"] pub type JdataR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - Injected data"]
#[inline (always)] pub fn jdata (& self) -> JdataR { JdataR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr4::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jdr4Spec ; impl crate :: RegisterSpec for Jdr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jdr4::R`](R) reader structure"] impl crate :: Readable for Jdr4Spec { }
#[doc = "`reset()` method sets JDR4 to value 0"] impl crate :: Resettable for Jdr4Spec { } }
#[doc = "DR (r) register accessor: regular data register\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr`] module"]
#[doc (alias = "DR")] pub type Dr = crate :: Reg < dr :: DrSpec > ;
#[doc = "regular data register"] pub mod dr {
#[doc = "Register `DR` reader"] pub type R = crate :: R < DrSpec > ;
#[doc = "Field `DATA` reader - Regular data"] pub type DataR = crate :: FieldReader < u16 > ;
#[doc = "Field `ADC2DATA` reader - ADC2 data"] pub type Adc2dataR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - Regular data"]
#[inline (always)] pub fn data (& self) -> DataR { DataR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 16:31 - ADC2 data"]
#[inline (always)] pub fn adc2data (& self) -> Adc2dataR { Adc2dataR :: new (((self . bits >> 16) & 0xffff) as u16) } }
#[doc = "regular data register\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DrSpec ; impl crate :: RegisterSpec for DrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr::R`](R) reader structure"] impl crate :: Readable for DrSpec { }
#[doc = "`reset()` method sets DR to value 0"] impl crate :: Resettable for DrSpec { } } }
#[doc = "Analog to digital converter"] pub type Adc2 = crate :: Periph < adc2 :: RegisterBlock , 0x4001_2800 > ; impl core :: fmt :: Debug for Adc2 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Adc2") . finish () } }
#[doc = "Analog to digital converter"] pub mod adc2 {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { sr : Sr , cr1 : Cr1 , cr2 : Cr2 , smpr1 : Smpr1 , smpr2 : Smpr2 , jofr1 : Jofr1 , jofr2 : Jofr2 , jofr3 : Jofr3 , jofr4 : Jofr4 , htr : Htr , ltr : Ltr , sqr1 : Sqr1 , sqr2 : Sqr2 , sqr3 : Sqr3 , jsqr : Jsqr , jdr1 : Jdr1 , jdr2 : Jdr2 , jdr3 : Jdr3 , jdr4 : Jdr4 , dr : Dr , } impl RegisterBlock {
#[doc = "0x00 - status register"]
#[inline (always)] pub const fn sr (& self) -> & Sr { & self . sr }
#[doc = "0x04 - control register 1"]
#[inline (always)] pub const fn cr1 (& self) -> & Cr1 { & self . cr1 }
#[doc = "0x08 - control register 2"]
#[inline (always)] pub const fn cr2 (& self) -> & Cr2 { & self . cr2 }
#[doc = "0x0c - sample time register 1"]
#[inline (always)] pub const fn smpr1 (& self) -> & Smpr1 { & self . smpr1 }
#[doc = "0x10 - sample time register 2"]
#[inline (always)] pub const fn smpr2 (& self) -> & Smpr2 { & self . smpr2 }
#[doc = "0x14 - injected channel data offset register x"]
#[inline (always)] pub const fn jofr1 (& self) -> & Jofr1 { & self . jofr1 }
#[doc = "0x18 - injected channel data offset register x"]
#[inline (always)] pub const fn jofr2 (& self) -> & Jofr2 { & self . jofr2 }
#[doc = "0x1c - injected channel data offset register x"]
#[inline (always)] pub const fn jofr3 (& self) -> & Jofr3 { & self . jofr3 }
#[doc = "0x20 - injected channel data offset register x"]
#[inline (always)] pub const fn jofr4 (& self) -> & Jofr4 { & self . jofr4 }
#[doc = "0x24 - watchdog higher threshold register"]
#[inline (always)] pub const fn htr (& self) -> & Htr { & self . htr }
#[doc = "0x28 - watchdog lower threshold register"]
#[inline (always)] pub const fn ltr (& self) -> & Ltr { & self . ltr }
#[doc = "0x2c - regular sequence register 1"]
#[inline (always)] pub const fn sqr1 (& self) -> & Sqr1 { & self . sqr1 }
#[doc = "0x30 - regular sequence register 2"]
#[inline (always)] pub const fn sqr2 (& self) -> & Sqr2 { & self . sqr2 }
#[doc = "0x34 - regular sequence register 3"]
#[inline (always)] pub const fn sqr3 (& self) -> & Sqr3 { & self . sqr3 }
#[doc = "0x38 - injected sequence register"]
#[inline (always)] pub const fn jsqr (& self) -> & Jsqr { & self . jsqr }
#[doc = "0x3c - injected data register x"]
#[inline (always)] pub const fn jdr1 (& self) -> & Jdr1 { & self . jdr1 }
#[doc = "0x40 - injected data register x"]
#[inline (always)] pub const fn jdr2 (& self) -> & Jdr2 { & self . jdr2 }
#[doc = "0x44 - injected data register x"]
#[inline (always)] pub const fn jdr3 (& self) -> & Jdr3 { & self . jdr3 }
#[doc = "0x48 - injected data register x"]
#[inline (always)] pub const fn jdr4 (& self) -> & Jdr4 { & self . jdr4 }
#[doc = "0x4c - regular data register"]
#[inline (always)] pub const fn dr (& self) -> & Dr { & self . dr } }
#[doc = "SR (rw) register accessor: status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`] module"]
#[doc (alias = "SR")] pub type Sr = crate :: Reg < sr :: SrSpec > ;
#[doc = "status register"] pub mod sr {
#[doc = "Register `SR` reader"] pub type R = crate :: R < SrSpec > ;
#[doc = "Register `SR` writer"] pub type W = crate :: W < SrSpec > ;
#[doc = "Field `AWD` reader - Analog watchdog flag"] pub type AwdR = crate :: BitReader ;
#[doc = "Field `AWD` writer - Analog watchdog flag"] pub type AwdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EOC` reader - Regular channel end of conversion"] pub type EocR = crate :: BitReader ;
#[doc = "Field `EOC` writer - Regular channel end of conversion"] pub type EocW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `JEOC` reader - Injected channel end of conversion"] pub type JeocR = crate :: BitReader ;
#[doc = "Field `JEOC` writer - Injected channel end of conversion"] pub type JeocW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `JSTRT` reader - Injected channel start flag"] pub type JstrtR = crate :: BitReader ;
#[doc = "Field `JSTRT` writer - Injected channel start flag"] pub type JstrtW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STRT` reader - Regular channel start flag"] pub type StrtR = crate :: BitReader ;
#[doc = "Field `STRT` writer - Regular channel start flag"] pub type StrtW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Analog watchdog flag"]
#[inline (always)] pub fn awd (& self) -> AwdR { AwdR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Regular channel end of conversion"]
#[inline (always)] pub fn eoc (& self) -> EocR { EocR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Injected channel end of conversion"]
#[inline (always)] pub fn jeoc (& self) -> JeocR { JeocR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Injected channel start flag"]
#[inline (always)] pub fn jstrt (& self) -> JstrtR { JstrtR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Regular channel start flag"]
#[inline (always)] pub fn strt (& self) -> StrtR { StrtR :: new (((self . bits >> 4) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Analog watchdog flag"]
#[inline (always)] pub fn awd (& mut self) -> AwdW < '_ , SrSpec > { AwdW :: new (self , 0) }
#[doc = "Bit 1 - Regular channel end of conversion"]
#[inline (always)] pub fn eoc (& mut self) -> EocW < '_ , SrSpec > { EocW :: new (self , 1) }
#[doc = "Bit 2 - Injected channel end of conversion"]
#[inline (always)] pub fn jeoc (& mut self) -> JeocW < '_ , SrSpec > { JeocW :: new (self , 2) }
#[doc = "Bit 3 - Injected channel start flag"]
#[inline (always)] pub fn jstrt (& mut self) -> JstrtW < '_ , SrSpec > { JstrtW :: new (self , 3) }
#[doc = "Bit 4 - Regular channel start flag"]
#[inline (always)] pub fn strt (& mut self) -> StrtW < '_ , SrSpec > { StrtW :: new (self , 4) } }
#[doc = "status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec ; impl crate :: RegisterSpec for SrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate :: Readable for SrSpec { }
#[doc = "`write(|w| ..)` method takes [`sr::W`](W) writer structure"] impl crate :: Writable for SrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR to value 0"] impl crate :: Resettable for SrSpec { } }
#[doc = "CR1 (rw) register accessor: control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr1`] module"]
#[doc (alias = "CR1")] pub type Cr1 = crate :: Reg < cr1 :: Cr1Spec > ;
#[doc = "control register 1"] pub mod cr1 {
#[doc = "Register `CR1` reader"] pub type R = crate :: R < Cr1Spec > ;
#[doc = "Register `CR1` writer"] pub type W = crate :: W < Cr1Spec > ;
#[doc = "Field `AWDCH` reader - Analog watchdog channel select bits"] pub type AwdchR = crate :: FieldReader ;
#[doc = "Field `AWDCH` writer - Analog watchdog channel select bits"] pub type AwdchW < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `EOCIE` reader - Interrupt enable for EOC"] pub type EocieR = crate :: BitReader ;
#[doc = "Field `EOCIE` writer - Interrupt enable for EOC"] pub type EocieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AWDIE` reader - Analog watchdog interrupt enable"] pub type AwdieR = crate :: BitReader ;
#[doc = "Field `AWDIE` writer - Analog watchdog interrupt enable"] pub type AwdieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `JEOCIE` reader - Interrupt enable for injected channels"] pub type JeocieR = crate :: BitReader ;
#[doc = "Field `JEOCIE` writer - Interrupt enable for injected channels"] pub type JeocieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SCAN` reader - Scan mode"] pub type ScanR = crate :: BitReader ;
#[doc = "Field `SCAN` writer - Scan mode"] pub type ScanW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AWDSGL` reader - Enable the watchdog on a single channel in scan mode"] pub type AwdsglR = crate :: BitReader ;
#[doc = "Field `AWDSGL` writer - Enable the watchdog on a single channel in scan mode"] pub type AwdsglW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `JAUTO` reader - Automatic injected group conversion"] pub type JautoR = crate :: BitReader ;
#[doc = "Field `JAUTO` writer - Automatic injected group conversion"] pub type JautoW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DISCEN` reader - Discontinuous mode on regular channels"] pub type DiscenR = crate :: BitReader ;
#[doc = "Field `DISCEN` writer - Discontinuous mode on regular channels"] pub type DiscenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `JDISCEN` reader - Discontinuous mode on injected channels"] pub type JdiscenR = crate :: BitReader ;
#[doc = "Field `JDISCEN` writer - Discontinuous mode on injected channels"] pub type JdiscenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DISCNUM` reader - Discontinuous mode channel count"] pub type DiscnumR = crate :: FieldReader ;
#[doc = "Field `DISCNUM` writer - Discontinuous mode channel count"] pub type DiscnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `JAWDEN` reader - Analog watchdog enable on injected channels"] pub type JawdenR = crate :: BitReader ;
#[doc = "Field `JAWDEN` writer - Analog watchdog enable on injected channels"] pub type JawdenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AWDEN` reader - Analog watchdog enable on regular channels"] pub type AwdenR = crate :: BitReader ;
#[doc = "Field `AWDEN` writer - Analog watchdog enable on regular channels"] pub type AwdenW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:4 - Analog watchdog channel select bits"]
#[inline (always)] pub fn awdch (& self) -> AwdchR { AwdchR :: new ((self . bits & 0x1f) as u8) }
#[doc = "Bit 5 - Interrupt enable for EOC"]
#[inline (always)] pub fn eocie (& self) -> EocieR { EocieR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Analog watchdog interrupt enable"]
#[inline (always)] pub fn awdie (& self) -> AwdieR { AwdieR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Interrupt enable for injected channels"]
#[inline (always)] pub fn jeocie (& self) -> JeocieR { JeocieR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Scan mode"]
#[inline (always)] pub fn scan (& self) -> ScanR { ScanR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Enable the watchdog on a single channel in scan mode"]
#[inline (always)] pub fn awdsgl (& self) -> AwdsglR { AwdsglR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Automatic injected group conversion"]
#[inline (always)] pub fn jauto (& self) -> JautoR { JautoR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Discontinuous mode on regular channels"]
#[inline (always)] pub fn discen (& self) -> DiscenR { DiscenR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Discontinuous mode on injected channels"]
#[inline (always)] pub fn jdiscen (& self) -> JdiscenR { JdiscenR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bits 13:15 - Discontinuous mode channel count"]
#[inline (always)] pub fn discnum (& self) -> DiscnumR { DiscnumR :: new (((self . bits >> 13) & 7) as u8) }
#[doc = "Bit 22 - Analog watchdog enable on injected channels"]
#[inline (always)] pub fn jawden (& self) -> JawdenR { JawdenR :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Analog watchdog enable on regular channels"]
#[inline (always)] pub fn awden (& self) -> AwdenR { AwdenR :: new (((self . bits >> 23) & 1) != 0) } } impl W {
#[doc = "Bits 0:4 - Analog watchdog channel select bits"]
#[inline (always)] pub fn awdch (& mut self) -> AwdchW < '_ , Cr1Spec > { AwdchW :: new (self , 0) }
#[doc = "Bit 5 - Interrupt enable for EOC"]
#[inline (always)] pub fn eocie (& mut self) -> EocieW < '_ , Cr1Spec > { EocieW :: new (self , 5) }
#[doc = "Bit 6 - Analog watchdog interrupt enable"]
#[inline (always)] pub fn awdie (& mut self) -> AwdieW < '_ , Cr1Spec > { AwdieW :: new (self , 6) }
#[doc = "Bit 7 - Interrupt enable for injected channels"]
#[inline (always)] pub fn jeocie (& mut self) -> JeocieW < '_ , Cr1Spec > { JeocieW :: new (self , 7) }
#[doc = "Bit 8 - Scan mode"]
#[inline (always)] pub fn scan (& mut self) -> ScanW < '_ , Cr1Spec > { ScanW :: new (self , 8) }
#[doc = "Bit 9 - Enable the watchdog on a single channel in scan mode"]
#[inline (always)] pub fn awdsgl (& mut self) -> AwdsglW < '_ , Cr1Spec > { AwdsglW :: new (self , 9) }
#[doc = "Bit 10 - Automatic injected group conversion"]
#[inline (always)] pub fn jauto (& mut self) -> JautoW < '_ , Cr1Spec > { JautoW :: new (self , 10) }
#[doc = "Bit 11 - Discontinuous mode on regular channels"]
#[inline (always)] pub fn discen (& mut self) -> DiscenW < '_ , Cr1Spec > { DiscenW :: new (self , 11) }
#[doc = "Bit 12 - Discontinuous mode on injected channels"]
#[inline (always)] pub fn jdiscen (& mut self) -> JdiscenW < '_ , Cr1Spec > { JdiscenW :: new (self , 12) }
#[doc = "Bits 13:15 - Discontinuous mode channel count"]
#[inline (always)] pub fn discnum (& mut self) -> DiscnumW < '_ , Cr1Spec > { DiscnumW :: new (self , 13) }
#[doc = "Bit 22 - Analog watchdog enable on injected channels"]
#[inline (always)] pub fn jawden (& mut self) -> JawdenW < '_ , Cr1Spec > { JawdenW :: new (self , 22) }
#[doc = "Bit 23 - Analog watchdog enable on regular channels"]
#[inline (always)] pub fn awden (& mut self) -> AwdenW < '_ , Cr1Spec > { AwdenW :: new (self , 23) } }
#[doc = "control register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr1Spec ; impl crate :: RegisterSpec for Cr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr1::R`](R) reader structure"] impl crate :: Readable for Cr1Spec { }
#[doc = "`write(|w| ..)` method takes [`cr1::W`](W) writer structure"] impl crate :: Writable for Cr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR1 to value 0"] impl crate :: Resettable for Cr1Spec { } }
#[doc = "CR2 (rw) register accessor: control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr2`] module"]
#[doc (alias = "CR2")] pub type Cr2 = crate :: Reg < cr2 :: Cr2Spec > ;
#[doc = "control register 2"] pub mod cr2 {
#[doc = "Register `CR2` reader"] pub type R = crate :: R < Cr2Spec > ;
#[doc = "Register `CR2` writer"] pub type W = crate :: W < Cr2Spec > ;
#[doc = "Field `ADON` reader - A/D converter ON / OFF"] pub type AdonR = crate :: BitReader ;
#[doc = "Field `ADON` writer - A/D converter ON / OFF"] pub type AdonW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CONT` reader - Continuous conversion"] pub type ContR = crate :: BitReader ;
#[doc = "Field `CONT` writer - Continuous conversion"] pub type ContW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CAL` reader - A/D calibration"] pub type CalR = crate :: BitReader ;
#[doc = "Field `CAL` writer - A/D calibration"] pub type CalW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RSTCAL` reader - Reset calibration"] pub type RstcalR = crate :: BitReader ;
#[doc = "Field `RSTCAL` writer - Reset calibration"] pub type RstcalW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DMA` reader - Direct memory access mode"] pub type DmaR = crate :: BitReader ;
#[doc = "Field `DMA` writer - Direct memory access mode"] pub type DmaW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ALIGN` reader - Data alignment"] pub type AlignR = crate :: BitReader ;
#[doc = "Field `ALIGN` writer - Data alignment"] pub type AlignW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `JEXTSEL` reader - External event select for injected group"] pub type JextselR = crate :: FieldReader ;
#[doc = "Field `JEXTSEL` writer - External event select for injected group"] pub type JextselW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `JEXTTRIG` reader - External trigger conversion mode for injected channels"] pub type JexttrigR = crate :: BitReader ;
#[doc = "Field `JEXTTRIG` writer - External trigger conversion mode for injected channels"] pub type JexttrigW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EXTSEL` reader - External event select for regular group"] pub type ExtselR = crate :: FieldReader ;
#[doc = "Field `EXTSEL` writer - External event select for regular group"] pub type ExtselW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `EXTTRIG` reader - External trigger conversion mode for regular channels"] pub type ExttrigR = crate :: BitReader ;
#[doc = "Field `EXTTRIG` writer - External trigger conversion mode for regular channels"] pub type ExttrigW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `JSWSTART` reader - Start conversion of injected channels"] pub type JswstartR = crate :: BitReader ;
#[doc = "Field `JSWSTART` writer - Start conversion of injected channels"] pub type JswstartW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWSTART` reader - Start conversion of regular channels"] pub type SwstartR = crate :: BitReader ;
#[doc = "Field `SWSTART` writer - Start conversion of regular channels"] pub type SwstartW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TSVREFE` reader - Temperature sensor and VREFINT enable"] pub type TsvrefeR = crate :: BitReader ;
#[doc = "Field `TSVREFE` writer - Temperature sensor and VREFINT enable"] pub type TsvrefeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - A/D converter ON / OFF"]
#[inline (always)] pub fn adon (& self) -> AdonR { AdonR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Continuous conversion"]
#[inline (always)] pub fn cont (& self) -> ContR { ContR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - A/D calibration"]
#[inline (always)] pub fn cal (& self) -> CalR { CalR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Reset calibration"]
#[inline (always)] pub fn rstcal (& self) -> RstcalR { RstcalR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 8 - Direct memory access mode"]
#[inline (always)] pub fn dma (& self) -> DmaR { DmaR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 11 - Data alignment"]
#[inline (always)] pub fn align (& self) -> AlignR { AlignR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:14 - External event select for injected group"]
#[inline (always)] pub fn jextsel (& self) -> JextselR { JextselR :: new (((self . bits >> 12) & 7) as u8) }
#[doc = "Bit 15 - External trigger conversion mode for injected channels"]
#[inline (always)] pub fn jexttrig (& self) -> JexttrigR { JexttrigR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bits 17:19 - External event select for regular group"]
#[inline (always)] pub fn extsel (& self) -> ExtselR { ExtselR :: new (((self . bits >> 17) & 7) as u8) }
#[doc = "Bit 20 - External trigger conversion mode for regular channels"]
#[inline (always)] pub fn exttrig (& self) -> ExttrigR { ExttrigR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Start conversion of injected channels"]
#[inline (always)] pub fn jswstart (& self) -> JswstartR { JswstartR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Start conversion of regular channels"]
#[inline (always)] pub fn swstart (& self) -> SwstartR { SwstartR :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Temperature sensor and VREFINT enable"]
#[inline (always)] pub fn tsvrefe (& self) -> TsvrefeR { TsvrefeR :: new (((self . bits >> 23) & 1) != 0) } } impl W {
#[doc = "Bit 0 - A/D converter ON / OFF"]
#[inline (always)] pub fn adon (& mut self) -> AdonW < '_ , Cr2Spec > { AdonW :: new (self , 0) }
#[doc = "Bit 1 - Continuous conversion"]
#[inline (always)] pub fn cont (& mut self) -> ContW < '_ , Cr2Spec > { ContW :: new (self , 1) }
#[doc = "Bit 2 - A/D calibration"]
#[inline (always)] pub fn cal (& mut self) -> CalW < '_ , Cr2Spec > { CalW :: new (self , 2) }
#[doc = "Bit 3 - Reset calibration"]
#[inline (always)] pub fn rstcal (& mut self) -> RstcalW < '_ , Cr2Spec > { RstcalW :: new (self , 3) }
#[doc = "Bit 8 - Direct memory access mode"]
#[inline (always)] pub fn dma (& mut self) -> DmaW < '_ , Cr2Spec > { DmaW :: new (self , 8) }
#[doc = "Bit 11 - Data alignment"]
#[inline (always)] pub fn align (& mut self) -> AlignW < '_ , Cr2Spec > { AlignW :: new (self , 11) }
#[doc = "Bits 12:14 - External event select for injected group"]
#[inline (always)] pub fn jextsel (& mut self) -> JextselW < '_ , Cr2Spec > { JextselW :: new (self , 12) }
#[doc = "Bit 15 - External trigger conversion mode for injected channels"]
#[inline (always)] pub fn jexttrig (& mut self) -> JexttrigW < '_ , Cr2Spec > { JexttrigW :: new (self , 15) }
#[doc = "Bits 17:19 - External event select for regular group"]
#[inline (always)] pub fn extsel (& mut self) -> ExtselW < '_ , Cr2Spec > { ExtselW :: new (self , 17) }
#[doc = "Bit 20 - External trigger conversion mode for regular channels"]
#[inline (always)] pub fn exttrig (& mut self) -> ExttrigW < '_ , Cr2Spec > { ExttrigW :: new (self , 20) }
#[doc = "Bit 21 - Start conversion of injected channels"]
#[inline (always)] pub fn jswstart (& mut self) -> JswstartW < '_ , Cr2Spec > { JswstartW :: new (self , 21) }
#[doc = "Bit 22 - Start conversion of regular channels"]
#[inline (always)] pub fn swstart (& mut self) -> SwstartW < '_ , Cr2Spec > { SwstartW :: new (self , 22) }
#[doc = "Bit 23 - Temperature sensor and VREFINT enable"]
#[inline (always)] pub fn tsvrefe (& mut self) -> TsvrefeW < '_ , Cr2Spec > { TsvrefeW :: new (self , 23) } }
#[doc = "control register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr2Spec ; impl crate :: RegisterSpec for Cr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr2::R`](R) reader structure"] impl crate :: Readable for Cr2Spec { }
#[doc = "`write(|w| ..)` method takes [`cr2::W`](W) writer structure"] impl crate :: Writable for Cr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR2 to value 0"] impl crate :: Resettable for Cr2Spec { } }
#[doc = "SMPR1 (rw) register accessor: sample time register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`smpr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smpr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@smpr1`] module"]
#[doc (alias = "SMPR1")] pub type Smpr1 = crate :: Reg < smpr1 :: Smpr1Spec > ;
#[doc = "sample time register 1"] pub mod smpr1 {
#[doc = "Register `SMPR1` reader"] pub type R = crate :: R < Smpr1Spec > ;
#[doc = "Register `SMPR1` writer"] pub type W = crate :: W < Smpr1Spec > ;
#[doc = "Field `SMP10` reader - Channel 10 sample time selection"] pub type Smp10R = crate :: FieldReader ;
#[doc = "Field `SMP10` writer - Channel 10 sample time selection"] pub type Smp10W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP11` reader - Channel 11 sample time selection"] pub type Smp11R = crate :: FieldReader ;
#[doc = "Field `SMP11` writer - Channel 11 sample time selection"] pub type Smp11W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP12` reader - Channel 12 sample time selection"] pub type Smp12R = crate :: FieldReader ;
#[doc = "Field `SMP12` writer - Channel 12 sample time selection"] pub type Smp12W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP13` reader - Channel 13 sample time selection"] pub type Smp13R = crate :: FieldReader ;
#[doc = "Field `SMP13` writer - Channel 13 sample time selection"] pub type Smp13W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP14` reader - Channel 14 sample time selection"] pub type Smp14R = crate :: FieldReader ;
#[doc = "Field `SMP14` writer - Channel 14 sample time selection"] pub type Smp14W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP15` reader - Channel 15 sample time selection"] pub type Smp15R = crate :: FieldReader ;
#[doc = "Field `SMP15` writer - Channel 15 sample time selection"] pub type Smp15W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP16` reader - Channel 16 sample time selection"] pub type Smp16R = crate :: FieldReader ;
#[doc = "Field `SMP16` writer - Channel 16 sample time selection"] pub type Smp16W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP17` reader - Channel 17 sample time selection"] pub type Smp17R = crate :: FieldReader ;
#[doc = "Field `SMP17` writer - Channel 17 sample time selection"] pub type Smp17W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bits 0:2 - Channel 10 sample time selection"]
#[inline (always)] pub fn smp10 (& self) -> Smp10R { Smp10R :: new ((self . bits & 7) as u8) }
#[doc = "Bits 3:5 - Channel 11 sample time selection"]
#[inline (always)] pub fn smp11 (& self) -> Smp11R { Smp11R :: new (((self . bits >> 3) & 7) as u8) }
#[doc = "Bits 6:8 - Channel 12 sample time selection"]
#[inline (always)] pub fn smp12 (& self) -> Smp12R { Smp12R :: new (((self . bits >> 6) & 7) as u8) }
#[doc = "Bits 9:11 - Channel 13 sample time selection"]
#[inline (always)] pub fn smp13 (& self) -> Smp13R { Smp13R :: new (((self . bits >> 9) & 7) as u8) }
#[doc = "Bits 12:14 - Channel 14 sample time selection"]
#[inline (always)] pub fn smp14 (& self) -> Smp14R { Smp14R :: new (((self . bits >> 12) & 7) as u8) }
#[doc = "Bits 15:17 - Channel 15 sample time selection"]
#[inline (always)] pub fn smp15 (& self) -> Smp15R { Smp15R :: new (((self . bits >> 15) & 7) as u8) }
#[doc = "Bits 18:20 - Channel 16 sample time selection"]
#[inline (always)] pub fn smp16 (& self) -> Smp16R { Smp16R :: new (((self . bits >> 18) & 7) as u8) }
#[doc = "Bits 21:23 - Channel 17 sample time selection"]
#[inline (always)] pub fn smp17 (& self) -> Smp17R { Smp17R :: new (((self . bits >> 21) & 7) as u8) } } impl W {
#[doc = "Bits 0:2 - Channel 10 sample time selection"]
#[inline (always)] pub fn smp10 (& mut self) -> Smp10W < '_ , Smpr1Spec > { Smp10W :: new (self , 0) }
#[doc = "Bits 3:5 - Channel 11 sample time selection"]
#[inline (always)] pub fn smp11 (& mut self) -> Smp11W < '_ , Smpr1Spec > { Smp11W :: new (self , 3) }
#[doc = "Bits 6:8 - Channel 12 sample time selection"]
#[inline (always)] pub fn smp12 (& mut self) -> Smp12W < '_ , Smpr1Spec > { Smp12W :: new (self , 6) }
#[doc = "Bits 9:11 - Channel 13 sample time selection"]
#[inline (always)] pub fn smp13 (& mut self) -> Smp13W < '_ , Smpr1Spec > { Smp13W :: new (self , 9) }
#[doc = "Bits 12:14 - Channel 14 sample time selection"]
#[inline (always)] pub fn smp14 (& mut self) -> Smp14W < '_ , Smpr1Spec > { Smp14W :: new (self , 12) }
#[doc = "Bits 15:17 - Channel 15 sample time selection"]
#[inline (always)] pub fn smp15 (& mut self) -> Smp15W < '_ , Smpr1Spec > { Smp15W :: new (self , 15) }
#[doc = "Bits 18:20 - Channel 16 sample time selection"]
#[inline (always)] pub fn smp16 (& mut self) -> Smp16W < '_ , Smpr1Spec > { Smp16W :: new (self , 18) }
#[doc = "Bits 21:23 - Channel 17 sample time selection"]
#[inline (always)] pub fn smp17 (& mut self) -> Smp17W < '_ , Smpr1Spec > { Smp17W :: new (self , 21) } }
#[doc = "sample time register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`smpr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smpr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Smpr1Spec ; impl crate :: RegisterSpec for Smpr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`smpr1::R`](R) reader structure"] impl crate :: Readable for Smpr1Spec { }
#[doc = "`write(|w| ..)` method takes [`smpr1::W`](W) writer structure"] impl crate :: Writable for Smpr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SMPR1 to value 0"] impl crate :: Resettable for Smpr1Spec { } }
#[doc = "SMPR2 (rw) register accessor: sample time register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`smpr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smpr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@smpr2`] module"]
#[doc (alias = "SMPR2")] pub type Smpr2 = crate :: Reg < smpr2 :: Smpr2Spec > ;
#[doc = "sample time register 2"] pub mod smpr2 {
#[doc = "Register `SMPR2` reader"] pub type R = crate :: R < Smpr2Spec > ;
#[doc = "Register `SMPR2` writer"] pub type W = crate :: W < Smpr2Spec > ;
#[doc = "Field `SMP0` reader - Channel 0 sample time selection"] pub type Smp0R = crate :: FieldReader ;
#[doc = "Field `SMP0` writer - Channel 0 sample time selection"] pub type Smp0W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP1` reader - Channel 1 sample time selection"] pub type Smp1R = crate :: FieldReader ;
#[doc = "Field `SMP1` writer - Channel 1 sample time selection"] pub type Smp1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP2` reader - Channel 2 sample time selection"] pub type Smp2R = crate :: FieldReader ;
#[doc = "Field `SMP2` writer - Channel 2 sample time selection"] pub type Smp2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP3` reader - Channel 3 sample time selection"] pub type Smp3R = crate :: FieldReader ;
#[doc = "Field `SMP3` writer - Channel 3 sample time selection"] pub type Smp3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP4` reader - Channel 4 sample time selection"] pub type Smp4R = crate :: FieldReader ;
#[doc = "Field `SMP4` writer - Channel 4 sample time selection"] pub type Smp4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP5` reader - Channel 5 sample time selection"] pub type Smp5R = crate :: FieldReader ;
#[doc = "Field `SMP5` writer - Channel 5 sample time selection"] pub type Smp5W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP6` reader - Channel 6 sample time selection"] pub type Smp6R = crate :: FieldReader ;
#[doc = "Field `SMP6` writer - Channel 6 sample time selection"] pub type Smp6W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP7` reader - Channel 7 sample time selection"] pub type Smp7R = crate :: FieldReader ;
#[doc = "Field `SMP7` writer - Channel 7 sample time selection"] pub type Smp7W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP8` reader - Channel 8 sample time selection"] pub type Smp8R = crate :: FieldReader ;
#[doc = "Field `SMP8` writer - Channel 8 sample time selection"] pub type Smp8W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SMP9` reader - Channel 9 sample time selection"] pub type Smp9R = crate :: FieldReader ;
#[doc = "Field `SMP9` writer - Channel 9 sample time selection"] pub type Smp9W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ; impl R {
#[doc = "Bits 0:2 - Channel 0 sample time selection"]
#[inline (always)] pub fn smp0 (& self) -> Smp0R { Smp0R :: new ((self . bits & 7) as u8) }
#[doc = "Bits 3:5 - Channel 1 sample time selection"]
#[inline (always)] pub fn smp1 (& self) -> Smp1R { Smp1R :: new (((self . bits >> 3) & 7) as u8) }
#[doc = "Bits 6:8 - Channel 2 sample time selection"]
#[inline (always)] pub fn smp2 (& self) -> Smp2R { Smp2R :: new (((self . bits >> 6) & 7) as u8) }
#[doc = "Bits 9:11 - Channel 3 sample time selection"]
#[inline (always)] pub fn smp3 (& self) -> Smp3R { Smp3R :: new (((self . bits >> 9) & 7) as u8) }
#[doc = "Bits 12:14 - Channel 4 sample time selection"]
#[inline (always)] pub fn smp4 (& self) -> Smp4R { Smp4R :: new (((self . bits >> 12) & 7) as u8) }
#[doc = "Bits 15:17 - Channel 5 sample time selection"]
#[inline (always)] pub fn smp5 (& self) -> Smp5R { Smp5R :: new (((self . bits >> 15) & 7) as u8) }
#[doc = "Bits 18:20 - Channel 6 sample time selection"]
#[inline (always)] pub fn smp6 (& self) -> Smp6R { Smp6R :: new (((self . bits >> 18) & 7) as u8) }
#[doc = "Bits 21:23 - Channel 7 sample time selection"]
#[inline (always)] pub fn smp7 (& self) -> Smp7R { Smp7R :: new (((self . bits >> 21) & 7) as u8) }
#[doc = "Bits 24:26 - Channel 8 sample time selection"]
#[inline (always)] pub fn smp8 (& self) -> Smp8R { Smp8R :: new (((self . bits >> 24) & 7) as u8) }
#[doc = "Bits 27:29 - Channel 9 sample time selection"]
#[inline (always)] pub fn smp9 (& self) -> Smp9R { Smp9R :: new (((self . bits >> 27) & 7) as u8) } } impl W {
#[doc = "Bits 0:2 - Channel 0 sample time selection"]
#[inline (always)] pub fn smp0 (& mut self) -> Smp0W < '_ , Smpr2Spec > { Smp0W :: new (self , 0) }
#[doc = "Bits 3:5 - Channel 1 sample time selection"]
#[inline (always)] pub fn smp1 (& mut self) -> Smp1W < '_ , Smpr2Spec > { Smp1W :: new (self , 3) }
#[doc = "Bits 6:8 - Channel 2 sample time selection"]
#[inline (always)] pub fn smp2 (& mut self) -> Smp2W < '_ , Smpr2Spec > { Smp2W :: new (self , 6) }
#[doc = "Bits 9:11 - Channel 3 sample time selection"]
#[inline (always)] pub fn smp3 (& mut self) -> Smp3W < '_ , Smpr2Spec > { Smp3W :: new (self , 9) }
#[doc = "Bits 12:14 - Channel 4 sample time selection"]
#[inline (always)] pub fn smp4 (& mut self) -> Smp4W < '_ , Smpr2Spec > { Smp4W :: new (self , 12) }
#[doc = "Bits 15:17 - Channel 5 sample time selection"]
#[inline (always)] pub fn smp5 (& mut self) -> Smp5W < '_ , Smpr2Spec > { Smp5W :: new (self , 15) }
#[doc = "Bits 18:20 - Channel 6 sample time selection"]
#[inline (always)] pub fn smp6 (& mut self) -> Smp6W < '_ , Smpr2Spec > { Smp6W :: new (self , 18) }
#[doc = "Bits 21:23 - Channel 7 sample time selection"]
#[inline (always)] pub fn smp7 (& mut self) -> Smp7W < '_ , Smpr2Spec > { Smp7W :: new (self , 21) }
#[doc = "Bits 24:26 - Channel 8 sample time selection"]
#[inline (always)] pub fn smp8 (& mut self) -> Smp8W < '_ , Smpr2Spec > { Smp8W :: new (self , 24) }
#[doc = "Bits 27:29 - Channel 9 sample time selection"]
#[inline (always)] pub fn smp9 (& mut self) -> Smp9W < '_ , Smpr2Spec > { Smp9W :: new (self , 27) } }
#[doc = "sample time register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`smpr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smpr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Smpr2Spec ; impl crate :: RegisterSpec for Smpr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`smpr2::R`](R) reader structure"] impl crate :: Readable for Smpr2Spec { }
#[doc = "`write(|w| ..)` method takes [`smpr2::W`](W) writer structure"] impl crate :: Writable for Smpr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SMPR2 to value 0"] impl crate :: Resettable for Smpr2Spec { } }
#[doc = "JOFR1 (rw) register accessor: injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jofr1`] module"]
#[doc (alias = "JOFR1")] pub type Jofr1 = crate :: Reg < jofr1 :: Jofr1Spec > ;
#[doc = "injected channel data offset register x"] pub mod jofr1 {
#[doc = "Register `JOFR1` reader"] pub type R = crate :: R < Jofr1Spec > ;
#[doc = "Register `JOFR1` writer"] pub type W = crate :: W < Jofr1Spec > ;
#[doc = "Field `JOFFSET1` reader - Data offset for injected channel x"] pub type Joffset1R = crate :: FieldReader < u16 > ;
#[doc = "Field `JOFFSET1` writer - Data offset for injected channel x"] pub type Joffset1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset1 (& self) -> Joffset1R { Joffset1R :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset1 (& mut self) -> Joffset1W < '_ , Jofr1Spec > { Joffset1W :: new (self , 0) } }
#[doc = "injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jofr1Spec ; impl crate :: RegisterSpec for Jofr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jofr1::R`](R) reader structure"] impl crate :: Readable for Jofr1Spec { }
#[doc = "`write(|w| ..)` method takes [`jofr1::W`](W) writer structure"] impl crate :: Writable for Jofr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets JOFR1 to value 0"] impl crate :: Resettable for Jofr1Spec { } }
#[doc = "JOFR2 (rw) register accessor: injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jofr2`] module"]
#[doc (alias = "JOFR2")] pub type Jofr2 = crate :: Reg < jofr2 :: Jofr2Spec > ;
#[doc = "injected channel data offset register x"] pub mod jofr2 {
#[doc = "Register `JOFR2` reader"] pub type R = crate :: R < Jofr2Spec > ;
#[doc = "Register `JOFR2` writer"] pub type W = crate :: W < Jofr2Spec > ;
#[doc = "Field `JOFFSET2` reader - Data offset for injected channel x"] pub type Joffset2R = crate :: FieldReader < u16 > ;
#[doc = "Field `JOFFSET2` writer - Data offset for injected channel x"] pub type Joffset2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset2 (& self) -> Joffset2R { Joffset2R :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset2 (& mut self) -> Joffset2W < '_ , Jofr2Spec > { Joffset2W :: new (self , 0) } }
#[doc = "injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jofr2Spec ; impl crate :: RegisterSpec for Jofr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jofr2::R`](R) reader structure"] impl crate :: Readable for Jofr2Spec { }
#[doc = "`write(|w| ..)` method takes [`jofr2::W`](W) writer structure"] impl crate :: Writable for Jofr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets JOFR2 to value 0"] impl crate :: Resettable for Jofr2Spec { } }
#[doc = "JOFR3 (rw) register accessor: injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jofr3`] module"]
#[doc (alias = "JOFR3")] pub type Jofr3 = crate :: Reg < jofr3 :: Jofr3Spec > ;
#[doc = "injected channel data offset register x"] pub mod jofr3 {
#[doc = "Register `JOFR3` reader"] pub type R = crate :: R < Jofr3Spec > ;
#[doc = "Register `JOFR3` writer"] pub type W = crate :: W < Jofr3Spec > ;
#[doc = "Field `JOFFSET3` reader - Data offset for injected channel x"] pub type Joffset3R = crate :: FieldReader < u16 > ;
#[doc = "Field `JOFFSET3` writer - Data offset for injected channel x"] pub type Joffset3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset3 (& self) -> Joffset3R { Joffset3R :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset3 (& mut self) -> Joffset3W < '_ , Jofr3Spec > { Joffset3W :: new (self , 0) } }
#[doc = "injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jofr3Spec ; impl crate :: RegisterSpec for Jofr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jofr3::R`](R) reader structure"] impl crate :: Readable for Jofr3Spec { }
#[doc = "`write(|w| ..)` method takes [`jofr3::W`](W) writer structure"] impl crate :: Writable for Jofr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets JOFR3 to value 0"] impl crate :: Resettable for Jofr3Spec { } }
#[doc = "JOFR4 (rw) register accessor: injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jofr4`] module"]
#[doc (alias = "JOFR4")] pub type Jofr4 = crate :: Reg < jofr4 :: Jofr4Spec > ;
#[doc = "injected channel data offset register x"] pub mod jofr4 {
#[doc = "Register `JOFR4` reader"] pub type R = crate :: R < Jofr4Spec > ;
#[doc = "Register `JOFR4` writer"] pub type W = crate :: W < Jofr4Spec > ;
#[doc = "Field `JOFFSET4` reader - Data offset for injected channel x"] pub type Joffset4R = crate :: FieldReader < u16 > ;
#[doc = "Field `JOFFSET4` writer - Data offset for injected channel x"] pub type Joffset4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset4 (& self) -> Joffset4R { Joffset4R :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - Data offset for injected channel x"]
#[inline (always)] pub fn joffset4 (& mut self) -> Joffset4W < '_ , Jofr4Spec > { Joffset4W :: new (self , 0) } }
#[doc = "injected channel data offset register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jofr4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jofr4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jofr4Spec ; impl crate :: RegisterSpec for Jofr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jofr4::R`](R) reader structure"] impl crate :: Readable for Jofr4Spec { }
#[doc = "`write(|w| ..)` method takes [`jofr4::W`](W) writer structure"] impl crate :: Writable for Jofr4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets JOFR4 to value 0"] impl crate :: Resettable for Jofr4Spec { } }
#[doc = "HTR (rw) register accessor: watchdog higher threshold register\n\nYou can [`read`](crate::Reg::read) this register and get [`htr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`htr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@htr`] module"]
#[doc (alias = "HTR")] pub type Htr = crate :: Reg < htr :: HtrSpec > ;
#[doc = "watchdog higher threshold register"] pub mod htr {
#[doc = "Register `HTR` reader"] pub type R = crate :: R < HtrSpec > ;
#[doc = "Register `HTR` writer"] pub type W = crate :: W < HtrSpec > ;
#[doc = "Field `HT` reader - Analog watchdog higher threshold"] pub type HtR = crate :: FieldReader < u16 > ;
#[doc = "Field `HT` writer - Analog watchdog higher threshold"] pub type HtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - Analog watchdog higher threshold"]
#[inline (always)] pub fn ht (& self) -> HtR { HtR :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - Analog watchdog higher threshold"]
#[inline (always)] pub fn ht (& mut self) -> HtW < '_ , HtrSpec > { HtW :: new (self , 0) } }
#[doc = "watchdog higher threshold register\n\nYou can [`read`](crate::Reg::read) this register and get [`htr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`htr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct HtrSpec ; impl crate :: RegisterSpec for HtrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`htr::R`](R) reader structure"] impl crate :: Readable for HtrSpec { }
#[doc = "`write(|w| ..)` method takes [`htr::W`](W) writer structure"] impl crate :: Writable for HtrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets HTR to value 0x0fff"] impl crate :: Resettable for HtrSpec { const RESET_VALUE : u32 = 0x0fff ; } }
#[doc = "LTR (rw) register accessor: watchdog lower threshold register\n\nYou can [`read`](crate::Reg::read) this register and get [`ltr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ltr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ltr`] module"]
#[doc (alias = "LTR")] pub type Ltr = crate :: Reg < ltr :: LtrSpec > ;
#[doc = "watchdog lower threshold register"] pub mod ltr {
#[doc = "Register `LTR` reader"] pub type R = crate :: R < LtrSpec > ;
#[doc = "Register `LTR` writer"] pub type W = crate :: W < LtrSpec > ;
#[doc = "Field `LT` reader - Analog watchdog lower threshold"] pub type LtR = crate :: FieldReader < u16 > ;
#[doc = "Field `LT` writer - Analog watchdog lower threshold"] pub type LtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - Analog watchdog lower threshold"]
#[inline (always)] pub fn lt (& self) -> LtR { LtR :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - Analog watchdog lower threshold"]
#[inline (always)] pub fn lt (& mut self) -> LtW < '_ , LtrSpec > { LtW :: new (self , 0) } }
#[doc = "watchdog lower threshold register\n\nYou can [`read`](crate::Reg::read) this register and get [`ltr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ltr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct LtrSpec ; impl crate :: RegisterSpec for LtrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ltr::R`](R) reader structure"] impl crate :: Readable for LtrSpec { }
#[doc = "`write(|w| ..)` method takes [`ltr::W`](W) writer structure"] impl crate :: Writable for LtrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets LTR to value 0"] impl crate :: Resettable for LtrSpec { } }
#[doc = "SQR1 (rw) register accessor: regular sequence register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`sqr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sqr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sqr1`] module"]
#[doc (alias = "SQR1")] pub type Sqr1 = crate :: Reg < sqr1 :: Sqr1Spec > ;
#[doc = "regular sequence register 1"] pub mod sqr1 {
#[doc = "Register `SQR1` reader"] pub type R = crate :: R < Sqr1Spec > ;
#[doc = "Register `SQR1` writer"] pub type W = crate :: W < Sqr1Spec > ;
#[doc = "Field `SQ13` reader - 13th conversion in regular sequence"] pub type Sq13R = crate :: FieldReader ;
#[doc = "Field `SQ13` writer - 13th conversion in regular sequence"] pub type Sq13W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ14` reader - 14th conversion in regular sequence"] pub type Sq14R = crate :: FieldReader ;
#[doc = "Field `SQ14` writer - 14th conversion in regular sequence"] pub type Sq14W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ15` reader - 15th conversion in regular sequence"] pub type Sq15R = crate :: FieldReader ;
#[doc = "Field `SQ15` writer - 15th conversion in regular sequence"] pub type Sq15W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ16` reader - 16th conversion in regular sequence"] pub type Sq16R = crate :: FieldReader ;
#[doc = "Field `SQ16` writer - 16th conversion in regular sequence"] pub type Sq16W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `L` reader - Regular channel sequence length"] pub type LR = crate :: FieldReader ;
#[doc = "Field `L` writer - Regular channel sequence length"] pub type LW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ; impl R {
#[doc = "Bits 0:4 - 13th conversion in regular sequence"]
#[inline (always)] pub fn sq13 (& self) -> Sq13R { Sq13R :: new ((self . bits & 0x1f) as u8) }
#[doc = "Bits 5:9 - 14th conversion in regular sequence"]
#[inline (always)] pub fn sq14 (& self) -> Sq14R { Sq14R :: new (((self . bits >> 5) & 0x1f) as u8) }
#[doc = "Bits 10:14 - 15th conversion in regular sequence"]
#[inline (always)] pub fn sq15 (& self) -> Sq15R { Sq15R :: new (((self . bits >> 10) & 0x1f) as u8) }
#[doc = "Bits 15:19 - 16th conversion in regular sequence"]
#[inline (always)] pub fn sq16 (& self) -> Sq16R { Sq16R :: new (((self . bits >> 15) & 0x1f) as u8) }
#[doc = "Bits 20:23 - Regular channel sequence length"]
#[inline (always)] pub fn l (& self) -> LR { LR :: new (((self . bits >> 20) & 0x0f) as u8) } } impl W {
#[doc = "Bits 0:4 - 13th conversion in regular sequence"]
#[inline (always)] pub fn sq13 (& mut self) -> Sq13W < '_ , Sqr1Spec > { Sq13W :: new (self , 0) }
#[doc = "Bits 5:9 - 14th conversion in regular sequence"]
#[inline (always)] pub fn sq14 (& mut self) -> Sq14W < '_ , Sqr1Spec > { Sq14W :: new (self , 5) }
#[doc = "Bits 10:14 - 15th conversion in regular sequence"]
#[inline (always)] pub fn sq15 (& mut self) -> Sq15W < '_ , Sqr1Spec > { Sq15W :: new (self , 10) }
#[doc = "Bits 15:19 - 16th conversion in regular sequence"]
#[inline (always)] pub fn sq16 (& mut self) -> Sq16W < '_ , Sqr1Spec > { Sq16W :: new (self , 15) }
#[doc = "Bits 20:23 - Regular channel sequence length"]
#[inline (always)] pub fn l (& mut self) -> LW < '_ , Sqr1Spec > { LW :: new (self , 20) } }
#[doc = "regular sequence register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`sqr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sqr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Sqr1Spec ; impl crate :: RegisterSpec for Sqr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sqr1::R`](R) reader structure"] impl crate :: Readable for Sqr1Spec { }
#[doc = "`write(|w| ..)` method takes [`sqr1::W`](W) writer structure"] impl crate :: Writable for Sqr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SQR1 to value 0"] impl crate :: Resettable for Sqr1Spec { } }
#[doc = "SQR2 (rw) register accessor: regular sequence register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`sqr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sqr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sqr2`] module"]
#[doc (alias = "SQR2")] pub type Sqr2 = crate :: Reg < sqr2 :: Sqr2Spec > ;
#[doc = "regular sequence register 2"] pub mod sqr2 {
#[doc = "Register `SQR2` reader"] pub type R = crate :: R < Sqr2Spec > ;
#[doc = "Register `SQR2` writer"] pub type W = crate :: W < Sqr2Spec > ;
#[doc = "Field `SQ7` reader - 7th conversion in regular sequence"] pub type Sq7R = crate :: FieldReader ;
#[doc = "Field `SQ7` writer - 7th conversion in regular sequence"] pub type Sq7W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ8` reader - 8th conversion in regular sequence"] pub type Sq8R = crate :: FieldReader ;
#[doc = "Field `SQ8` writer - 8th conversion in regular sequence"] pub type Sq8W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ9` reader - 9th conversion in regular sequence"] pub type Sq9R = crate :: FieldReader ;
#[doc = "Field `SQ9` writer - 9th conversion in regular sequence"] pub type Sq9W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ10` reader - 10th conversion in regular sequence"] pub type Sq10R = crate :: FieldReader ;
#[doc = "Field `SQ10` writer - 10th conversion in regular sequence"] pub type Sq10W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ11` reader - 11th conversion in regular sequence"] pub type Sq11R = crate :: FieldReader ;
#[doc = "Field `SQ11` writer - 11th conversion in regular sequence"] pub type Sq11W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ12` reader - 12th conversion in regular sequence"] pub type Sq12R = crate :: FieldReader ;
#[doc = "Field `SQ12` writer - 12th conversion in regular sequence"] pub type Sq12W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ; impl R {
#[doc = "Bits 0:4 - 7th conversion in regular sequence"]
#[inline (always)] pub fn sq7 (& self) -> Sq7R { Sq7R :: new ((self . bits & 0x1f) as u8) }
#[doc = "Bits 5:9 - 8th conversion in regular sequence"]
#[inline (always)] pub fn sq8 (& self) -> Sq8R { Sq8R :: new (((self . bits >> 5) & 0x1f) as u8) }
#[doc = "Bits 10:14 - 9th conversion in regular sequence"]
#[inline (always)] pub fn sq9 (& self) -> Sq9R { Sq9R :: new (((self . bits >> 10) & 0x1f) as u8) }
#[doc = "Bits 15:19 - 10th conversion in regular sequence"]
#[inline (always)] pub fn sq10 (& self) -> Sq10R { Sq10R :: new (((self . bits >> 15) & 0x1f) as u8) }
#[doc = "Bits 20:24 - 11th conversion in regular sequence"]
#[inline (always)] pub fn sq11 (& self) -> Sq11R { Sq11R :: new (((self . bits >> 20) & 0x1f) as u8) }
#[doc = "Bits 25:29 - 12th conversion in regular sequence"]
#[inline (always)] pub fn sq12 (& self) -> Sq12R { Sq12R :: new (((self . bits >> 25) & 0x1f) as u8) } } impl W {
#[doc = "Bits 0:4 - 7th conversion in regular sequence"]
#[inline (always)] pub fn sq7 (& mut self) -> Sq7W < '_ , Sqr2Spec > { Sq7W :: new (self , 0) }
#[doc = "Bits 5:9 - 8th conversion in regular sequence"]
#[inline (always)] pub fn sq8 (& mut self) -> Sq8W < '_ , Sqr2Spec > { Sq8W :: new (self , 5) }
#[doc = "Bits 10:14 - 9th conversion in regular sequence"]
#[inline (always)] pub fn sq9 (& mut self) -> Sq9W < '_ , Sqr2Spec > { Sq9W :: new (self , 10) }
#[doc = "Bits 15:19 - 10th conversion in regular sequence"]
#[inline (always)] pub fn sq10 (& mut self) -> Sq10W < '_ , Sqr2Spec > { Sq10W :: new (self , 15) }
#[doc = "Bits 20:24 - 11th conversion in regular sequence"]
#[inline (always)] pub fn sq11 (& mut self) -> Sq11W < '_ , Sqr2Spec > { Sq11W :: new (self , 20) }
#[doc = "Bits 25:29 - 12th conversion in regular sequence"]
#[inline (always)] pub fn sq12 (& mut self) -> Sq12W < '_ , Sqr2Spec > { Sq12W :: new (self , 25) } }
#[doc = "regular sequence register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`sqr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sqr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Sqr2Spec ; impl crate :: RegisterSpec for Sqr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sqr2::R`](R) reader structure"] impl crate :: Readable for Sqr2Spec { }
#[doc = "`write(|w| ..)` method takes [`sqr2::W`](W) writer structure"] impl crate :: Writable for Sqr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SQR2 to value 0"] impl crate :: Resettable for Sqr2Spec { } }
#[doc = "SQR3 (rw) register accessor: regular sequence register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`sqr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sqr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sqr3`] module"]
#[doc (alias = "SQR3")] pub type Sqr3 = crate :: Reg < sqr3 :: Sqr3Spec > ;
#[doc = "regular sequence register 3"] pub mod sqr3 {
#[doc = "Register `SQR3` reader"] pub type R = crate :: R < Sqr3Spec > ;
#[doc = "Register `SQR3` writer"] pub type W = crate :: W < Sqr3Spec > ;
#[doc = "Field `SQ1` reader - 1st conversion in regular sequence"] pub type Sq1R = crate :: FieldReader ;
#[doc = "Field `SQ1` writer - 1st conversion in regular sequence"] pub type Sq1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ2` reader - 2nd conversion in regular sequence"] pub type Sq2R = crate :: FieldReader ;
#[doc = "Field `SQ2` writer - 2nd conversion in regular sequence"] pub type Sq2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ3` reader - 3rd conversion in regular sequence"] pub type Sq3R = crate :: FieldReader ;
#[doc = "Field `SQ3` writer - 3rd conversion in regular sequence"] pub type Sq3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ4` reader - 4th conversion in regular sequence"] pub type Sq4R = crate :: FieldReader ;
#[doc = "Field `SQ4` writer - 4th conversion in regular sequence"] pub type Sq4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ5` reader - 5th conversion in regular sequence"] pub type Sq5R = crate :: FieldReader ;
#[doc = "Field `SQ5` writer - 5th conversion in regular sequence"] pub type Sq5W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `SQ6` reader - 6th conversion in regular sequence"] pub type Sq6R = crate :: FieldReader ;
#[doc = "Field `SQ6` writer - 6th conversion in regular sequence"] pub type Sq6W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ; impl R {
#[doc = "Bits 0:4 - 1st conversion in regular sequence"]
#[inline (always)] pub fn sq1 (& self) -> Sq1R { Sq1R :: new ((self . bits & 0x1f) as u8) }
#[doc = "Bits 5:9 - 2nd conversion in regular sequence"]
#[inline (always)] pub fn sq2 (& self) -> Sq2R { Sq2R :: new (((self . bits >> 5) & 0x1f) as u8) }
#[doc = "Bits 10:14 - 3rd conversion in regular sequence"]
#[inline (always)] pub fn sq3 (& self) -> Sq3R { Sq3R :: new (((self . bits >> 10) & 0x1f) as u8) }
#[doc = "Bits 15:19 - 4th conversion in regular sequence"]
#[inline (always)] pub fn sq4 (& self) -> Sq4R { Sq4R :: new (((self . bits >> 15) & 0x1f) as u8) }
#[doc = "Bits 20:24 - 5th conversion in regular sequence"]
#[inline (always)] pub fn sq5 (& self) -> Sq5R { Sq5R :: new (((self . bits >> 20) & 0x1f) as u8) }
#[doc = "Bits 25:29 - 6th conversion in regular sequence"]
#[inline (always)] pub fn sq6 (& self) -> Sq6R { Sq6R :: new (((self . bits >> 25) & 0x1f) as u8) } } impl W {
#[doc = "Bits 0:4 - 1st conversion in regular sequence"]
#[inline (always)] pub fn sq1 (& mut self) -> Sq1W < '_ , Sqr3Spec > { Sq1W :: new (self , 0) }
#[doc = "Bits 5:9 - 2nd conversion in regular sequence"]
#[inline (always)] pub fn sq2 (& mut self) -> Sq2W < '_ , Sqr3Spec > { Sq2W :: new (self , 5) }
#[doc = "Bits 10:14 - 3rd conversion in regular sequence"]
#[inline (always)] pub fn sq3 (& mut self) -> Sq3W < '_ , Sqr3Spec > { Sq3W :: new (self , 10) }
#[doc = "Bits 15:19 - 4th conversion in regular sequence"]
#[inline (always)] pub fn sq4 (& mut self) -> Sq4W < '_ , Sqr3Spec > { Sq4W :: new (self , 15) }
#[doc = "Bits 20:24 - 5th conversion in regular sequence"]
#[inline (always)] pub fn sq5 (& mut self) -> Sq5W < '_ , Sqr3Spec > { Sq5W :: new (self , 20) }
#[doc = "Bits 25:29 - 6th conversion in regular sequence"]
#[inline (always)] pub fn sq6 (& mut self) -> Sq6W < '_ , Sqr3Spec > { Sq6W :: new (self , 25) } }
#[doc = "regular sequence register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`sqr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sqr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Sqr3Spec ; impl crate :: RegisterSpec for Sqr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sqr3::R`](R) reader structure"] impl crate :: Readable for Sqr3Spec { }
#[doc = "`write(|w| ..)` method takes [`sqr3::W`](W) writer structure"] impl crate :: Writable for Sqr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SQR3 to value 0"] impl crate :: Resettable for Sqr3Spec { } }
#[doc = "JSQR (rw) register accessor: injected sequence register\n\nYou can [`read`](crate::Reg::read) this register and get [`jsqr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jsqr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jsqr`] module"]
#[doc (alias = "JSQR")] pub type Jsqr = crate :: Reg < jsqr :: JsqrSpec > ;
#[doc = "injected sequence register"] pub mod jsqr {
#[doc = "Register `JSQR` reader"] pub type R = crate :: R < JsqrSpec > ;
#[doc = "Register `JSQR` writer"] pub type W = crate :: W < JsqrSpec > ;
#[doc = "Field `JSQ1` reader - 1st conversion in injected sequence"] pub type Jsq1R = crate :: FieldReader ;
#[doc = "Field `JSQ1` writer - 1st conversion in injected sequence"] pub type Jsq1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `JSQ2` reader - 2nd conversion in injected sequence"] pub type Jsq2R = crate :: FieldReader ;
#[doc = "Field `JSQ2` writer - 2nd conversion in injected sequence"] pub type Jsq2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `JSQ3` reader - 3rd conversion in injected sequence"] pub type Jsq3R = crate :: FieldReader ;
#[doc = "Field `JSQ3` writer - 3rd conversion in injected sequence"] pub type Jsq3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `JSQ4` reader - 4th conversion in injected sequence"] pub type Jsq4R = crate :: FieldReader ;
#[doc = "Field `JSQ4` writer - 4th conversion in injected sequence"] pub type Jsq4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `JL` reader - Injected sequence length"] pub type JlR = crate :: FieldReader ;
#[doc = "Field `JL` writer - Injected sequence length"] pub type JlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:4 - 1st conversion in injected sequence"]
#[inline (always)] pub fn jsq1 (& self) -> Jsq1R { Jsq1R :: new ((self . bits & 0x1f) as u8) }
#[doc = "Bits 5:9 - 2nd conversion in injected sequence"]
#[inline (always)] pub fn jsq2 (& self) -> Jsq2R { Jsq2R :: new (((self . bits >> 5) & 0x1f) as u8) }
#[doc = "Bits 10:14 - 3rd conversion in injected sequence"]
#[inline (always)] pub fn jsq3 (& self) -> Jsq3R { Jsq3R :: new (((self . bits >> 10) & 0x1f) as u8) }
#[doc = "Bits 15:19 - 4th conversion in injected sequence"]
#[inline (always)] pub fn jsq4 (& self) -> Jsq4R { Jsq4R :: new (((self . bits >> 15) & 0x1f) as u8) }
#[doc = "Bits 20:21 - Injected sequence length"]
#[inline (always)] pub fn jl (& self) -> JlR { JlR :: new (((self . bits >> 20) & 3) as u8) } } impl W {
#[doc = "Bits 0:4 - 1st conversion in injected sequence"]
#[inline (always)] pub fn jsq1 (& mut self) -> Jsq1W < '_ , JsqrSpec > { Jsq1W :: new (self , 0) }
#[doc = "Bits 5:9 - 2nd conversion in injected sequence"]
#[inline (always)] pub fn jsq2 (& mut self) -> Jsq2W < '_ , JsqrSpec > { Jsq2W :: new (self , 5) }
#[doc = "Bits 10:14 - 3rd conversion in injected sequence"]
#[inline (always)] pub fn jsq3 (& mut self) -> Jsq3W < '_ , JsqrSpec > { Jsq3W :: new (self , 10) }
#[doc = "Bits 15:19 - 4th conversion in injected sequence"]
#[inline (always)] pub fn jsq4 (& mut self) -> Jsq4W < '_ , JsqrSpec > { Jsq4W :: new (self , 15) }
#[doc = "Bits 20:21 - Injected sequence length"]
#[inline (always)] pub fn jl (& mut self) -> JlW < '_ , JsqrSpec > { JlW :: new (self , 20) } }
#[doc = "injected sequence register\n\nYou can [`read`](crate::Reg::read) this register and get [`jsqr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`jsqr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct JsqrSpec ; impl crate :: RegisterSpec for JsqrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jsqr::R`](R) reader structure"] impl crate :: Readable for JsqrSpec { }
#[doc = "`write(|w| ..)` method takes [`jsqr::W`](W) writer structure"] impl crate :: Writable for JsqrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets JSQR to value 0"] impl crate :: Resettable for JsqrSpec { } }
#[doc = "JDR1 (r) register accessor: injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr1::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jdr1`] module"]
#[doc (alias = "JDR1")] pub type Jdr1 = crate :: Reg < jdr1 :: Jdr1Spec > ;
#[doc = "injected data register x"] pub mod jdr1 {
#[doc = "Register `JDR1` reader"] pub type R = crate :: R < Jdr1Spec > ;
#[doc = "Field `JDATA` reader - Injected data"] pub type JdataR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - Injected data"]
#[inline (always)] pub fn jdata (& self) -> JdataR { JdataR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jdr1Spec ; impl crate :: RegisterSpec for Jdr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jdr1::R`](R) reader structure"] impl crate :: Readable for Jdr1Spec { }
#[doc = "`reset()` method sets JDR1 to value 0"] impl crate :: Resettable for Jdr1Spec { } }
#[doc = "JDR2 (r) register accessor: injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr2::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jdr2`] module"]
#[doc (alias = "JDR2")] pub type Jdr2 = crate :: Reg < jdr2 :: Jdr2Spec > ;
#[doc = "injected data register x"] pub mod jdr2 {
#[doc = "Register `JDR2` reader"] pub type R = crate :: R < Jdr2Spec > ;
#[doc = "Field `JDATA` reader - Injected data"] pub type JdataR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - Injected data"]
#[inline (always)] pub fn jdata (& self) -> JdataR { JdataR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr2::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jdr2Spec ; impl crate :: RegisterSpec for Jdr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jdr2::R`](R) reader structure"] impl crate :: Readable for Jdr2Spec { }
#[doc = "`reset()` method sets JDR2 to value 0"] impl crate :: Resettable for Jdr2Spec { } }
#[doc = "JDR3 (r) register accessor: injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr3::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jdr3`] module"]
#[doc (alias = "JDR3")] pub type Jdr3 = crate :: Reg < jdr3 :: Jdr3Spec > ;
#[doc = "injected data register x"] pub mod jdr3 {
#[doc = "Register `JDR3` reader"] pub type R = crate :: R < Jdr3Spec > ;
#[doc = "Field `JDATA` reader - Injected data"] pub type JdataR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - Injected data"]
#[inline (always)] pub fn jdata (& self) -> JdataR { JdataR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr3::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jdr3Spec ; impl crate :: RegisterSpec for Jdr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jdr3::R`](R) reader structure"] impl crate :: Readable for Jdr3Spec { }
#[doc = "`reset()` method sets JDR3 to value 0"] impl crate :: Resettable for Jdr3Spec { } }
#[doc = "JDR4 (r) register accessor: injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr4::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@jdr4`] module"]
#[doc (alias = "JDR4")] pub type Jdr4 = crate :: Reg < jdr4 :: Jdr4Spec > ;
#[doc = "injected data register x"] pub mod jdr4 {
#[doc = "Register `JDR4` reader"] pub type R = crate :: R < Jdr4Spec > ;
#[doc = "Field `JDATA` reader - Injected data"] pub type JdataR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - Injected data"]
#[inline (always)] pub fn jdata (& self) -> JdataR { JdataR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "injected data register x\n\nYou can [`read`](crate::Reg::read) this register and get [`jdr4::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Jdr4Spec ; impl crate :: RegisterSpec for Jdr4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`jdr4::R`](R) reader structure"] impl crate :: Readable for Jdr4Spec { }
#[doc = "`reset()` method sets JDR4 to value 0"] impl crate :: Resettable for Jdr4Spec { } }
#[doc = "DR (r) register accessor: regular data register\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr`] module"]
#[doc (alias = "DR")] pub type Dr = crate :: Reg < dr :: DrSpec > ;
#[doc = "regular data register"] pub mod dr {
#[doc = "Register `DR` reader"] pub type R = crate :: R < DrSpec > ;
#[doc = "Field `DATA` reader - Regular data"] pub type DataR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - Regular data"]
#[inline (always)] pub fn data (& self) -> DataR { DataR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "regular data register\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DrSpec ; impl crate :: RegisterSpec for DrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr::R`](R) reader structure"] impl crate :: Readable for DrSpec { }
#[doc = "`reset()` method sets DR to value 0"] impl crate :: Resettable for DrSpec { } } }
#[doc = "Analog to digital converter"] pub type Adc3 = crate :: Periph < adc2 :: RegisterBlock , 0x4001_3c00 > ; impl core :: fmt :: Debug for Adc3 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Adc3") . finish () } }
#[doc = "Analog to digital converter"] pub use self :: adc2 as adc3 ;
#[doc = "Controller area network"] pub type Can1 = crate :: Periph < can1 :: RegisterBlock , 0x4000_6400 > ; impl core :: fmt :: Debug for Can1 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Can1") . finish () } }
#[doc = "Controller area network"] pub mod can1 {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { can_mcr : CanMcr , can_msr : CanMsr , can_tsr : CanTsr , can_rf0r : CanRf0r , can_rf1r : CanRf1r , can_ier : CanIer , can_esr : CanEsr , can_btr : CanBtr , _reserved8 : [u8 ; 0x0160] , can_ti0r : CanTi0r , can_tdt0r : CanTdt0r , can_tdl0r : CanTdl0r , can_tdh0r : CanTdh0r , can_ti1r : CanTi1r , can_tdt1r : CanTdt1r , can_tdl1r : CanTdl1r , can_tdh1r : CanTdh1r , can_ti2r : CanTi2r , can_tdt2r : CanTdt2r , can_tdl2r : CanTdl2r , can_tdh2r : CanTdh2r , can_ri0r : CanRi0r , can_rdt0r : CanRdt0r , can_rdl0r : CanRdl0r , can_rdh0r : CanRdh0r , can_ri1r : CanRi1r , can_rdt1r : CanRdt1r , can_rdl1r : CanRdl1r , can_rdh1r : CanRdh1r , _reserved28 : [u8 ; 0x30] , can_fmr : CanFmr , can_fm1r : CanFm1r , _reserved30 : [u8 ; 0x04] , can_fs1r : CanFs1r , _reserved31 : [u8 ; 0x04] , can_ffa1r : CanFfa1r , _reserved32 : [u8 ; 0x04] , can_fa1r : CanFa1r , _reserved33 : [u8 ; 0x20] , f0r1 : F0r1 , f0r2 : F0r2 , f1r1 : F1r1 , f1r2 : F1r2 , f2r1 : F2r1 , f2r2 : F2r2 , f3r1 : F3r1 , f3r2 : F3r2 , f4r1 : F4r1 , f4r2 : F4r2 , f5r1 : F5r1 , f5r2 : F5r2 , f6r1 : F6r1 , f6r2 : F6r2 , f7r1 : F7r1 , f7r2 : F7r2 , f8r1 : F8r1 , f8r2 : F8r2 , f9r1 : F9r1 , f9r2 : F9r2 , f10r1 : F10r1 , f10r2 : F10r2 , f11r1 : F11r1 , f11r2 : F11r2 , f12r1 : F12r1 , f12r2 : F12r2 , f13r1 : F13r1 , f13r2 : F13r2 , } impl RegisterBlock {
#[doc = "0x00 - CAN_MCR"]
#[inline (always)] pub const fn can_mcr (& self) -> & CanMcr { & self . can_mcr }
#[doc = "0x04 - CAN_MSR"]
#[inline (always)] pub const fn can_msr (& self) -> & CanMsr { & self . can_msr }
#[doc = "0x08 - CAN_TSR"]
#[inline (always)] pub const fn can_tsr (& self) -> & CanTsr { & self . can_tsr }
#[doc = "0x0c - CAN_RF0R"]
#[inline (always)] pub const fn can_rf0r (& self) -> & CanRf0r { & self . can_rf0r }
#[doc = "0x10 - CAN_RF1R"]
#[inline (always)] pub const fn can_rf1r (& self) -> & CanRf1r { & self . can_rf1r }
#[doc = "0x14 - CAN_IER"]
#[inline (always)] pub const fn can_ier (& self) -> & CanIer { & self . can_ier }
#[doc = "0x18 - CAN_ESR"]
#[inline (always)] pub const fn can_esr (& self) -> & CanEsr { & self . can_esr }
#[doc = "0x1c - CAN_BTR"]
#[inline (always)] pub const fn can_btr (& self) -> & CanBtr { & self . can_btr }
#[doc = "0x180 - CAN_TI0R"]
#[inline (always)] pub const fn can_ti0r (& self) -> & CanTi0r { & self . can_ti0r }
#[doc = "0x184 - CAN_TDT0R"]
#[inline (always)] pub const fn can_tdt0r (& self) -> & CanTdt0r { & self . can_tdt0r }
#[doc = "0x188 - CAN_TDL0R"]
#[inline (always)] pub const fn can_tdl0r (& self) -> & CanTdl0r { & self . can_tdl0r }
#[doc = "0x18c - CAN_TDH0R"]
#[inline (always)] pub const fn can_tdh0r (& self) -> & CanTdh0r { & self . can_tdh0r }
#[doc = "0x190 - CAN_TI1R"]
#[inline (always)] pub const fn can_ti1r (& self) -> & CanTi1r { & self . can_ti1r }
#[doc = "0x194 - CAN_TDT1R"]
#[inline (always)] pub const fn can_tdt1r (& self) -> & CanTdt1r { & self . can_tdt1r }
#[doc = "0x198 - CAN_TDL1R"]
#[inline (always)] pub const fn can_tdl1r (& self) -> & CanTdl1r { & self . can_tdl1r }
#[doc = "0x19c - CAN_TDH1R"]
#[inline (always)] pub const fn can_tdh1r (& self) -> & CanTdh1r { & self . can_tdh1r }
#[doc = "0x1a0 - CAN_TI2R"]
#[inline (always)] pub const fn can_ti2r (& self) -> & CanTi2r { & self . can_ti2r }
#[doc = "0x1a4 - CAN_TDT2R"]
#[inline (always)] pub const fn can_tdt2r (& self) -> & CanTdt2r { & self . can_tdt2r }
#[doc = "0x1a8 - CAN_TDL2R"]
#[inline (always)] pub const fn can_tdl2r (& self) -> & CanTdl2r { & self . can_tdl2r }
#[doc = "0x1ac - CAN_TDH2R"]
#[inline (always)] pub const fn can_tdh2r (& self) -> & CanTdh2r { & self . can_tdh2r }
#[doc = "0x1b0 - CAN_RI0R"]
#[inline (always)] pub const fn can_ri0r (& self) -> & CanRi0r { & self . can_ri0r }
#[doc = "0x1b4 - CAN_RDT0R"]
#[inline (always)] pub const fn can_rdt0r (& self) -> & CanRdt0r { & self . can_rdt0r }
#[doc = "0x1b8 - CAN_RDL0R"]
#[inline (always)] pub const fn can_rdl0r (& self) -> & CanRdl0r { & self . can_rdl0r }
#[doc = "0x1bc - CAN_RDH0R"]
#[inline (always)] pub const fn can_rdh0r (& self) -> & CanRdh0r { & self . can_rdh0r }
#[doc = "0x1c0 - CAN_RI1R"]
#[inline (always)] pub const fn can_ri1r (& self) -> & CanRi1r { & self . can_ri1r }
#[doc = "0x1c4 - CAN_RDT1R"]
#[inline (always)] pub const fn can_rdt1r (& self) -> & CanRdt1r { & self . can_rdt1r }
#[doc = "0x1c8 - CAN_RDL1R"]
#[inline (always)] pub const fn can_rdl1r (& self) -> & CanRdl1r { & self . can_rdl1r }
#[doc = "0x1cc - CAN_RDH1R"]
#[inline (always)] pub const fn can_rdh1r (& self) -> & CanRdh1r { & self . can_rdh1r }
#[doc = "0x200 - CAN_FMR"]
#[inline (always)] pub const fn can_fmr (& self) -> & CanFmr { & self . can_fmr }
#[doc = "0x204 - CAN_FM1R"]
#[inline (always)] pub const fn can_fm1r (& self) -> & CanFm1r { & self . can_fm1r }
#[doc = "0x20c - CAN_FS1R"]
#[inline (always)] pub const fn can_fs1r (& self) -> & CanFs1r { & self . can_fs1r }
#[doc = "0x214 - CAN_FFA1R"]
#[inline (always)] pub const fn can_ffa1r (& self) -> & CanFfa1r { & self . can_ffa1r }
#[doc = "0x21c - CAN_FA1R"]
#[inline (always)] pub const fn can_fa1r (& self) -> & CanFa1r { & self . can_fa1r }
#[doc = "0x240 - Filter bank 0 register 1"]
#[inline (always)] pub const fn f0r1 (& self) -> & F0r1 { & self . f0r1 }
#[doc = "0x244 - Filter bank 0 register 2"]
#[inline (always)] pub const fn f0r2 (& self) -> & F0r2 { & self . f0r2 }
#[doc = "0x248 - Filter bank 1 register 1"]
#[inline (always)] pub const fn f1r1 (& self) -> & F1r1 { & self . f1r1 }
#[doc = "0x24c - Filter bank 1 register 2"]
#[inline (always)] pub const fn f1r2 (& self) -> & F1r2 { & self . f1r2 }
#[doc = "0x250 - Filter bank 2 register 1"]
#[inline (always)] pub const fn f2r1 (& self) -> & F2r1 { & self . f2r1 }
#[doc = "0x254 - Filter bank 2 register 2"]
#[inline (always)] pub const fn f2r2 (& self) -> & F2r2 { & self . f2r2 }
#[doc = "0x258 - Filter bank 3 register 1"]
#[inline (always)] pub const fn f3r1 (& self) -> & F3r1 { & self . f3r1 }
#[doc = "0x25c - Filter bank 3 register 2"]
#[inline (always)] pub const fn f3r2 (& self) -> & F3r2 { & self . f3r2 }
#[doc = "0x260 - Filter bank 4 register 1"]
#[inline (always)] pub const fn f4r1 (& self) -> & F4r1 { & self . f4r1 }
#[doc = "0x264 - Filter bank 4 register 2"]
#[inline (always)] pub const fn f4r2 (& self) -> & F4r2 { & self . f4r2 }
#[doc = "0x268 - Filter bank 5 register 1"]
#[inline (always)] pub const fn f5r1 (& self) -> & F5r1 { & self . f5r1 }
#[doc = "0x26c - Filter bank 5 register 2"]
#[inline (always)] pub const fn f5r2 (& self) -> & F5r2 { & self . f5r2 }
#[doc = "0x270 - Filter bank 6 register 1"]
#[inline (always)] pub const fn f6r1 (& self) -> & F6r1 { & self . f6r1 }
#[doc = "0x274 - Filter bank 6 register 2"]
#[inline (always)] pub const fn f6r2 (& self) -> & F6r2 { & self . f6r2 }
#[doc = "0x278 - Filter bank 7 register 1"]
#[inline (always)] pub const fn f7r1 (& self) -> & F7r1 { & self . f7r1 }
#[doc = "0x27c - Filter bank 7 register 2"]
#[inline (always)] pub const fn f7r2 (& self) -> & F7r2 { & self . f7r2 }
#[doc = "0x280 - Filter bank 8 register 1"]
#[inline (always)] pub const fn f8r1 (& self) -> & F8r1 { & self . f8r1 }
#[doc = "0x284 - Filter bank 8 register 2"]
#[inline (always)] pub const fn f8r2 (& self) -> & F8r2 { & self . f8r2 }
#[doc = "0x288 - Filter bank 9 register 1"]
#[inline (always)] pub const fn f9r1 (& self) -> & F9r1 { & self . f9r1 }
#[doc = "0x28c - Filter bank 9 register 2"]
#[inline (always)] pub const fn f9r2 (& self) -> & F9r2 { & self . f9r2 }
#[doc = "0x290 - Filter bank 10 register 1"]
#[inline (always)] pub const fn f10r1 (& self) -> & F10r1 { & self . f10r1 }
#[doc = "0x294 - Filter bank 10 register 2"]
#[inline (always)] pub const fn f10r2 (& self) -> & F10r2 { & self . f10r2 }
#[doc = "0x298 - Filter bank 11 register 1"]
#[inline (always)] pub const fn f11r1 (& self) -> & F11r1 { & self . f11r1 }
#[doc = "0x29c - Filter bank 11 register 2"]
#[inline (always)] pub const fn f11r2 (& self) -> & F11r2 { & self . f11r2 }
#[doc = "0x2a0 - Filter bank 4 register 1"]
#[inline (always)] pub const fn f12r1 (& self) -> & F12r1 { & self . f12r1 }
#[doc = "0x2a4 - Filter bank 12 register 2"]
#[inline (always)] pub const fn f12r2 (& self) -> & F12r2 { & self . f12r2 }
#[doc = "0x2a8 - Filter bank 13 register 1"]
#[inline (always)] pub const fn f13r1 (& self) -> & F13r1 { & self . f13r1 }
#[doc = "0x2ac - Filter bank 13 register 2"]
#[inline (always)] pub const fn f13r2 (& self) -> & F13r2 { & self . f13r2 } }
#[doc = "CAN_MCR (rw) register accessor: CAN_MCR\n\nYou can [`read`](crate::Reg::read) this register and get [`can_mcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_mcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_mcr`] module"]
#[doc (alias = "CAN_MCR")] pub type CanMcr = crate :: Reg < can_mcr :: CanMcrSpec > ;
#[doc = "CAN_MCR"] pub mod can_mcr {
#[doc = "Register `CAN_MCR` reader"] pub type R = crate :: R < CanMcrSpec > ;
#[doc = "Register `CAN_MCR` writer"] pub type W = crate :: W < CanMcrSpec > ;
#[doc = "Field `INRQ` reader - INRQ"] pub type InrqR = crate :: BitReader ;
#[doc = "Field `INRQ` writer - INRQ"] pub type InrqW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SLEEP` reader - SLEEP"] pub type SleepR = crate :: BitReader ;
#[doc = "Field `SLEEP` writer - SLEEP"] pub type SleepW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFP` reader - TXFP"] pub type TxfpR = crate :: BitReader ;
#[doc = "Field `TXFP` writer - TXFP"] pub type TxfpW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RFLM` reader - RFLM"] pub type RflmR = crate :: BitReader ;
#[doc = "Field `RFLM` writer - RFLM"] pub type RflmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NART` reader - NART"] pub type NartR = crate :: BitReader ;
#[doc = "Field `NART` writer - NART"] pub type NartW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AWUM` reader - AWUM"] pub type AwumR = crate :: BitReader ;
#[doc = "Field `AWUM` writer - AWUM"] pub type AwumW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ABOM` reader - ABOM"] pub type AbomR = crate :: BitReader ;
#[doc = "Field `ABOM` writer - ABOM"] pub type AbomW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TTCM` reader - TTCM"] pub type TtcmR = crate :: BitReader ;
#[doc = "Field `TTCM` writer - TTCM"] pub type TtcmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RESET` reader - RESET"] pub type ResetR = crate :: BitReader ;
#[doc = "Field `RESET` writer - RESET"] pub type ResetW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBF` reader - DBF"] pub type DbfR = crate :: BitReader ;
#[doc = "Field `DBF` writer - DBF"] pub type DbfW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - INRQ"]
#[inline (always)] pub fn inrq (& self) -> InrqR { InrqR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - SLEEP"]
#[inline (always)] pub fn sleep (& self) -> SleepR { SleepR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - TXFP"]
#[inline (always)] pub fn txfp (& self) -> TxfpR { TxfpR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - RFLM"]
#[inline (always)] pub fn rflm (& self) -> RflmR { RflmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NART"]
#[inline (always)] pub fn nart (& self) -> NartR { NartR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - AWUM"]
#[inline (always)] pub fn awum (& self) -> AwumR { AwumR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - ABOM"]
#[inline (always)] pub fn abom (& self) -> AbomR { AbomR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - TTCM"]
#[inline (always)] pub fn ttcm (& self) -> TtcmR { TtcmR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 15 - RESET"]
#[inline (always)] pub fn reset (& self) -> ResetR { ResetR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - DBF"]
#[inline (always)] pub fn dbf (& self) -> DbfR { DbfR :: new (((self . bits >> 16) & 1) != 0) } } impl W {
#[doc = "Bit 0 - INRQ"]
#[inline (always)] pub fn inrq (& mut self) -> InrqW < '_ , CanMcrSpec > { InrqW :: new (self , 0) }
#[doc = "Bit 1 - SLEEP"]
#[inline (always)] pub fn sleep (& mut self) -> SleepW < '_ , CanMcrSpec > { SleepW :: new (self , 1) }
#[doc = "Bit 2 - TXFP"]
#[inline (always)] pub fn txfp (& mut self) -> TxfpW < '_ , CanMcrSpec > { TxfpW :: new (self , 2) }
#[doc = "Bit 3 - RFLM"]
#[inline (always)] pub fn rflm (& mut self) -> RflmW < '_ , CanMcrSpec > { RflmW :: new (self , 3) }
#[doc = "Bit 4 - NART"]
#[inline (always)] pub fn nart (& mut self) -> NartW < '_ , CanMcrSpec > { NartW :: new (self , 4) }
#[doc = "Bit 5 - AWUM"]
#[inline (always)] pub fn awum (& mut self) -> AwumW < '_ , CanMcrSpec > { AwumW :: new (self , 5) }
#[doc = "Bit 6 - ABOM"]
#[inline (always)] pub fn abom (& mut self) -> AbomW < '_ , CanMcrSpec > { AbomW :: new (self , 6) }
#[doc = "Bit 7 - TTCM"]
#[inline (always)] pub fn ttcm (& mut self) -> TtcmW < '_ , CanMcrSpec > { TtcmW :: new (self , 7) }
#[doc = "Bit 15 - RESET"]
#[inline (always)] pub fn reset (& mut self) -> ResetW < '_ , CanMcrSpec > { ResetW :: new (self , 15) }
#[doc = "Bit 16 - DBF"]
#[inline (always)] pub fn dbf (& mut self) -> DbfW < '_ , CanMcrSpec > { DbfW :: new (self , 16) } }
#[doc = "CAN_MCR\n\nYou can [`read`](crate::Reg::read) this register and get [`can_mcr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_mcr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanMcrSpec ; impl crate :: RegisterSpec for CanMcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_mcr::R`](R) reader structure"] impl crate :: Readable for CanMcrSpec { }
#[doc = "`write(|w| ..)` method takes [`can_mcr::W`](W) writer structure"] impl crate :: Writable for CanMcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_MCR to value 0"] impl crate :: Resettable for CanMcrSpec { } }
#[doc = "CAN_MSR (rw) register accessor: CAN_MSR\n\nYou can [`read`](crate::Reg::read) this register and get [`can_msr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_msr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_msr`] module"]
#[doc (alias = "CAN_MSR")] pub type CanMsr = crate :: Reg < can_msr :: CanMsrSpec > ;
#[doc = "CAN_MSR"] pub mod can_msr {
#[doc = "Register `CAN_MSR` reader"] pub type R = crate :: R < CanMsrSpec > ;
#[doc = "Register `CAN_MSR` writer"] pub type W = crate :: W < CanMsrSpec > ;
#[doc = "Field `INAK` reader - INAK"] pub type InakR = crate :: BitReader ;
#[doc = "Field `SLAK` reader - SLAK"] pub type SlakR = crate :: BitReader ;
#[doc = "Field `ERRI` reader - ERRI"] pub type ErriR = crate :: BitReader ;
#[doc = "Field `ERRI` writer - ERRI"] pub type ErriW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WKUI` reader - WKUI"] pub type WkuiR = crate :: BitReader ;
#[doc = "Field `WKUI` writer - WKUI"] pub type WkuiW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SLAKI` reader - SLAKI"] pub type SlakiR = crate :: BitReader ;
#[doc = "Field `SLAKI` writer - SLAKI"] pub type SlakiW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXM` reader - TXM"] pub type TxmR = crate :: BitReader ;
#[doc = "Field `RXM` reader - RXM"] pub type RxmR = crate :: BitReader ;
#[doc = "Field `SAMP` reader - SAMP"] pub type SampR = crate :: BitReader ;
#[doc = "Field `RX` reader - RX"] pub type RxR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - INAK"]
#[inline (always)] pub fn inak (& self) -> InakR { InakR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - SLAK"]
#[inline (always)] pub fn slak (& self) -> SlakR { SlakR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - ERRI"]
#[inline (always)] pub fn erri (& self) -> ErriR { ErriR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - WKUI"]
#[inline (always)] pub fn wkui (& self) -> WkuiR { WkuiR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - SLAKI"]
#[inline (always)] pub fn slaki (& self) -> SlakiR { SlakiR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 8 - TXM"]
#[inline (always)] pub fn txm (& self) -> TxmR { TxmR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - RXM"]
#[inline (always)] pub fn rxm (& self) -> RxmR { RxmR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - SAMP"]
#[inline (always)] pub fn samp (& self) -> SampR { SampR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - RX"]
#[inline (always)] pub fn rx (& self) -> RxR { RxR :: new (((self . bits >> 11) & 1) != 0) } } impl W {
#[doc = "Bit 2 - ERRI"]
#[inline (always)] pub fn erri (& mut self) -> ErriW < '_ , CanMsrSpec > { ErriW :: new (self , 2) }
#[doc = "Bit 3 - WKUI"]
#[inline (always)] pub fn wkui (& mut self) -> WkuiW < '_ , CanMsrSpec > { WkuiW :: new (self , 3) }
#[doc = "Bit 4 - SLAKI"]
#[inline (always)] pub fn slaki (& mut self) -> SlakiW < '_ , CanMsrSpec > { SlakiW :: new (self , 4) } }
#[doc = "CAN_MSR\n\nYou can [`read`](crate::Reg::read) this register and get [`can_msr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_msr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanMsrSpec ; impl crate :: RegisterSpec for CanMsrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_msr::R`](R) reader structure"] impl crate :: Readable for CanMsrSpec { }
#[doc = "`write(|w| ..)` method takes [`can_msr::W`](W) writer structure"] impl crate :: Writable for CanMsrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_MSR to value 0"] impl crate :: Resettable for CanMsrSpec { } }
#[doc = "CAN_TSR (rw) register accessor: CAN_TSR\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tsr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tsr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_tsr`] module"]
#[doc (alias = "CAN_TSR")] pub type CanTsr = crate :: Reg < can_tsr :: CanTsrSpec > ;
#[doc = "CAN_TSR"] pub mod can_tsr {
#[doc = "Register `CAN_TSR` reader"] pub type R = crate :: R < CanTsrSpec > ;
#[doc = "Register `CAN_TSR` writer"] pub type W = crate :: W < CanTsrSpec > ;
#[doc = "Field `RQCP0` reader - RQCP0"] pub type Rqcp0R = crate :: BitReader ;
#[doc = "Field `RQCP0` writer - RQCP0"] pub type Rqcp0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXOK0` reader - TXOK0"] pub type Txok0R = crate :: BitReader ;
#[doc = "Field `TXOK0` writer - TXOK0"] pub type Txok0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ALST0` reader - ALST0"] pub type Alst0R = crate :: BitReader ;
#[doc = "Field `ALST0` writer - ALST0"] pub type Alst0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TERR0` reader - TERR0"] pub type Terr0R = crate :: BitReader ;
#[doc = "Field `TERR0` writer - TERR0"] pub type Terr0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ABRQ0` reader - ABRQ0"] pub type Abrq0R = crate :: BitReader ;
#[doc = "Field `ABRQ0` writer - ABRQ0"] pub type Abrq0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RQCP1` reader - RQCP1"] pub type Rqcp1R = crate :: BitReader ;
#[doc = "Field `RQCP1` writer - RQCP1"] pub type Rqcp1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXOK1` reader - TXOK1"] pub type Txok1R = crate :: BitReader ;
#[doc = "Field `TXOK1` writer - TXOK1"] pub type Txok1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ALST1` reader - ALST1"] pub type Alst1R = crate :: BitReader ;
#[doc = "Field `ALST1` writer - ALST1"] pub type Alst1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TERR1` reader - TERR1"] pub type Terr1R = crate :: BitReader ;
#[doc = "Field `TERR1` writer - TERR1"] pub type Terr1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ABRQ1` reader - ABRQ1"] pub type Abrq1R = crate :: BitReader ;
#[doc = "Field `ABRQ1` writer - ABRQ1"] pub type Abrq1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RQCP2` reader - RQCP2"] pub type Rqcp2R = crate :: BitReader ;
#[doc = "Field `RQCP2` writer - RQCP2"] pub type Rqcp2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXOK2` reader - TXOK2"] pub type Txok2R = crate :: BitReader ;
#[doc = "Field `TXOK2` writer - TXOK2"] pub type Txok2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ALST2` reader - ALST2"] pub type Alst2R = crate :: BitReader ;
#[doc = "Field `ALST2` writer - ALST2"] pub type Alst2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TERR2` reader - TERR2"] pub type Terr2R = crate :: BitReader ;
#[doc = "Field `TERR2` writer - TERR2"] pub type Terr2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ABRQ2` reader - ABRQ2"] pub type Abrq2R = crate :: BitReader ;
#[doc = "Field `ABRQ2` writer - ABRQ2"] pub type Abrq2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CODE` reader - CODE"] pub type CodeR = crate :: FieldReader ;
#[doc = "Field `TME0` reader - Lowest priority flag for mailbox 0"] pub type Tme0R = crate :: BitReader ;
#[doc = "Field `TME1` reader - Lowest priority flag for mailbox 1"] pub type Tme1R = crate :: BitReader ;
#[doc = "Field `TME2` reader - Lowest priority flag for mailbox 2"] pub type Tme2R = crate :: BitReader ;
#[doc = "Field `LOW0` reader - Lowest priority flag for mailbox 0"] pub type Low0R = crate :: BitReader ;
#[doc = "Field `LOW1` reader - Lowest priority flag for mailbox 1"] pub type Low1R = crate :: BitReader ;
#[doc = "Field `LOW2` reader - Lowest priority flag for mailbox 2"] pub type Low2R = crate :: BitReader ; impl R {
#[doc = "Bit 0 - RQCP0"]
#[inline (always)] pub fn rqcp0 (& self) -> Rqcp0R { Rqcp0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - TXOK0"]
#[inline (always)] pub fn txok0 (& self) -> Txok0R { Txok0R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - ALST0"]
#[inline (always)] pub fn alst0 (& self) -> Alst0R { Alst0R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - TERR0"]
#[inline (always)] pub fn terr0 (& self) -> Terr0R { Terr0R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 7 - ABRQ0"]
#[inline (always)] pub fn abrq0 (& self) -> Abrq0R { Abrq0R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - RQCP1"]
#[inline (always)] pub fn rqcp1 (& self) -> Rqcp1R { Rqcp1R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - TXOK1"]
#[inline (always)] pub fn txok1 (& self) -> Txok1R { Txok1R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - ALST1"]
#[inline (always)] pub fn alst1 (& self) -> Alst1R { Alst1R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - TERR1"]
#[inline (always)] pub fn terr1 (& self) -> Terr1R { Terr1R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 15 - ABRQ1"]
#[inline (always)] pub fn abrq1 (& self) -> Abrq1R { Abrq1R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - RQCP2"]
#[inline (always)] pub fn rqcp2 (& self) -> Rqcp2R { Rqcp2R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - TXOK2"]
#[inline (always)] pub fn txok2 (& self) -> Txok2R { Txok2R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - ALST2"]
#[inline (always)] pub fn alst2 (& self) -> Alst2R { Alst2R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - TERR2"]
#[inline (always)] pub fn terr2 (& self) -> Terr2R { Terr2R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 23 - ABRQ2"]
#[inline (always)] pub fn abrq2 (& self) -> Abrq2R { Abrq2R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bits 24:25 - CODE"]
#[inline (always)] pub fn code (& self) -> CodeR { CodeR :: new (((self . bits >> 24) & 3) as u8) }
#[doc = "Bit 26 - Lowest priority flag for mailbox 0"]
#[inline (always)] pub fn tme0 (& self) -> Tme0R { Tme0R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Lowest priority flag for mailbox 1"]
#[inline (always)] pub fn tme1 (& self) -> Tme1R { Tme1R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Lowest priority flag for mailbox 2"]
#[inline (always)] pub fn tme2 (& self) -> Tme2R { Tme2R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Lowest priority flag for mailbox 0"]
#[inline (always)] pub fn low0 (& self) -> Low0R { Low0R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Lowest priority flag for mailbox 1"]
#[inline (always)] pub fn low1 (& self) -> Low1R { Low1R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Lowest priority flag for mailbox 2"]
#[inline (always)] pub fn low2 (& self) -> Low2R { Low2R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - RQCP0"]
#[inline (always)] pub fn rqcp0 (& mut self) -> Rqcp0W < '_ , CanTsrSpec > { Rqcp0W :: new (self , 0) }
#[doc = "Bit 1 - TXOK0"]
#[inline (always)] pub fn txok0 (& mut self) -> Txok0W < '_ , CanTsrSpec > { Txok0W :: new (self , 1) }
#[doc = "Bit 2 - ALST0"]
#[inline (always)] pub fn alst0 (& mut self) -> Alst0W < '_ , CanTsrSpec > { Alst0W :: new (self , 2) }
#[doc = "Bit 3 - TERR0"]
#[inline (always)] pub fn terr0 (& mut self) -> Terr0W < '_ , CanTsrSpec > { Terr0W :: new (self , 3) }
#[doc = "Bit 7 - ABRQ0"]
#[inline (always)] pub fn abrq0 (& mut self) -> Abrq0W < '_ , CanTsrSpec > { Abrq0W :: new (self , 7) }
#[doc = "Bit 8 - RQCP1"]
#[inline (always)] pub fn rqcp1 (& mut self) -> Rqcp1W < '_ , CanTsrSpec > { Rqcp1W :: new (self , 8) }
#[doc = "Bit 9 - TXOK1"]
#[inline (always)] pub fn txok1 (& mut self) -> Txok1W < '_ , CanTsrSpec > { Txok1W :: new (self , 9) }
#[doc = "Bit 10 - ALST1"]
#[inline (always)] pub fn alst1 (& mut self) -> Alst1W < '_ , CanTsrSpec > { Alst1W :: new (self , 10) }
#[doc = "Bit 11 - TERR1"]
#[inline (always)] pub fn terr1 (& mut self) -> Terr1W < '_ , CanTsrSpec > { Terr1W :: new (self , 11) }
#[doc = "Bit 15 - ABRQ1"]
#[inline (always)] pub fn abrq1 (& mut self) -> Abrq1W < '_ , CanTsrSpec > { Abrq1W :: new (self , 15) }
#[doc = "Bit 16 - RQCP2"]
#[inline (always)] pub fn rqcp2 (& mut self) -> Rqcp2W < '_ , CanTsrSpec > { Rqcp2W :: new (self , 16) }
#[doc = "Bit 17 - TXOK2"]
#[inline (always)] pub fn txok2 (& mut self) -> Txok2W < '_ , CanTsrSpec > { Txok2W :: new (self , 17) }
#[doc = "Bit 18 - ALST2"]
#[inline (always)] pub fn alst2 (& mut self) -> Alst2W < '_ , CanTsrSpec > { Alst2W :: new (self , 18) }
#[doc = "Bit 19 - TERR2"]
#[inline (always)] pub fn terr2 (& mut self) -> Terr2W < '_ , CanTsrSpec > { Terr2W :: new (self , 19) }
#[doc = "Bit 23 - ABRQ2"]
#[inline (always)] pub fn abrq2 (& mut self) -> Abrq2W < '_ , CanTsrSpec > { Abrq2W :: new (self , 23) } }
#[doc = "CAN_TSR\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tsr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tsr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanTsrSpec ; impl crate :: RegisterSpec for CanTsrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_tsr::R`](R) reader structure"] impl crate :: Readable for CanTsrSpec { }
#[doc = "`write(|w| ..)` method takes [`can_tsr::W`](W) writer structure"] impl crate :: Writable for CanTsrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_TSR to value 0"] impl crate :: Resettable for CanTsrSpec { } }
#[doc = "CAN_RF0R (rw) register accessor: CAN_RF0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rf0r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_rf0r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_rf0r`] module"]
#[doc (alias = "CAN_RF0R")] pub type CanRf0r = crate :: Reg < can_rf0r :: CanRf0rSpec > ;
#[doc = "CAN_RF0R"] pub mod can_rf0r {
#[doc = "Register `CAN_RF0R` reader"] pub type R = crate :: R < CanRf0rSpec > ;
#[doc = "Register `CAN_RF0R` writer"] pub type W = crate :: W < CanRf0rSpec > ;
#[doc = "Field `FMP0` reader - FMP0"] pub type Fmp0R = crate :: FieldReader ;
#[doc = "Field `FULL0` reader - FULL0"] pub type Full0R = crate :: BitReader ;
#[doc = "Field `FULL0` writer - FULL0"] pub type Full0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FOVR0` reader - FOVR0"] pub type Fovr0R = crate :: BitReader ;
#[doc = "Field `FOVR0` writer - FOVR0"] pub type Fovr0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RFOM0` reader - RFOM0"] pub type Rfom0R = crate :: BitReader ;
#[doc = "Field `RFOM0` writer - RFOM0"] pub type Rfom0W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:1 - FMP0"]
#[inline (always)] pub fn fmp0 (& self) -> Fmp0R { Fmp0R :: new ((self . bits & 3) as u8) }
#[doc = "Bit 3 - FULL0"]
#[inline (always)] pub fn full0 (& self) -> Full0R { Full0R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - FOVR0"]
#[inline (always)] pub fn fovr0 (& self) -> Fovr0R { Fovr0R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - RFOM0"]
#[inline (always)] pub fn rfom0 (& self) -> Rfom0R { Rfom0R :: new (((self . bits >> 5) & 1) != 0) } } impl W {
#[doc = "Bit 3 - FULL0"]
#[inline (always)] pub fn full0 (& mut self) -> Full0W < '_ , CanRf0rSpec > { Full0W :: new (self , 3) }
#[doc = "Bit 4 - FOVR0"]
#[inline (always)] pub fn fovr0 (& mut self) -> Fovr0W < '_ , CanRf0rSpec > { Fovr0W :: new (self , 4) }
#[doc = "Bit 5 - RFOM0"]
#[inline (always)] pub fn rfom0 (& mut self) -> Rfom0W < '_ , CanRf0rSpec > { Rfom0W :: new (self , 5) } }
#[doc = "CAN_RF0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rf0r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_rf0r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanRf0rSpec ; impl crate :: RegisterSpec for CanRf0rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_rf0r::R`](R) reader structure"] impl crate :: Readable for CanRf0rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_rf0r::W`](W) writer structure"] impl crate :: Writable for CanRf0rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_RF0R to value 0"] impl crate :: Resettable for CanRf0rSpec { } }
#[doc = "CAN_RF1R (rw) register accessor: CAN_RF1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rf1r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_rf1r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_rf1r`] module"]
#[doc (alias = "CAN_RF1R")] pub type CanRf1r = crate :: Reg < can_rf1r :: CanRf1rSpec > ;
#[doc = "CAN_RF1R"] pub mod can_rf1r {
#[doc = "Register `CAN_RF1R` reader"] pub type R = crate :: R < CanRf1rSpec > ;
#[doc = "Register `CAN_RF1R` writer"] pub type W = crate :: W < CanRf1rSpec > ;
#[doc = "Field `FMP1` reader - FMP1"] pub type Fmp1R = crate :: FieldReader ;
#[doc = "Field `FULL1` reader - FULL1"] pub type Full1R = crate :: BitReader ;
#[doc = "Field `FULL1` writer - FULL1"] pub type Full1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FOVR1` reader - FOVR1"] pub type Fovr1R = crate :: BitReader ;
#[doc = "Field `FOVR1` writer - FOVR1"] pub type Fovr1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RFOM1` reader - RFOM1"] pub type Rfom1R = crate :: BitReader ;
#[doc = "Field `RFOM1` writer - RFOM1"] pub type Rfom1W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:1 - FMP1"]
#[inline (always)] pub fn fmp1 (& self) -> Fmp1R { Fmp1R :: new ((self . bits & 3) as u8) }
#[doc = "Bit 3 - FULL1"]
#[inline (always)] pub fn full1 (& self) -> Full1R { Full1R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - FOVR1"]
#[inline (always)] pub fn fovr1 (& self) -> Fovr1R { Fovr1R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - RFOM1"]
#[inline (always)] pub fn rfom1 (& self) -> Rfom1R { Rfom1R :: new (((self . bits >> 5) & 1) != 0) } } impl W {
#[doc = "Bit 3 - FULL1"]
#[inline (always)] pub fn full1 (& mut self) -> Full1W < '_ , CanRf1rSpec > { Full1W :: new (self , 3) }
#[doc = "Bit 4 - FOVR1"]
#[inline (always)] pub fn fovr1 (& mut self) -> Fovr1W < '_ , CanRf1rSpec > { Fovr1W :: new (self , 4) }
#[doc = "Bit 5 - RFOM1"]
#[inline (always)] pub fn rfom1 (& mut self) -> Rfom1W < '_ , CanRf1rSpec > { Rfom1W :: new (self , 5) } }
#[doc = "CAN_RF1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rf1r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_rf1r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanRf1rSpec ; impl crate :: RegisterSpec for CanRf1rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_rf1r::R`](R) reader structure"] impl crate :: Readable for CanRf1rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_rf1r::W`](W) writer structure"] impl crate :: Writable for CanRf1rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_RF1R to value 0"] impl crate :: Resettable for CanRf1rSpec { } }
#[doc = "CAN_IER (rw) register accessor: CAN_IER\n\nYou can [`read`](crate::Reg::read) this register and get [`can_ier::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_ier::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_ier`] module"]
#[doc (alias = "CAN_IER")] pub type CanIer = crate :: Reg < can_ier :: CanIerSpec > ;
#[doc = "CAN_IER"] pub mod can_ier {
#[doc = "Register `CAN_IER` reader"] pub type R = crate :: R < CanIerSpec > ;
#[doc = "Register `CAN_IER` writer"] pub type W = crate :: W < CanIerSpec > ;
#[doc = "Field `TMEIE` reader - TMEIE"] pub type TmeieR = crate :: BitReader ;
#[doc = "Field `TMEIE` writer - TMEIE"] pub type TmeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FMPIE0` reader - FMPIE0"] pub type Fmpie0R = crate :: BitReader ;
#[doc = "Field `FMPIE0` writer - FMPIE0"] pub type Fmpie0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFIE0` reader - FFIE0"] pub type Ffie0R = crate :: BitReader ;
#[doc = "Field `FFIE0` writer - FFIE0"] pub type Ffie0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FOVIE0` reader - FOVIE0"] pub type Fovie0R = crate :: BitReader ;
#[doc = "Field `FOVIE0` writer - FOVIE0"] pub type Fovie0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FMPIE1` reader - FMPIE1"] pub type Fmpie1R = crate :: BitReader ;
#[doc = "Field `FMPIE1` writer - FMPIE1"] pub type Fmpie1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFIE1` reader - FFIE1"] pub type Ffie1R = crate :: BitReader ;
#[doc = "Field `FFIE1` writer - FFIE1"] pub type Ffie1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FOVIE1` reader - FOVIE1"] pub type Fovie1R = crate :: BitReader ;
#[doc = "Field `FOVIE1` writer - FOVIE1"] pub type Fovie1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EWGIE` reader - EWGIE"] pub type EwgieR = crate :: BitReader ;
#[doc = "Field `EWGIE` writer - EWGIE"] pub type EwgieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPVIE` reader - EPVIE"] pub type EpvieR = crate :: BitReader ;
#[doc = "Field `EPVIE` writer - EPVIE"] pub type EpvieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BOFIE` reader - BOFIE"] pub type BofieR = crate :: BitReader ;
#[doc = "Field `BOFIE` writer - BOFIE"] pub type BofieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LECIE` reader - LECIE"] pub type LecieR = crate :: BitReader ;
#[doc = "Field `LECIE` writer - LECIE"] pub type LecieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ERRIE` reader - ERRIE"] pub type ErrieR = crate :: BitReader ;
#[doc = "Field `ERRIE` writer - ERRIE"] pub type ErrieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WKUIE` reader - WKUIE"] pub type WkuieR = crate :: BitReader ;
#[doc = "Field `WKUIE` writer - WKUIE"] pub type WkuieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SLKIE` reader - SLKIE"] pub type SlkieR = crate :: BitReader ;
#[doc = "Field `SLKIE` writer - SLKIE"] pub type SlkieW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - TMEIE"]
#[inline (always)] pub fn tmeie (& self) -> TmeieR { TmeieR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - FMPIE0"]
#[inline (always)] pub fn fmpie0 (& self) -> Fmpie0R { Fmpie0R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - FFIE0"]
#[inline (always)] pub fn ffie0 (& self) -> Ffie0R { Ffie0R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - FOVIE0"]
#[inline (always)] pub fn fovie0 (& self) -> Fovie0R { Fovie0R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - FMPIE1"]
#[inline (always)] pub fn fmpie1 (& self) -> Fmpie1R { Fmpie1R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - FFIE1"]
#[inline (always)] pub fn ffie1 (& self) -> Ffie1R { Ffie1R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - FOVIE1"]
#[inline (always)] pub fn fovie1 (& self) -> Fovie1R { Fovie1R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 8 - EWGIE"]
#[inline (always)] pub fn ewgie (& self) -> EwgieR { EwgieR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - EPVIE"]
#[inline (always)] pub fn epvie (& self) -> EpvieR { EpvieR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - BOFIE"]
#[inline (always)] pub fn bofie (& self) -> BofieR { BofieR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - LECIE"]
#[inline (always)] pub fn lecie (& self) -> LecieR { LecieR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 15 - ERRIE"]
#[inline (always)] pub fn errie (& self) -> ErrieR { ErrieR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - WKUIE"]
#[inline (always)] pub fn wkuie (& self) -> WkuieR { WkuieR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - SLKIE"]
#[inline (always)] pub fn slkie (& self) -> SlkieR { SlkieR :: new (((self . bits >> 17) & 1) != 0) } } impl W {
#[doc = "Bit 0 - TMEIE"]
#[inline (always)] pub fn tmeie (& mut self) -> TmeieW < '_ , CanIerSpec > { TmeieW :: new (self , 0) }
#[doc = "Bit 1 - FMPIE0"]
#[inline (always)] pub fn fmpie0 (& mut self) -> Fmpie0W < '_ , CanIerSpec > { Fmpie0W :: new (self , 1) }
#[doc = "Bit 2 - FFIE0"]
#[inline (always)] pub fn ffie0 (& mut self) -> Ffie0W < '_ , CanIerSpec > { Ffie0W :: new (self , 2) }
#[doc = "Bit 3 - FOVIE0"]
#[inline (always)] pub fn fovie0 (& mut self) -> Fovie0W < '_ , CanIerSpec > { Fovie0W :: new (self , 3) }
#[doc = "Bit 4 - FMPIE1"]
#[inline (always)] pub fn fmpie1 (& mut self) -> Fmpie1W < '_ , CanIerSpec > { Fmpie1W :: new (self , 4) }
#[doc = "Bit 5 - FFIE1"]
#[inline (always)] pub fn ffie1 (& mut self) -> Ffie1W < '_ , CanIerSpec > { Ffie1W :: new (self , 5) }
#[doc = "Bit 6 - FOVIE1"]
#[inline (always)] pub fn fovie1 (& mut self) -> Fovie1W < '_ , CanIerSpec > { Fovie1W :: new (self , 6) }
#[doc = "Bit 8 - EWGIE"]
#[inline (always)] pub fn ewgie (& mut self) -> EwgieW < '_ , CanIerSpec > { EwgieW :: new (self , 8) }
#[doc = "Bit 9 - EPVIE"]
#[inline (always)] pub fn epvie (& mut self) -> EpvieW < '_ , CanIerSpec > { EpvieW :: new (self , 9) }
#[doc = "Bit 10 - BOFIE"]
#[inline (always)] pub fn bofie (& mut self) -> BofieW < '_ , CanIerSpec > { BofieW :: new (self , 10) }
#[doc = "Bit 11 - LECIE"]
#[inline (always)] pub fn lecie (& mut self) -> LecieW < '_ , CanIerSpec > { LecieW :: new (self , 11) }
#[doc = "Bit 15 - ERRIE"]
#[inline (always)] pub fn errie (& mut self) -> ErrieW < '_ , CanIerSpec > { ErrieW :: new (self , 15) }
#[doc = "Bit 16 - WKUIE"]
#[inline (always)] pub fn wkuie (& mut self) -> WkuieW < '_ , CanIerSpec > { WkuieW :: new (self , 16) }
#[doc = "Bit 17 - SLKIE"]
#[inline (always)] pub fn slkie (& mut self) -> SlkieW < '_ , CanIerSpec > { SlkieW :: new (self , 17) } }
#[doc = "CAN_IER\n\nYou can [`read`](crate::Reg::read) this register and get [`can_ier::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_ier::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanIerSpec ; impl crate :: RegisterSpec for CanIerSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_ier::R`](R) reader structure"] impl crate :: Readable for CanIerSpec { }
#[doc = "`write(|w| ..)` method takes [`can_ier::W`](W) writer structure"] impl crate :: Writable for CanIerSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_IER to value 0"] impl crate :: Resettable for CanIerSpec { } }
#[doc = "CAN_ESR (rw) register accessor: CAN_ESR\n\nYou can [`read`](crate::Reg::read) this register and get [`can_esr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_esr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_esr`] module"]
#[doc (alias = "CAN_ESR")] pub type CanEsr = crate :: Reg < can_esr :: CanEsrSpec > ;
#[doc = "CAN_ESR"] pub mod can_esr {
#[doc = "Register `CAN_ESR` reader"] pub type R = crate :: R < CanEsrSpec > ;
#[doc = "Register `CAN_ESR` writer"] pub type W = crate :: W < CanEsrSpec > ;
#[doc = "Field `EWGF` reader - EWGF"] pub type EwgfR = crate :: BitReader ;
#[doc = "Field `EPVF` reader - EPVF"] pub type EpvfR = crate :: BitReader ;
#[doc = "Field `BOFF` reader - BOFF"] pub type BoffR = crate :: BitReader ;
#[doc = "Field `LEC` reader - LEC"] pub type LecR = crate :: FieldReader ;
#[doc = "Field `LEC` writer - LEC"] pub type LecW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `TEC` reader - TEC"] pub type TecR = crate :: FieldReader ;
#[doc = "Field `REC` reader - REC"] pub type RecR = crate :: FieldReader ; impl R {
#[doc = "Bit 0 - EWGF"]
#[inline (always)] pub fn ewgf (& self) -> EwgfR { EwgfR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - EPVF"]
#[inline (always)] pub fn epvf (& self) -> EpvfR { EpvfR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - BOFF"]
#[inline (always)] pub fn boff (& self) -> BoffR { BoffR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bits 4:6 - LEC"]
#[inline (always)] pub fn lec (& self) -> LecR { LecR :: new (((self . bits >> 4) & 7) as u8) }
#[doc = "Bits 16:23 - TEC"]
#[inline (always)] pub fn tec (& self) -> TecR { TecR :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - REC"]
#[inline (always)] pub fn rec (& self) -> RecR { RecR :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 4:6 - LEC"]
#[inline (always)] pub fn lec (& mut self) -> LecW < '_ , CanEsrSpec > { LecW :: new (self , 4) } }
#[doc = "CAN_ESR\n\nYou can [`read`](crate::Reg::read) this register and get [`can_esr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_esr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanEsrSpec ; impl crate :: RegisterSpec for CanEsrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_esr::R`](R) reader structure"] impl crate :: Readable for CanEsrSpec { }
#[doc = "`write(|w| ..)` method takes [`can_esr::W`](W) writer structure"] impl crate :: Writable for CanEsrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_ESR to value 0"] impl crate :: Resettable for CanEsrSpec { } }
#[doc = "CAN_BTR (rw) register accessor: CAN_BTR\n\nYou can [`read`](crate::Reg::read) this register and get [`can_btr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_btr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_btr`] module"]
#[doc (alias = "CAN_BTR")] pub type CanBtr = crate :: Reg < can_btr :: CanBtrSpec > ;
#[doc = "CAN_BTR"] pub mod can_btr {
#[doc = "Register `CAN_BTR` reader"] pub type R = crate :: R < CanBtrSpec > ;
#[doc = "Register `CAN_BTR` writer"] pub type W = crate :: W < CanBtrSpec > ;
#[doc = "Field `BRP` reader - BRP"] pub type BrpR = crate :: FieldReader < u16 > ;
#[doc = "Field `BRP` writer - BRP"] pub type BrpW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `TS1` reader - TS1"] pub type Ts1R = crate :: FieldReader ;
#[doc = "Field `TS1` writer - TS1"] pub type Ts1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `TS2` reader - TS2"] pub type Ts2R = crate :: FieldReader ;
#[doc = "Field `TS2` writer - TS2"] pub type Ts2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SJW` reader - SJW"] pub type SjwR = crate :: FieldReader ;
#[doc = "Field `SJW` writer - SJW"] pub type SjwW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `LBKM` reader - LBKM"] pub type LbkmR = crate :: BitReader ;
#[doc = "Field `LBKM` writer - LBKM"] pub type LbkmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SILM` reader - SILM"] pub type SilmR = crate :: BitReader ;
#[doc = "Field `SILM` writer - SILM"] pub type SilmW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:9 - BRP"]
#[inline (always)] pub fn brp (& self) -> BrpR { BrpR :: new ((self . bits & 0x03ff) as u16) }
#[doc = "Bits 16:19 - TS1"]
#[inline (always)] pub fn ts1 (& self) -> Ts1R { Ts1R :: new (((self . bits >> 16) & 0x0f) as u8) }
#[doc = "Bits 20:22 - TS2"]
#[inline (always)] pub fn ts2 (& self) -> Ts2R { Ts2R :: new (((self . bits >> 20) & 7) as u8) }
#[doc = "Bits 24:25 - SJW"]
#[inline (always)] pub fn sjw (& self) -> SjwR { SjwR :: new (((self . bits >> 24) & 3) as u8) }
#[doc = "Bit 30 - LBKM"]
#[inline (always)] pub fn lbkm (& self) -> LbkmR { LbkmR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - SILM"]
#[inline (always)] pub fn silm (& self) -> SilmR { SilmR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:9 - BRP"]
#[inline (always)] pub fn brp (& mut self) -> BrpW < '_ , CanBtrSpec > { BrpW :: new (self , 0) }
#[doc = "Bits 16:19 - TS1"]
#[inline (always)] pub fn ts1 (& mut self) -> Ts1W < '_ , CanBtrSpec > { Ts1W :: new (self , 16) }
#[doc = "Bits 20:22 - TS2"]
#[inline (always)] pub fn ts2 (& mut self) -> Ts2W < '_ , CanBtrSpec > { Ts2W :: new (self , 20) }
#[doc = "Bits 24:25 - SJW"]
#[inline (always)] pub fn sjw (& mut self) -> SjwW < '_ , CanBtrSpec > { SjwW :: new (self , 24) }
#[doc = "Bit 30 - LBKM"]
#[inline (always)] pub fn lbkm (& mut self) -> LbkmW < '_ , CanBtrSpec > { LbkmW :: new (self , 30) }
#[doc = "Bit 31 - SILM"]
#[inline (always)] pub fn silm (& mut self) -> SilmW < '_ , CanBtrSpec > { SilmW :: new (self , 31) } }
#[doc = "CAN_BTR\n\nYou can [`read`](crate::Reg::read) this register and get [`can_btr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_btr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanBtrSpec ; impl crate :: RegisterSpec for CanBtrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_btr::R`](R) reader structure"] impl crate :: Readable for CanBtrSpec { }
#[doc = "`write(|w| ..)` method takes [`can_btr::W`](W) writer structure"] impl crate :: Writable for CanBtrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_BTR to value 0"] impl crate :: Resettable for CanBtrSpec { } }
#[doc = "CAN_TI0R (rw) register accessor: CAN_TI0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_ti0r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_ti0r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_ti0r`] module"]
#[doc (alias = "CAN_TI0R")] pub type CanTi0r = crate :: Reg < can_ti0r :: CanTi0rSpec > ;
#[doc = "CAN_TI0R"] pub mod can_ti0r {
#[doc = "Register `CAN_TI0R` reader"] pub type R = crate :: R < CanTi0rSpec > ;
#[doc = "Register `CAN_TI0R` writer"] pub type W = crate :: W < CanTi0rSpec > ;
#[doc = "Field `TXRQ` reader - TXRQ"] pub type TxrqR = crate :: BitReader ;
#[doc = "Field `TXRQ` writer - TXRQ"] pub type TxrqW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RTR` reader - RTR"] pub type RtrR = crate :: BitReader ;
#[doc = "Field `RTR` writer - RTR"] pub type RtrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IDE` reader - IDE"] pub type IdeR = crate :: BitReader ;
#[doc = "Field `IDE` writer - IDE"] pub type IdeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EXID` reader - EXID"] pub type ExidR = crate :: FieldReader < u32 > ;
#[doc = "Field `EXID` writer - EXID"] pub type ExidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 18 , u32 > ;
#[doc = "Field `STID` reader - STID"] pub type StidR = crate :: FieldReader < u16 > ;
#[doc = "Field `STID` writer - STID"] pub type StidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ; impl R {
#[doc = "Bit 0 - TXRQ"]
#[inline (always)] pub fn txrq (& self) -> TxrqR { TxrqR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - RTR"]
#[inline (always)] pub fn rtr (& self) -> RtrR { RtrR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - IDE"]
#[inline (always)] pub fn ide (& self) -> IdeR { IdeR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bits 3:20 - EXID"]
#[inline (always)] pub fn exid (& self) -> ExidR { ExidR :: new ((self . bits >> 3) & 0x0003_ffff) }
#[doc = "Bits 21:31 - STID"]
#[inline (always)] pub fn stid (& self) -> StidR { StidR :: new (((self . bits >> 21) & 0x07ff) as u16) } } impl W {
#[doc = "Bit 0 - TXRQ"]
#[inline (always)] pub fn txrq (& mut self) -> TxrqW < '_ , CanTi0rSpec > { TxrqW :: new (self , 0) }
#[doc = "Bit 1 - RTR"]
#[inline (always)] pub fn rtr (& mut self) -> RtrW < '_ , CanTi0rSpec > { RtrW :: new (self , 1) }
#[doc = "Bit 2 - IDE"]
#[inline (always)] pub fn ide (& mut self) -> IdeW < '_ , CanTi0rSpec > { IdeW :: new (self , 2) }
#[doc = "Bits 3:20 - EXID"]
#[inline (always)] pub fn exid (& mut self) -> ExidW < '_ , CanTi0rSpec > { ExidW :: new (self , 3) }
#[doc = "Bits 21:31 - STID"]
#[inline (always)] pub fn stid (& mut self) -> StidW < '_ , CanTi0rSpec > { StidW :: new (self , 21) } }
#[doc = "CAN_TI0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_ti0r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_ti0r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanTi0rSpec ; impl crate :: RegisterSpec for CanTi0rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_ti0r::R`](R) reader structure"] impl crate :: Readable for CanTi0rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_ti0r::W`](W) writer structure"] impl crate :: Writable for CanTi0rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_TI0R to value 0"] impl crate :: Resettable for CanTi0rSpec { } }
#[doc = "CAN_TDT0R (rw) register accessor: CAN_TDT0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdt0r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdt0r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_tdt0r`] module"]
#[doc (alias = "CAN_TDT0R")] pub type CanTdt0r = crate :: Reg < can_tdt0r :: CanTdt0rSpec > ;
#[doc = "CAN_TDT0R"] pub mod can_tdt0r {
#[doc = "Register `CAN_TDT0R` reader"] pub type R = crate :: R < CanTdt0rSpec > ;
#[doc = "Register `CAN_TDT0R` writer"] pub type W = crate :: W < CanTdt0rSpec > ;
#[doc = "Field `DLC` reader - DLC"] pub type DlcR = crate :: FieldReader ;
#[doc = "Field `DLC` writer - DLC"] pub type DlcW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `TGT` reader - TGT"] pub type TgtR = crate :: BitReader ;
#[doc = "Field `TGT` writer - TGT"] pub type TgtW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIME` reader - TIME"] pub type TimeR = crate :: FieldReader < u16 > ;
#[doc = "Field `TIME` writer - TIME"] pub type TimeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:3 - DLC"]
#[inline (always)] pub fn dlc (& self) -> DlcR { DlcR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bit 8 - TGT"]
#[inline (always)] pub fn tgt (& self) -> TgtR { TgtR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bits 16:31 - TIME"]
#[inline (always)] pub fn time (& self) -> TimeR { TimeR :: new (((self . bits >> 16) & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:3 - DLC"]
#[inline (always)] pub fn dlc (& mut self) -> DlcW < '_ , CanTdt0rSpec > { DlcW :: new (self , 0) }
#[doc = "Bit 8 - TGT"]
#[inline (always)] pub fn tgt (& mut self) -> TgtW < '_ , CanTdt0rSpec > { TgtW :: new (self , 8) }
#[doc = "Bits 16:31 - TIME"]
#[inline (always)] pub fn time (& mut self) -> TimeW < '_ , CanTdt0rSpec > { TimeW :: new (self , 16) } }
#[doc = "CAN_TDT0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdt0r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdt0r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanTdt0rSpec ; impl crate :: RegisterSpec for CanTdt0rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_tdt0r::R`](R) reader structure"] impl crate :: Readable for CanTdt0rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_tdt0r::W`](W) writer structure"] impl crate :: Writable for CanTdt0rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_TDT0R to value 0"] impl crate :: Resettable for CanTdt0rSpec { } }
#[doc = "CAN_TDL0R (rw) register accessor: CAN_TDL0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdl0r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdl0r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_tdl0r`] module"]
#[doc (alias = "CAN_TDL0R")] pub type CanTdl0r = crate :: Reg < can_tdl0r :: CanTdl0rSpec > ;
#[doc = "CAN_TDL0R"] pub mod can_tdl0r {
#[doc = "Register `CAN_TDL0R` reader"] pub type R = crate :: R < CanTdl0rSpec > ;
#[doc = "Register `CAN_TDL0R` writer"] pub type W = crate :: W < CanTdl0rSpec > ;
#[doc = "Field `DATA0` reader - DATA0"] pub type Data0R = crate :: FieldReader ;
#[doc = "Field `DATA0` writer - DATA0"] pub type Data0W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA1` reader - DATA1"] pub type Data1R = crate :: FieldReader ;
#[doc = "Field `DATA1` writer - DATA1"] pub type Data1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA2` reader - DATA2"] pub type Data2R = crate :: FieldReader ;
#[doc = "Field `DATA2` writer - DATA2"] pub type Data2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA3` reader - DATA3"] pub type Data3R = crate :: FieldReader ;
#[doc = "Field `DATA3` writer - DATA3"] pub type Data3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - DATA0"]
#[inline (always)] pub fn data0 (& self) -> Data0R { Data0R :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - DATA1"]
#[inline (always)] pub fn data1 (& self) -> Data1R { Data1R :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - DATA2"]
#[inline (always)] pub fn data2 (& self) -> Data2R { Data2R :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - DATA3"]
#[inline (always)] pub fn data3 (& self) -> Data3R { Data3R :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - DATA0"]
#[inline (always)] pub fn data0 (& mut self) -> Data0W < '_ , CanTdl0rSpec > { Data0W :: new (self , 0) }
#[doc = "Bits 8:15 - DATA1"]
#[inline (always)] pub fn data1 (& mut self) -> Data1W < '_ , CanTdl0rSpec > { Data1W :: new (self , 8) }
#[doc = "Bits 16:23 - DATA2"]
#[inline (always)] pub fn data2 (& mut self) -> Data2W < '_ , CanTdl0rSpec > { Data2W :: new (self , 16) }
#[doc = "Bits 24:31 - DATA3"]
#[inline (always)] pub fn data3 (& mut self) -> Data3W < '_ , CanTdl0rSpec > { Data3W :: new (self , 24) } }
#[doc = "CAN_TDL0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdl0r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdl0r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanTdl0rSpec ; impl crate :: RegisterSpec for CanTdl0rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_tdl0r::R`](R) reader structure"] impl crate :: Readable for CanTdl0rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_tdl0r::W`](W) writer structure"] impl crate :: Writable for CanTdl0rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_TDL0R to value 0"] impl crate :: Resettable for CanTdl0rSpec { } }
#[doc = "CAN_TDH0R (rw) register accessor: CAN_TDH0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdh0r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdh0r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_tdh0r`] module"]
#[doc (alias = "CAN_TDH0R")] pub type CanTdh0r = crate :: Reg < can_tdh0r :: CanTdh0rSpec > ;
#[doc = "CAN_TDH0R"] pub mod can_tdh0r {
#[doc = "Register `CAN_TDH0R` reader"] pub type R = crate :: R < CanTdh0rSpec > ;
#[doc = "Register `CAN_TDH0R` writer"] pub type W = crate :: W < CanTdh0rSpec > ;
#[doc = "Field `DATA4` reader - DATA4"] pub type Data4R = crate :: FieldReader ;
#[doc = "Field `DATA4` writer - DATA4"] pub type Data4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA5` reader - DATA5"] pub type Data5R = crate :: FieldReader ;
#[doc = "Field `DATA5` writer - DATA5"] pub type Data5W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA6` reader - DATA6"] pub type Data6R = crate :: FieldReader ;
#[doc = "Field `DATA6` writer - DATA6"] pub type Data6W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA7` reader - DATA7"] pub type Data7R = crate :: FieldReader ;
#[doc = "Field `DATA7` writer - DATA7"] pub type Data7W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - DATA4"]
#[inline (always)] pub fn data4 (& self) -> Data4R { Data4R :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - DATA5"]
#[inline (always)] pub fn data5 (& self) -> Data5R { Data5R :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - DATA6"]
#[inline (always)] pub fn data6 (& self) -> Data6R { Data6R :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - DATA7"]
#[inline (always)] pub fn data7 (& self) -> Data7R { Data7R :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - DATA4"]
#[inline (always)] pub fn data4 (& mut self) -> Data4W < '_ , CanTdh0rSpec > { Data4W :: new (self , 0) }
#[doc = "Bits 8:15 - DATA5"]
#[inline (always)] pub fn data5 (& mut self) -> Data5W < '_ , CanTdh0rSpec > { Data5W :: new (self , 8) }
#[doc = "Bits 16:23 - DATA6"]
#[inline (always)] pub fn data6 (& mut self) -> Data6W < '_ , CanTdh0rSpec > { Data6W :: new (self , 16) }
#[doc = "Bits 24:31 - DATA7"]
#[inline (always)] pub fn data7 (& mut self) -> Data7W < '_ , CanTdh0rSpec > { Data7W :: new (self , 24) } }
#[doc = "CAN_TDH0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdh0r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdh0r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanTdh0rSpec ; impl crate :: RegisterSpec for CanTdh0rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_tdh0r::R`](R) reader structure"] impl crate :: Readable for CanTdh0rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_tdh0r::W`](W) writer structure"] impl crate :: Writable for CanTdh0rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_TDH0R to value 0"] impl crate :: Resettable for CanTdh0rSpec { } }
#[doc = "CAN_TI1R (rw) register accessor: CAN_TI1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_ti1r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_ti1r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_ti1r`] module"]
#[doc (alias = "CAN_TI1R")] pub type CanTi1r = crate :: Reg < can_ti1r :: CanTi1rSpec > ;
#[doc = "CAN_TI1R"] pub mod can_ti1r {
#[doc = "Register `CAN_TI1R` reader"] pub type R = crate :: R < CanTi1rSpec > ;
#[doc = "Register `CAN_TI1R` writer"] pub type W = crate :: W < CanTi1rSpec > ;
#[doc = "Field `TXRQ` reader - TXRQ"] pub type TxrqR = crate :: BitReader ;
#[doc = "Field `TXRQ` writer - TXRQ"] pub type TxrqW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RTR` reader - RTR"] pub type RtrR = crate :: BitReader ;
#[doc = "Field `RTR` writer - RTR"] pub type RtrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IDE` reader - IDE"] pub type IdeR = crate :: BitReader ;
#[doc = "Field `IDE` writer - IDE"] pub type IdeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EXID` reader - EXID"] pub type ExidR = crate :: FieldReader < u32 > ;
#[doc = "Field `EXID` writer - EXID"] pub type ExidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 18 , u32 > ;
#[doc = "Field `STID` reader - STID"] pub type StidR = crate :: FieldReader < u16 > ;
#[doc = "Field `STID` writer - STID"] pub type StidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ; impl R {
#[doc = "Bit 0 - TXRQ"]
#[inline (always)] pub fn txrq (& self) -> TxrqR { TxrqR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - RTR"]
#[inline (always)] pub fn rtr (& self) -> RtrR { RtrR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - IDE"]
#[inline (always)] pub fn ide (& self) -> IdeR { IdeR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bits 3:20 - EXID"]
#[inline (always)] pub fn exid (& self) -> ExidR { ExidR :: new ((self . bits >> 3) & 0x0003_ffff) }
#[doc = "Bits 21:31 - STID"]
#[inline (always)] pub fn stid (& self) -> StidR { StidR :: new (((self . bits >> 21) & 0x07ff) as u16) } } impl W {
#[doc = "Bit 0 - TXRQ"]
#[inline (always)] pub fn txrq (& mut self) -> TxrqW < '_ , CanTi1rSpec > { TxrqW :: new (self , 0) }
#[doc = "Bit 1 - RTR"]
#[inline (always)] pub fn rtr (& mut self) -> RtrW < '_ , CanTi1rSpec > { RtrW :: new (self , 1) }
#[doc = "Bit 2 - IDE"]
#[inline (always)] pub fn ide (& mut self) -> IdeW < '_ , CanTi1rSpec > { IdeW :: new (self , 2) }
#[doc = "Bits 3:20 - EXID"]
#[inline (always)] pub fn exid (& mut self) -> ExidW < '_ , CanTi1rSpec > { ExidW :: new (self , 3) }
#[doc = "Bits 21:31 - STID"]
#[inline (always)] pub fn stid (& mut self) -> StidW < '_ , CanTi1rSpec > { StidW :: new (self , 21) } }
#[doc = "CAN_TI1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_ti1r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_ti1r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanTi1rSpec ; impl crate :: RegisterSpec for CanTi1rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_ti1r::R`](R) reader structure"] impl crate :: Readable for CanTi1rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_ti1r::W`](W) writer structure"] impl crate :: Writable for CanTi1rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_TI1R to value 0"] impl crate :: Resettable for CanTi1rSpec { } }
#[doc = "CAN_TDT1R (rw) register accessor: CAN_TDT1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdt1r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdt1r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_tdt1r`] module"]
#[doc (alias = "CAN_TDT1R")] pub type CanTdt1r = crate :: Reg < can_tdt1r :: CanTdt1rSpec > ;
#[doc = "CAN_TDT1R"] pub mod can_tdt1r {
#[doc = "Register `CAN_TDT1R` reader"] pub type R = crate :: R < CanTdt1rSpec > ;
#[doc = "Register `CAN_TDT1R` writer"] pub type W = crate :: W < CanTdt1rSpec > ;
#[doc = "Field `DLC` reader - DLC"] pub type DlcR = crate :: FieldReader ;
#[doc = "Field `DLC` writer - DLC"] pub type DlcW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `TGT` reader - TGT"] pub type TgtR = crate :: BitReader ;
#[doc = "Field `TGT` writer - TGT"] pub type TgtW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIME` reader - TIME"] pub type TimeR = crate :: FieldReader < u16 > ;
#[doc = "Field `TIME` writer - TIME"] pub type TimeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:3 - DLC"]
#[inline (always)] pub fn dlc (& self) -> DlcR { DlcR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bit 8 - TGT"]
#[inline (always)] pub fn tgt (& self) -> TgtR { TgtR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bits 16:31 - TIME"]
#[inline (always)] pub fn time (& self) -> TimeR { TimeR :: new (((self . bits >> 16) & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:3 - DLC"]
#[inline (always)] pub fn dlc (& mut self) -> DlcW < '_ , CanTdt1rSpec > { DlcW :: new (self , 0) }
#[doc = "Bit 8 - TGT"]
#[inline (always)] pub fn tgt (& mut self) -> TgtW < '_ , CanTdt1rSpec > { TgtW :: new (self , 8) }
#[doc = "Bits 16:31 - TIME"]
#[inline (always)] pub fn time (& mut self) -> TimeW < '_ , CanTdt1rSpec > { TimeW :: new (self , 16) } }
#[doc = "CAN_TDT1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdt1r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdt1r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanTdt1rSpec ; impl crate :: RegisterSpec for CanTdt1rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_tdt1r::R`](R) reader structure"] impl crate :: Readable for CanTdt1rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_tdt1r::W`](W) writer structure"] impl crate :: Writable for CanTdt1rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_TDT1R to value 0"] impl crate :: Resettable for CanTdt1rSpec { } }
#[doc = "CAN_TDL1R (rw) register accessor: CAN_TDL1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdl1r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdl1r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_tdl1r`] module"]
#[doc (alias = "CAN_TDL1R")] pub type CanTdl1r = crate :: Reg < can_tdl1r :: CanTdl1rSpec > ;
#[doc = "CAN_TDL1R"] pub mod can_tdl1r {
#[doc = "Register `CAN_TDL1R` reader"] pub type R = crate :: R < CanTdl1rSpec > ;
#[doc = "Register `CAN_TDL1R` writer"] pub type W = crate :: W < CanTdl1rSpec > ;
#[doc = "Field `DATA0` reader - DATA0"] pub type Data0R = crate :: FieldReader ;
#[doc = "Field `DATA0` writer - DATA0"] pub type Data0W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA1` reader - DATA1"] pub type Data1R = crate :: FieldReader ;
#[doc = "Field `DATA1` writer - DATA1"] pub type Data1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA2` reader - DATA2"] pub type Data2R = crate :: FieldReader ;
#[doc = "Field `DATA2` writer - DATA2"] pub type Data2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA3` reader - DATA3"] pub type Data3R = crate :: FieldReader ;
#[doc = "Field `DATA3` writer - DATA3"] pub type Data3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - DATA0"]
#[inline (always)] pub fn data0 (& self) -> Data0R { Data0R :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - DATA1"]
#[inline (always)] pub fn data1 (& self) -> Data1R { Data1R :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - DATA2"]
#[inline (always)] pub fn data2 (& self) -> Data2R { Data2R :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - DATA3"]
#[inline (always)] pub fn data3 (& self) -> Data3R { Data3R :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - DATA0"]
#[inline (always)] pub fn data0 (& mut self) -> Data0W < '_ , CanTdl1rSpec > { Data0W :: new (self , 0) }
#[doc = "Bits 8:15 - DATA1"]
#[inline (always)] pub fn data1 (& mut self) -> Data1W < '_ , CanTdl1rSpec > { Data1W :: new (self , 8) }
#[doc = "Bits 16:23 - DATA2"]
#[inline (always)] pub fn data2 (& mut self) -> Data2W < '_ , CanTdl1rSpec > { Data2W :: new (self , 16) }
#[doc = "Bits 24:31 - DATA3"]
#[inline (always)] pub fn data3 (& mut self) -> Data3W < '_ , CanTdl1rSpec > { Data3W :: new (self , 24) } }
#[doc = "CAN_TDL1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdl1r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdl1r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanTdl1rSpec ; impl crate :: RegisterSpec for CanTdl1rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_tdl1r::R`](R) reader structure"] impl crate :: Readable for CanTdl1rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_tdl1r::W`](W) writer structure"] impl crate :: Writable for CanTdl1rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_TDL1R to value 0"] impl crate :: Resettable for CanTdl1rSpec { } }
#[doc = "CAN_TDH1R (rw) register accessor: CAN_TDH1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdh1r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdh1r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_tdh1r`] module"]
#[doc (alias = "CAN_TDH1R")] pub type CanTdh1r = crate :: Reg < can_tdh1r :: CanTdh1rSpec > ;
#[doc = "CAN_TDH1R"] pub mod can_tdh1r {
#[doc = "Register `CAN_TDH1R` reader"] pub type R = crate :: R < CanTdh1rSpec > ;
#[doc = "Register `CAN_TDH1R` writer"] pub type W = crate :: W < CanTdh1rSpec > ;
#[doc = "Field `DATA4` reader - DATA4"] pub type Data4R = crate :: FieldReader ;
#[doc = "Field `DATA4` writer - DATA4"] pub type Data4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA5` reader - DATA5"] pub type Data5R = crate :: FieldReader ;
#[doc = "Field `DATA5` writer - DATA5"] pub type Data5W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA6` reader - DATA6"] pub type Data6R = crate :: FieldReader ;
#[doc = "Field `DATA6` writer - DATA6"] pub type Data6W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA7` reader - DATA7"] pub type Data7R = crate :: FieldReader ;
#[doc = "Field `DATA7` writer - DATA7"] pub type Data7W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - DATA4"]
#[inline (always)] pub fn data4 (& self) -> Data4R { Data4R :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - DATA5"]
#[inline (always)] pub fn data5 (& self) -> Data5R { Data5R :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - DATA6"]
#[inline (always)] pub fn data6 (& self) -> Data6R { Data6R :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - DATA7"]
#[inline (always)] pub fn data7 (& self) -> Data7R { Data7R :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - DATA4"]
#[inline (always)] pub fn data4 (& mut self) -> Data4W < '_ , CanTdh1rSpec > { Data4W :: new (self , 0) }
#[doc = "Bits 8:15 - DATA5"]
#[inline (always)] pub fn data5 (& mut self) -> Data5W < '_ , CanTdh1rSpec > { Data5W :: new (self , 8) }
#[doc = "Bits 16:23 - DATA6"]
#[inline (always)] pub fn data6 (& mut self) -> Data6W < '_ , CanTdh1rSpec > { Data6W :: new (self , 16) }
#[doc = "Bits 24:31 - DATA7"]
#[inline (always)] pub fn data7 (& mut self) -> Data7W < '_ , CanTdh1rSpec > { Data7W :: new (self , 24) } }
#[doc = "CAN_TDH1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdh1r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdh1r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanTdh1rSpec ; impl crate :: RegisterSpec for CanTdh1rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_tdh1r::R`](R) reader structure"] impl crate :: Readable for CanTdh1rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_tdh1r::W`](W) writer structure"] impl crate :: Writable for CanTdh1rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_TDH1R to value 0"] impl crate :: Resettable for CanTdh1rSpec { } }
#[doc = "CAN_TI2R (rw) register accessor: CAN_TI2R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_ti2r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_ti2r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_ti2r`] module"]
#[doc (alias = "CAN_TI2R")] pub type CanTi2r = crate :: Reg < can_ti2r :: CanTi2rSpec > ;
#[doc = "CAN_TI2R"] pub mod can_ti2r {
#[doc = "Register `CAN_TI2R` reader"] pub type R = crate :: R < CanTi2rSpec > ;
#[doc = "Register `CAN_TI2R` writer"] pub type W = crate :: W < CanTi2rSpec > ;
#[doc = "Field `TXRQ` reader - TXRQ"] pub type TxrqR = crate :: BitReader ;
#[doc = "Field `TXRQ` writer - TXRQ"] pub type TxrqW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RTR` reader - RTR"] pub type RtrR = crate :: BitReader ;
#[doc = "Field `RTR` writer - RTR"] pub type RtrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IDE` reader - IDE"] pub type IdeR = crate :: BitReader ;
#[doc = "Field `IDE` writer - IDE"] pub type IdeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EXID` reader - EXID"] pub type ExidR = crate :: FieldReader < u32 > ;
#[doc = "Field `EXID` writer - EXID"] pub type ExidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 18 , u32 > ;
#[doc = "Field `STID` reader - STID"] pub type StidR = crate :: FieldReader < u16 > ;
#[doc = "Field `STID` writer - STID"] pub type StidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ; impl R {
#[doc = "Bit 0 - TXRQ"]
#[inline (always)] pub fn txrq (& self) -> TxrqR { TxrqR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - RTR"]
#[inline (always)] pub fn rtr (& self) -> RtrR { RtrR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - IDE"]
#[inline (always)] pub fn ide (& self) -> IdeR { IdeR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bits 3:20 - EXID"]
#[inline (always)] pub fn exid (& self) -> ExidR { ExidR :: new ((self . bits >> 3) & 0x0003_ffff) }
#[doc = "Bits 21:31 - STID"]
#[inline (always)] pub fn stid (& self) -> StidR { StidR :: new (((self . bits >> 21) & 0x07ff) as u16) } } impl W {
#[doc = "Bit 0 - TXRQ"]
#[inline (always)] pub fn txrq (& mut self) -> TxrqW < '_ , CanTi2rSpec > { TxrqW :: new (self , 0) }
#[doc = "Bit 1 - RTR"]
#[inline (always)] pub fn rtr (& mut self) -> RtrW < '_ , CanTi2rSpec > { RtrW :: new (self , 1) }
#[doc = "Bit 2 - IDE"]
#[inline (always)] pub fn ide (& mut self) -> IdeW < '_ , CanTi2rSpec > { IdeW :: new (self , 2) }
#[doc = "Bits 3:20 - EXID"]
#[inline (always)] pub fn exid (& mut self) -> ExidW < '_ , CanTi2rSpec > { ExidW :: new (self , 3) }
#[doc = "Bits 21:31 - STID"]
#[inline (always)] pub fn stid (& mut self) -> StidW < '_ , CanTi2rSpec > { StidW :: new (self , 21) } }
#[doc = "CAN_TI2R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_ti2r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_ti2r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanTi2rSpec ; impl crate :: RegisterSpec for CanTi2rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_ti2r::R`](R) reader structure"] impl crate :: Readable for CanTi2rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_ti2r::W`](W) writer structure"] impl crate :: Writable for CanTi2rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_TI2R to value 0"] impl crate :: Resettable for CanTi2rSpec { } }
#[doc = "CAN_TDT2R (rw) register accessor: CAN_TDT2R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdt2r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdt2r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_tdt2r`] module"]
#[doc (alias = "CAN_TDT2R")] pub type CanTdt2r = crate :: Reg < can_tdt2r :: CanTdt2rSpec > ;
#[doc = "CAN_TDT2R"] pub mod can_tdt2r {
#[doc = "Register `CAN_TDT2R` reader"] pub type R = crate :: R < CanTdt2rSpec > ;
#[doc = "Register `CAN_TDT2R` writer"] pub type W = crate :: W < CanTdt2rSpec > ;
#[doc = "Field `DLC` reader - DLC"] pub type DlcR = crate :: FieldReader ;
#[doc = "Field `DLC` writer - DLC"] pub type DlcW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `TGT` reader - TGT"] pub type TgtR = crate :: BitReader ;
#[doc = "Field `TGT` writer - TGT"] pub type TgtW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TIME` reader - TIME"] pub type TimeR = crate :: FieldReader < u16 > ;
#[doc = "Field `TIME` writer - TIME"] pub type TimeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:3 - DLC"]
#[inline (always)] pub fn dlc (& self) -> DlcR { DlcR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bit 8 - TGT"]
#[inline (always)] pub fn tgt (& self) -> TgtR { TgtR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bits 16:31 - TIME"]
#[inline (always)] pub fn time (& self) -> TimeR { TimeR :: new (((self . bits >> 16) & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:3 - DLC"]
#[inline (always)] pub fn dlc (& mut self) -> DlcW < '_ , CanTdt2rSpec > { DlcW :: new (self , 0) }
#[doc = "Bit 8 - TGT"]
#[inline (always)] pub fn tgt (& mut self) -> TgtW < '_ , CanTdt2rSpec > { TgtW :: new (self , 8) }
#[doc = "Bits 16:31 - TIME"]
#[inline (always)] pub fn time (& mut self) -> TimeW < '_ , CanTdt2rSpec > { TimeW :: new (self , 16) } }
#[doc = "CAN_TDT2R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdt2r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdt2r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanTdt2rSpec ; impl crate :: RegisterSpec for CanTdt2rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_tdt2r::R`](R) reader structure"] impl crate :: Readable for CanTdt2rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_tdt2r::W`](W) writer structure"] impl crate :: Writable for CanTdt2rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_TDT2R to value 0"] impl crate :: Resettable for CanTdt2rSpec { } }
#[doc = "CAN_TDL2R (rw) register accessor: CAN_TDL2R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdl2r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdl2r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_tdl2r`] module"]
#[doc (alias = "CAN_TDL2R")] pub type CanTdl2r = crate :: Reg < can_tdl2r :: CanTdl2rSpec > ;
#[doc = "CAN_TDL2R"] pub mod can_tdl2r {
#[doc = "Register `CAN_TDL2R` reader"] pub type R = crate :: R < CanTdl2rSpec > ;
#[doc = "Register `CAN_TDL2R` writer"] pub type W = crate :: W < CanTdl2rSpec > ;
#[doc = "Field `DATA0` reader - DATA0"] pub type Data0R = crate :: FieldReader ;
#[doc = "Field `DATA0` writer - DATA0"] pub type Data0W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA1` reader - DATA1"] pub type Data1R = crate :: FieldReader ;
#[doc = "Field `DATA1` writer - DATA1"] pub type Data1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA2` reader - DATA2"] pub type Data2R = crate :: FieldReader ;
#[doc = "Field `DATA2` writer - DATA2"] pub type Data2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA3` reader - DATA3"] pub type Data3R = crate :: FieldReader ;
#[doc = "Field `DATA3` writer - DATA3"] pub type Data3W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - DATA0"]
#[inline (always)] pub fn data0 (& self) -> Data0R { Data0R :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - DATA1"]
#[inline (always)] pub fn data1 (& self) -> Data1R { Data1R :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - DATA2"]
#[inline (always)] pub fn data2 (& self) -> Data2R { Data2R :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - DATA3"]
#[inline (always)] pub fn data3 (& self) -> Data3R { Data3R :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - DATA0"]
#[inline (always)] pub fn data0 (& mut self) -> Data0W < '_ , CanTdl2rSpec > { Data0W :: new (self , 0) }
#[doc = "Bits 8:15 - DATA1"]
#[inline (always)] pub fn data1 (& mut self) -> Data1W < '_ , CanTdl2rSpec > { Data1W :: new (self , 8) }
#[doc = "Bits 16:23 - DATA2"]
#[inline (always)] pub fn data2 (& mut self) -> Data2W < '_ , CanTdl2rSpec > { Data2W :: new (self , 16) }
#[doc = "Bits 24:31 - DATA3"]
#[inline (always)] pub fn data3 (& mut self) -> Data3W < '_ , CanTdl2rSpec > { Data3W :: new (self , 24) } }
#[doc = "CAN_TDL2R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdl2r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdl2r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanTdl2rSpec ; impl crate :: RegisterSpec for CanTdl2rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_tdl2r::R`](R) reader structure"] impl crate :: Readable for CanTdl2rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_tdl2r::W`](W) writer structure"] impl crate :: Writable for CanTdl2rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_TDL2R to value 0"] impl crate :: Resettable for CanTdl2rSpec { } }
#[doc = "CAN_TDH2R (rw) register accessor: CAN_TDH2R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdh2r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdh2r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_tdh2r`] module"]
#[doc (alias = "CAN_TDH2R")] pub type CanTdh2r = crate :: Reg < can_tdh2r :: CanTdh2rSpec > ;
#[doc = "CAN_TDH2R"] pub mod can_tdh2r {
#[doc = "Register `CAN_TDH2R` reader"] pub type R = crate :: R < CanTdh2rSpec > ;
#[doc = "Register `CAN_TDH2R` writer"] pub type W = crate :: W < CanTdh2rSpec > ;
#[doc = "Field `DATA4` reader - DATA4"] pub type Data4R = crate :: FieldReader ;
#[doc = "Field `DATA4` writer - DATA4"] pub type Data4W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA5` reader - DATA5"] pub type Data5R = crate :: FieldReader ;
#[doc = "Field `DATA5` writer - DATA5"] pub type Data5W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA6` reader - DATA6"] pub type Data6R = crate :: FieldReader ;
#[doc = "Field `DATA6` writer - DATA6"] pub type Data6W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DATA7` reader - DATA7"] pub type Data7R = crate :: FieldReader ;
#[doc = "Field `DATA7` writer - DATA7"] pub type Data7W < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - DATA4"]
#[inline (always)] pub fn data4 (& self) -> Data4R { Data4R :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - DATA5"]
#[inline (always)] pub fn data5 (& self) -> Data5R { Data5R :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - DATA6"]
#[inline (always)] pub fn data6 (& self) -> Data6R { Data6R :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - DATA7"]
#[inline (always)] pub fn data7 (& self) -> Data7R { Data7R :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - DATA4"]
#[inline (always)] pub fn data4 (& mut self) -> Data4W < '_ , CanTdh2rSpec > { Data4W :: new (self , 0) }
#[doc = "Bits 8:15 - DATA5"]
#[inline (always)] pub fn data5 (& mut self) -> Data5W < '_ , CanTdh2rSpec > { Data5W :: new (self , 8) }
#[doc = "Bits 16:23 - DATA6"]
#[inline (always)] pub fn data6 (& mut self) -> Data6W < '_ , CanTdh2rSpec > { Data6W :: new (self , 16) }
#[doc = "Bits 24:31 - DATA7"]
#[inline (always)] pub fn data7 (& mut self) -> Data7W < '_ , CanTdh2rSpec > { Data7W :: new (self , 24) } }
#[doc = "CAN_TDH2R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_tdh2r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_tdh2r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanTdh2rSpec ; impl crate :: RegisterSpec for CanTdh2rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_tdh2r::R`](R) reader structure"] impl crate :: Readable for CanTdh2rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_tdh2r::W`](W) writer structure"] impl crate :: Writable for CanTdh2rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_TDH2R to value 0"] impl crate :: Resettable for CanTdh2rSpec { } }
#[doc = "CAN_RI0R (r) register accessor: CAN_RI0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_ri0r::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_ri0r`] module"]
#[doc (alias = "CAN_RI0R")] pub type CanRi0r = crate :: Reg < can_ri0r :: CanRi0rSpec > ;
#[doc = "CAN_RI0R"] pub mod can_ri0r {
#[doc = "Register `CAN_RI0R` reader"] pub type R = crate :: R < CanRi0rSpec > ;
#[doc = "Field `RTR` reader - RTR"] pub type RtrR = crate :: BitReader ;
#[doc = "Field `IDE` reader - IDE"] pub type IdeR = crate :: BitReader ;
#[doc = "Field `EXID` reader - EXID"] pub type ExidR = crate :: FieldReader < u32 > ;
#[doc = "Field `STID` reader - STID"] pub type StidR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bit 1 - RTR"]
#[inline (always)] pub fn rtr (& self) -> RtrR { RtrR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - IDE"]
#[inline (always)] pub fn ide (& self) -> IdeR { IdeR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bits 3:20 - EXID"]
#[inline (always)] pub fn exid (& self) -> ExidR { ExidR :: new ((self . bits >> 3) & 0x0003_ffff) }
#[doc = "Bits 21:31 - STID"]
#[inline (always)] pub fn stid (& self) -> StidR { StidR :: new (((self . bits >> 21) & 0x07ff) as u16) } }
#[doc = "CAN_RI0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_ri0r::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanRi0rSpec ; impl crate :: RegisterSpec for CanRi0rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_ri0r::R`](R) reader structure"] impl crate :: Readable for CanRi0rSpec { }
#[doc = "`reset()` method sets CAN_RI0R to value 0"] impl crate :: Resettable for CanRi0rSpec { } }
#[doc = "CAN_RDT0R (r) register accessor: CAN_RDT0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rdt0r::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_rdt0r`] module"]
#[doc (alias = "CAN_RDT0R")] pub type CanRdt0r = crate :: Reg < can_rdt0r :: CanRdt0rSpec > ;
#[doc = "CAN_RDT0R"] pub mod can_rdt0r {
#[doc = "Register `CAN_RDT0R` reader"] pub type R = crate :: R < CanRdt0rSpec > ;
#[doc = "Field `DLC` reader - DLC"] pub type DlcR = crate :: FieldReader ;
#[doc = "Field `FMI` reader - FMI"] pub type FmiR = crate :: FieldReader ;
#[doc = "Field `TIME` reader - TIME"] pub type TimeR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:3 - DLC"]
#[inline (always)] pub fn dlc (& self) -> DlcR { DlcR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 8:15 - FMI"]
#[inline (always)] pub fn fmi (& self) -> FmiR { FmiR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:31 - TIME"]
#[inline (always)] pub fn time (& self) -> TimeR { TimeR :: new (((self . bits >> 16) & 0xffff) as u16) } }
#[doc = "CAN_RDT0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rdt0r::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanRdt0rSpec ; impl crate :: RegisterSpec for CanRdt0rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_rdt0r::R`](R) reader structure"] impl crate :: Readable for CanRdt0rSpec { }
#[doc = "`reset()` method sets CAN_RDT0R to value 0"] impl crate :: Resettable for CanRdt0rSpec { } }
#[doc = "CAN_RDL0R (r) register accessor: CAN_RDL0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rdl0r::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_rdl0r`] module"]
#[doc (alias = "CAN_RDL0R")] pub type CanRdl0r = crate :: Reg < can_rdl0r :: CanRdl0rSpec > ;
#[doc = "CAN_RDL0R"] pub mod can_rdl0r {
#[doc = "Register `CAN_RDL0R` reader"] pub type R = crate :: R < CanRdl0rSpec > ;
#[doc = "Field `DATA0` reader - DATA0"] pub type Data0R = crate :: FieldReader ;
#[doc = "Field `DATA1` reader - DATA1"] pub type Data1R = crate :: FieldReader ;
#[doc = "Field `DATA2` reader - DATA2"] pub type Data2R = crate :: FieldReader ;
#[doc = "Field `DATA3` reader - DATA3"] pub type Data3R = crate :: FieldReader ; impl R {
#[doc = "Bits 0:7 - DATA0"]
#[inline (always)] pub fn data0 (& self) -> Data0R { Data0R :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - DATA1"]
#[inline (always)] pub fn data1 (& self) -> Data1R { Data1R :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - DATA2"]
#[inline (always)] pub fn data2 (& self) -> Data2R { Data2R :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - DATA3"]
#[inline (always)] pub fn data3 (& self) -> Data3R { Data3R :: new (((self . bits >> 24) & 0xff) as u8) } }
#[doc = "CAN_RDL0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rdl0r::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanRdl0rSpec ; impl crate :: RegisterSpec for CanRdl0rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_rdl0r::R`](R) reader structure"] impl crate :: Readable for CanRdl0rSpec { }
#[doc = "`reset()` method sets CAN_RDL0R to value 0"] impl crate :: Resettable for CanRdl0rSpec { } }
#[doc = "CAN_RDH0R (r) register accessor: CAN_RDH0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rdh0r::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_rdh0r`] module"]
#[doc (alias = "CAN_RDH0R")] pub type CanRdh0r = crate :: Reg < can_rdh0r :: CanRdh0rSpec > ;
#[doc = "CAN_RDH0R"] pub mod can_rdh0r {
#[doc = "Register `CAN_RDH0R` reader"] pub type R = crate :: R < CanRdh0rSpec > ;
#[doc = "Field `DATA4` reader - DATA4"] pub type Data4R = crate :: FieldReader ;
#[doc = "Field `DATA5` reader - DATA5"] pub type Data5R = crate :: FieldReader ;
#[doc = "Field `DATA6` reader - DATA6"] pub type Data6R = crate :: FieldReader ;
#[doc = "Field `DATA7` reader - DATA7"] pub type Data7R = crate :: FieldReader ; impl R {
#[doc = "Bits 0:7 - DATA4"]
#[inline (always)] pub fn data4 (& self) -> Data4R { Data4R :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - DATA5"]
#[inline (always)] pub fn data5 (& self) -> Data5R { Data5R :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - DATA6"]
#[inline (always)] pub fn data6 (& self) -> Data6R { Data6R :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - DATA7"]
#[inline (always)] pub fn data7 (& self) -> Data7R { Data7R :: new (((self . bits >> 24) & 0xff) as u8) } }
#[doc = "CAN_RDH0R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rdh0r::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanRdh0rSpec ; impl crate :: RegisterSpec for CanRdh0rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_rdh0r::R`](R) reader structure"] impl crate :: Readable for CanRdh0rSpec { }
#[doc = "`reset()` method sets CAN_RDH0R to value 0"] impl crate :: Resettable for CanRdh0rSpec { } }
#[doc = "CAN_RI1R (r) register accessor: CAN_RI1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_ri1r::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_ri1r`] module"]
#[doc (alias = "CAN_RI1R")] pub type CanRi1r = crate :: Reg < can_ri1r :: CanRi1rSpec > ;
#[doc = "CAN_RI1R"] pub mod can_ri1r {
#[doc = "Register `CAN_RI1R` reader"] pub type R = crate :: R < CanRi1rSpec > ;
#[doc = "Field `RTR` reader - RTR"] pub type RtrR = crate :: BitReader ;
#[doc = "Field `IDE` reader - IDE"] pub type IdeR = crate :: BitReader ;
#[doc = "Field `EXID` reader - EXID"] pub type ExidR = crate :: FieldReader < u32 > ;
#[doc = "Field `STID` reader - STID"] pub type StidR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bit 1 - RTR"]
#[inline (always)] pub fn rtr (& self) -> RtrR { RtrR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - IDE"]
#[inline (always)] pub fn ide (& self) -> IdeR { IdeR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bits 3:20 - EXID"]
#[inline (always)] pub fn exid (& self) -> ExidR { ExidR :: new ((self . bits >> 3) & 0x0003_ffff) }
#[doc = "Bits 21:31 - STID"]
#[inline (always)] pub fn stid (& self) -> StidR { StidR :: new (((self . bits >> 21) & 0x07ff) as u16) } }
#[doc = "CAN_RI1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_ri1r::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanRi1rSpec ; impl crate :: RegisterSpec for CanRi1rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_ri1r::R`](R) reader structure"] impl crate :: Readable for CanRi1rSpec { }
#[doc = "`reset()` method sets CAN_RI1R to value 0"] impl crate :: Resettable for CanRi1rSpec { } }
#[doc = "CAN_RDT1R (r) register accessor: CAN_RDT1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rdt1r::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_rdt1r`] module"]
#[doc (alias = "CAN_RDT1R")] pub type CanRdt1r = crate :: Reg < can_rdt1r :: CanRdt1rSpec > ;
#[doc = "CAN_RDT1R"] pub mod can_rdt1r {
#[doc = "Register `CAN_RDT1R` reader"] pub type R = crate :: R < CanRdt1rSpec > ;
#[doc = "Field `DLC` reader - DLC"] pub type DlcR = crate :: FieldReader ;
#[doc = "Field `FMI` reader - FMI"] pub type FmiR = crate :: FieldReader ;
#[doc = "Field `TIME` reader - TIME"] pub type TimeR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:3 - DLC"]
#[inline (always)] pub fn dlc (& self) -> DlcR { DlcR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 8:15 - FMI"]
#[inline (always)] pub fn fmi (& self) -> FmiR { FmiR :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:31 - TIME"]
#[inline (always)] pub fn time (& self) -> TimeR { TimeR :: new (((self . bits >> 16) & 0xffff) as u16) } }
#[doc = "CAN_RDT1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rdt1r::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanRdt1rSpec ; impl crate :: RegisterSpec for CanRdt1rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_rdt1r::R`](R) reader structure"] impl crate :: Readable for CanRdt1rSpec { }
#[doc = "`reset()` method sets CAN_RDT1R to value 0"] impl crate :: Resettable for CanRdt1rSpec { } }
#[doc = "CAN_RDL1R (r) register accessor: CAN_RDL1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rdl1r::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_rdl1r`] module"]
#[doc (alias = "CAN_RDL1R")] pub type CanRdl1r = crate :: Reg < can_rdl1r :: CanRdl1rSpec > ;
#[doc = "CAN_RDL1R"] pub mod can_rdl1r {
#[doc = "Register `CAN_RDL1R` reader"] pub type R = crate :: R < CanRdl1rSpec > ;
#[doc = "Field `DATA0` reader - DATA0"] pub type Data0R = crate :: FieldReader ;
#[doc = "Field `DATA1` reader - DATA1"] pub type Data1R = crate :: FieldReader ;
#[doc = "Field `DATA2` reader - DATA2"] pub type Data2R = crate :: FieldReader ;
#[doc = "Field `DATA3` reader - DATA3"] pub type Data3R = crate :: FieldReader ; impl R {
#[doc = "Bits 0:7 - DATA0"]
#[inline (always)] pub fn data0 (& self) -> Data0R { Data0R :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - DATA1"]
#[inline (always)] pub fn data1 (& self) -> Data1R { Data1R :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - DATA2"]
#[inline (always)] pub fn data2 (& self) -> Data2R { Data2R :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - DATA3"]
#[inline (always)] pub fn data3 (& self) -> Data3R { Data3R :: new (((self . bits >> 24) & 0xff) as u8) } }
#[doc = "CAN_RDL1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rdl1r::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanRdl1rSpec ; impl crate :: RegisterSpec for CanRdl1rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_rdl1r::R`](R) reader structure"] impl crate :: Readable for CanRdl1rSpec { }
#[doc = "`reset()` method sets CAN_RDL1R to value 0"] impl crate :: Resettable for CanRdl1rSpec { } }
#[doc = "CAN_RDH1R (r) register accessor: CAN_RDH1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rdh1r::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_rdh1r`] module"]
#[doc (alias = "CAN_RDH1R")] pub type CanRdh1r = crate :: Reg < can_rdh1r :: CanRdh1rSpec > ;
#[doc = "CAN_RDH1R"] pub mod can_rdh1r {
#[doc = "Register `CAN_RDH1R` reader"] pub type R = crate :: R < CanRdh1rSpec > ;
#[doc = "Field `DATA4` reader - DATA4"] pub type Data4R = crate :: FieldReader ;
#[doc = "Field `DATA5` reader - DATA5"] pub type Data5R = crate :: FieldReader ;
#[doc = "Field `DATA6` reader - DATA6"] pub type Data6R = crate :: FieldReader ;
#[doc = "Field `DATA7` reader - DATA7"] pub type Data7R = crate :: FieldReader ; impl R {
#[doc = "Bits 0:7 - DATA4"]
#[inline (always)] pub fn data4 (& self) -> Data4R { Data4R :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - DATA5"]
#[inline (always)] pub fn data5 (& self) -> Data5R { Data5R :: new (((self . bits >> 8) & 0xff) as u8) }
#[doc = "Bits 16:23 - DATA6"]
#[inline (always)] pub fn data6 (& self) -> Data6R { Data6R :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - DATA7"]
#[inline (always)] pub fn data7 (& self) -> Data7R { Data7R :: new (((self . bits >> 24) & 0xff) as u8) } }
#[doc = "CAN_RDH1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rdh1r::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanRdh1rSpec ; impl crate :: RegisterSpec for CanRdh1rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_rdh1r::R`](R) reader structure"] impl crate :: Readable for CanRdh1rSpec { }
#[doc = "`reset()` method sets CAN_RDH1R to value 0"] impl crate :: Resettable for CanRdh1rSpec { } }
#[doc = "CAN_FMR (rw) register accessor: CAN_FMR\n\nYou can [`read`](crate::Reg::read) this register and get [`can_fmr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_fmr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_fmr`] module"]
#[doc (alias = "CAN_FMR")] pub type CanFmr = crate :: Reg < can_fmr :: CanFmrSpec > ;
#[doc = "CAN_FMR"] pub mod can_fmr {
#[doc = "Register `CAN_FMR` reader"] pub type R = crate :: R < CanFmrSpec > ;
#[doc = "Register `CAN_FMR` writer"] pub type W = crate :: W < CanFmrSpec > ;
#[doc = "Field `FINIT` reader - FINIT"] pub type FinitR = crate :: BitReader ;
#[doc = "Field `FINIT` writer - FINIT"] pub type FinitW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - FINIT"]
#[inline (always)] pub fn finit (& self) -> FinitR { FinitR :: new ((self . bits & 1) != 0) } } impl W {
#[doc = "Bit 0 - FINIT"]
#[inline (always)] pub fn finit (& mut self) -> FinitW < '_ , CanFmrSpec > { FinitW :: new (self , 0) } }
#[doc = "CAN_FMR\n\nYou can [`read`](crate::Reg::read) this register and get [`can_fmr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_fmr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanFmrSpec ; impl crate :: RegisterSpec for CanFmrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_fmr::R`](R) reader structure"] impl crate :: Readable for CanFmrSpec { }
#[doc = "`write(|w| ..)` method takes [`can_fmr::W`](W) writer structure"] impl crate :: Writable for CanFmrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_FMR to value 0"] impl crate :: Resettable for CanFmrSpec { } }
#[doc = "CAN_FM1R (rw) register accessor: CAN_FM1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_fm1r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_fm1r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_fm1r`] module"]
#[doc (alias = "CAN_FM1R")] pub type CanFm1r = crate :: Reg < can_fm1r :: CanFm1rSpec > ;
#[doc = "CAN_FM1R"] pub mod can_fm1r {
#[doc = "Register `CAN_FM1R` reader"] pub type R = crate :: R < CanFm1rSpec > ;
#[doc = "Register `CAN_FM1R` writer"] pub type W = crate :: W < CanFm1rSpec > ;
#[doc = "Field `FBM0` reader - Filter mode"] pub type Fbm0R = crate :: BitReader ;
#[doc = "Field `FBM0` writer - Filter mode"] pub type Fbm0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBM1` reader - Filter mode"] pub type Fbm1R = crate :: BitReader ;
#[doc = "Field `FBM1` writer - Filter mode"] pub type Fbm1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBM2` reader - Filter mode"] pub type Fbm2R = crate :: BitReader ;
#[doc = "Field `FBM2` writer - Filter mode"] pub type Fbm2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBM3` reader - Filter mode"] pub type Fbm3R = crate :: BitReader ;
#[doc = "Field `FBM3` writer - Filter mode"] pub type Fbm3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBM4` reader - Filter mode"] pub type Fbm4R = crate :: BitReader ;
#[doc = "Field `FBM4` writer - Filter mode"] pub type Fbm4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBM5` reader - Filter mode"] pub type Fbm5R = crate :: BitReader ;
#[doc = "Field `FBM5` writer - Filter mode"] pub type Fbm5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBM6` reader - Filter mode"] pub type Fbm6R = crate :: BitReader ;
#[doc = "Field `FBM6` writer - Filter mode"] pub type Fbm6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBM7` reader - Filter mode"] pub type Fbm7R = crate :: BitReader ;
#[doc = "Field `FBM7` writer - Filter mode"] pub type Fbm7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBM8` reader - Filter mode"] pub type Fbm8R = crate :: BitReader ;
#[doc = "Field `FBM8` writer - Filter mode"] pub type Fbm8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBM9` reader - Filter mode"] pub type Fbm9R = crate :: BitReader ;
#[doc = "Field `FBM9` writer - Filter mode"] pub type Fbm9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBM10` reader - Filter mode"] pub type Fbm10R = crate :: BitReader ;
#[doc = "Field `FBM10` writer - Filter mode"] pub type Fbm10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBM11` reader - Filter mode"] pub type Fbm11R = crate :: BitReader ;
#[doc = "Field `FBM11` writer - Filter mode"] pub type Fbm11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBM12` reader - Filter mode"] pub type Fbm12R = crate :: BitReader ;
#[doc = "Field `FBM12` writer - Filter mode"] pub type Fbm12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBM13` reader - Filter mode"] pub type Fbm13R = crate :: BitReader ;
#[doc = "Field `FBM13` writer - Filter mode"] pub type Fbm13W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter mode"]
#[inline (always)] pub fn fbm0 (& self) -> Fbm0R { Fbm0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter mode"]
#[inline (always)] pub fn fbm1 (& self) -> Fbm1R { Fbm1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter mode"]
#[inline (always)] pub fn fbm2 (& self) -> Fbm2R { Fbm2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter mode"]
#[inline (always)] pub fn fbm3 (& self) -> Fbm3R { Fbm3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter mode"]
#[inline (always)] pub fn fbm4 (& self) -> Fbm4R { Fbm4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter mode"]
#[inline (always)] pub fn fbm5 (& self) -> Fbm5R { Fbm5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter mode"]
#[inline (always)] pub fn fbm6 (& self) -> Fbm6R { Fbm6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter mode"]
#[inline (always)] pub fn fbm7 (& self) -> Fbm7R { Fbm7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter mode"]
#[inline (always)] pub fn fbm8 (& self) -> Fbm8R { Fbm8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter mode"]
#[inline (always)] pub fn fbm9 (& self) -> Fbm9R { Fbm9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter mode"]
#[inline (always)] pub fn fbm10 (& self) -> Fbm10R { Fbm10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter mode"]
#[inline (always)] pub fn fbm11 (& self) -> Fbm11R { Fbm11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter mode"]
#[inline (always)] pub fn fbm12 (& self) -> Fbm12R { Fbm12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter mode"]
#[inline (always)] pub fn fbm13 (& self) -> Fbm13R { Fbm13R :: new (((self . bits >> 13) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter mode"]
#[inline (always)] pub fn fbm0 (& mut self) -> Fbm0W < '_ , CanFm1rSpec > { Fbm0W :: new (self , 0) }
#[doc = "Bit 1 - Filter mode"]
#[inline (always)] pub fn fbm1 (& mut self) -> Fbm1W < '_ , CanFm1rSpec > { Fbm1W :: new (self , 1) }
#[doc = "Bit 2 - Filter mode"]
#[inline (always)] pub fn fbm2 (& mut self) -> Fbm2W < '_ , CanFm1rSpec > { Fbm2W :: new (self , 2) }
#[doc = "Bit 3 - Filter mode"]
#[inline (always)] pub fn fbm3 (& mut self) -> Fbm3W < '_ , CanFm1rSpec > { Fbm3W :: new (self , 3) }
#[doc = "Bit 4 - Filter mode"]
#[inline (always)] pub fn fbm4 (& mut self) -> Fbm4W < '_ , CanFm1rSpec > { Fbm4W :: new (self , 4) }
#[doc = "Bit 5 - Filter mode"]
#[inline (always)] pub fn fbm5 (& mut self) -> Fbm5W < '_ , CanFm1rSpec > { Fbm5W :: new (self , 5) }
#[doc = "Bit 6 - Filter mode"]
#[inline (always)] pub fn fbm6 (& mut self) -> Fbm6W < '_ , CanFm1rSpec > { Fbm6W :: new (self , 6) }
#[doc = "Bit 7 - Filter mode"]
#[inline (always)] pub fn fbm7 (& mut self) -> Fbm7W < '_ , CanFm1rSpec > { Fbm7W :: new (self , 7) }
#[doc = "Bit 8 - Filter mode"]
#[inline (always)] pub fn fbm8 (& mut self) -> Fbm8W < '_ , CanFm1rSpec > { Fbm8W :: new (self , 8) }
#[doc = "Bit 9 - Filter mode"]
#[inline (always)] pub fn fbm9 (& mut self) -> Fbm9W < '_ , CanFm1rSpec > { Fbm9W :: new (self , 9) }
#[doc = "Bit 10 - Filter mode"]
#[inline (always)] pub fn fbm10 (& mut self) -> Fbm10W < '_ , CanFm1rSpec > { Fbm10W :: new (self , 10) }
#[doc = "Bit 11 - Filter mode"]
#[inline (always)] pub fn fbm11 (& mut self) -> Fbm11W < '_ , CanFm1rSpec > { Fbm11W :: new (self , 11) }
#[doc = "Bit 12 - Filter mode"]
#[inline (always)] pub fn fbm12 (& mut self) -> Fbm12W < '_ , CanFm1rSpec > { Fbm12W :: new (self , 12) }
#[doc = "Bit 13 - Filter mode"]
#[inline (always)] pub fn fbm13 (& mut self) -> Fbm13W < '_ , CanFm1rSpec > { Fbm13W :: new (self , 13) } }
#[doc = "CAN_FM1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_fm1r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_fm1r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanFm1rSpec ; impl crate :: RegisterSpec for CanFm1rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_fm1r::R`](R) reader structure"] impl crate :: Readable for CanFm1rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_fm1r::W`](W) writer structure"] impl crate :: Writable for CanFm1rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_FM1R to value 0"] impl crate :: Resettable for CanFm1rSpec { } }
#[doc = "CAN_FS1R (rw) register accessor: CAN_FS1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_fs1r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_fs1r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_fs1r`] module"]
#[doc (alias = "CAN_FS1R")] pub type CanFs1r = crate :: Reg < can_fs1r :: CanFs1rSpec > ;
#[doc = "CAN_FS1R"] pub mod can_fs1r {
#[doc = "Register `CAN_FS1R` reader"] pub type R = crate :: R < CanFs1rSpec > ;
#[doc = "Register `CAN_FS1R` writer"] pub type W = crate :: W < CanFs1rSpec > ;
#[doc = "Field `FSC0` reader - Filter scale configuration"] pub type Fsc0R = crate :: BitReader ;
#[doc = "Field `FSC0` writer - Filter scale configuration"] pub type Fsc0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSC1` reader - Filter scale configuration"] pub type Fsc1R = crate :: BitReader ;
#[doc = "Field `FSC1` writer - Filter scale configuration"] pub type Fsc1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSC2` reader - Filter scale configuration"] pub type Fsc2R = crate :: BitReader ;
#[doc = "Field `FSC2` writer - Filter scale configuration"] pub type Fsc2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSC3` reader - Filter scale configuration"] pub type Fsc3R = crate :: BitReader ;
#[doc = "Field `FSC3` writer - Filter scale configuration"] pub type Fsc3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSC4` reader - Filter scale configuration"] pub type Fsc4R = crate :: BitReader ;
#[doc = "Field `FSC4` writer - Filter scale configuration"] pub type Fsc4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSC5` reader - Filter scale configuration"] pub type Fsc5R = crate :: BitReader ;
#[doc = "Field `FSC5` writer - Filter scale configuration"] pub type Fsc5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSC6` reader - Filter scale configuration"] pub type Fsc6R = crate :: BitReader ;
#[doc = "Field `FSC6` writer - Filter scale configuration"] pub type Fsc6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSC7` reader - Filter scale configuration"] pub type Fsc7R = crate :: BitReader ;
#[doc = "Field `FSC7` writer - Filter scale configuration"] pub type Fsc7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSC8` reader - Filter scale configuration"] pub type Fsc8R = crate :: BitReader ;
#[doc = "Field `FSC8` writer - Filter scale configuration"] pub type Fsc8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSC9` reader - Filter scale configuration"] pub type Fsc9R = crate :: BitReader ;
#[doc = "Field `FSC9` writer - Filter scale configuration"] pub type Fsc9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSC10` reader - Filter scale configuration"] pub type Fsc10R = crate :: BitReader ;
#[doc = "Field `FSC10` writer - Filter scale configuration"] pub type Fsc10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSC11` reader - Filter scale configuration"] pub type Fsc11R = crate :: BitReader ;
#[doc = "Field `FSC11` writer - Filter scale configuration"] pub type Fsc11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSC12` reader - Filter scale configuration"] pub type Fsc12R = crate :: BitReader ;
#[doc = "Field `FSC12` writer - Filter scale configuration"] pub type Fsc12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSC13` reader - Filter scale configuration"] pub type Fsc13R = crate :: BitReader ;
#[doc = "Field `FSC13` writer - Filter scale configuration"] pub type Fsc13W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter scale configuration"]
#[inline (always)] pub fn fsc0 (& self) -> Fsc0R { Fsc0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter scale configuration"]
#[inline (always)] pub fn fsc1 (& self) -> Fsc1R { Fsc1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter scale configuration"]
#[inline (always)] pub fn fsc2 (& self) -> Fsc2R { Fsc2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter scale configuration"]
#[inline (always)] pub fn fsc3 (& self) -> Fsc3R { Fsc3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter scale configuration"]
#[inline (always)] pub fn fsc4 (& self) -> Fsc4R { Fsc4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter scale configuration"]
#[inline (always)] pub fn fsc5 (& self) -> Fsc5R { Fsc5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter scale configuration"]
#[inline (always)] pub fn fsc6 (& self) -> Fsc6R { Fsc6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter scale configuration"]
#[inline (always)] pub fn fsc7 (& self) -> Fsc7R { Fsc7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter scale configuration"]
#[inline (always)] pub fn fsc8 (& self) -> Fsc8R { Fsc8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter scale configuration"]
#[inline (always)] pub fn fsc9 (& self) -> Fsc9R { Fsc9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter scale configuration"]
#[inline (always)] pub fn fsc10 (& self) -> Fsc10R { Fsc10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter scale configuration"]
#[inline (always)] pub fn fsc11 (& self) -> Fsc11R { Fsc11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter scale configuration"]
#[inline (always)] pub fn fsc12 (& self) -> Fsc12R { Fsc12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter scale configuration"]
#[inline (always)] pub fn fsc13 (& self) -> Fsc13R { Fsc13R :: new (((self . bits >> 13) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter scale configuration"]
#[inline (always)] pub fn fsc0 (& mut self) -> Fsc0W < '_ , CanFs1rSpec > { Fsc0W :: new (self , 0) }
#[doc = "Bit 1 - Filter scale configuration"]
#[inline (always)] pub fn fsc1 (& mut self) -> Fsc1W < '_ , CanFs1rSpec > { Fsc1W :: new (self , 1) }
#[doc = "Bit 2 - Filter scale configuration"]
#[inline (always)] pub fn fsc2 (& mut self) -> Fsc2W < '_ , CanFs1rSpec > { Fsc2W :: new (self , 2) }
#[doc = "Bit 3 - Filter scale configuration"]
#[inline (always)] pub fn fsc3 (& mut self) -> Fsc3W < '_ , CanFs1rSpec > { Fsc3W :: new (self , 3) }
#[doc = "Bit 4 - Filter scale configuration"]
#[inline (always)] pub fn fsc4 (& mut self) -> Fsc4W < '_ , CanFs1rSpec > { Fsc4W :: new (self , 4) }
#[doc = "Bit 5 - Filter scale configuration"]
#[inline (always)] pub fn fsc5 (& mut self) -> Fsc5W < '_ , CanFs1rSpec > { Fsc5W :: new (self , 5) }
#[doc = "Bit 6 - Filter scale configuration"]
#[inline (always)] pub fn fsc6 (& mut self) -> Fsc6W < '_ , CanFs1rSpec > { Fsc6W :: new (self , 6) }
#[doc = "Bit 7 - Filter scale configuration"]
#[inline (always)] pub fn fsc7 (& mut self) -> Fsc7W < '_ , CanFs1rSpec > { Fsc7W :: new (self , 7) }
#[doc = "Bit 8 - Filter scale configuration"]
#[inline (always)] pub fn fsc8 (& mut self) -> Fsc8W < '_ , CanFs1rSpec > { Fsc8W :: new (self , 8) }
#[doc = "Bit 9 - Filter scale configuration"]
#[inline (always)] pub fn fsc9 (& mut self) -> Fsc9W < '_ , CanFs1rSpec > { Fsc9W :: new (self , 9) }
#[doc = "Bit 10 - Filter scale configuration"]
#[inline (always)] pub fn fsc10 (& mut self) -> Fsc10W < '_ , CanFs1rSpec > { Fsc10W :: new (self , 10) }
#[doc = "Bit 11 - Filter scale configuration"]
#[inline (always)] pub fn fsc11 (& mut self) -> Fsc11W < '_ , CanFs1rSpec > { Fsc11W :: new (self , 11) }
#[doc = "Bit 12 - Filter scale configuration"]
#[inline (always)] pub fn fsc12 (& mut self) -> Fsc12W < '_ , CanFs1rSpec > { Fsc12W :: new (self , 12) }
#[doc = "Bit 13 - Filter scale configuration"]
#[inline (always)] pub fn fsc13 (& mut self) -> Fsc13W < '_ , CanFs1rSpec > { Fsc13W :: new (self , 13) } }
#[doc = "CAN_FS1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_fs1r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_fs1r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanFs1rSpec ; impl crate :: RegisterSpec for CanFs1rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_fs1r::R`](R) reader structure"] impl crate :: Readable for CanFs1rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_fs1r::W`](W) writer structure"] impl crate :: Writable for CanFs1rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_FS1R to value 0"] impl crate :: Resettable for CanFs1rSpec { } }
#[doc = "CAN_FFA1R (rw) register accessor: CAN_FFA1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_ffa1r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_ffa1r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_ffa1r`] module"]
#[doc (alias = "CAN_FFA1R")] pub type CanFfa1r = crate :: Reg < can_ffa1r :: CanFfa1rSpec > ;
#[doc = "CAN_FFA1R"] pub mod can_ffa1r {
#[doc = "Register `CAN_FFA1R` reader"] pub type R = crate :: R < CanFfa1rSpec > ;
#[doc = "Register `CAN_FFA1R` writer"] pub type W = crate :: W < CanFfa1rSpec > ;
#[doc = "Field `FFA0` reader - Filter FIFO assignment for filter 0"] pub type Ffa0R = crate :: BitReader ;
#[doc = "Field `FFA0` writer - Filter FIFO assignment for filter 0"] pub type Ffa0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFA1` reader - Filter FIFO assignment for filter 1"] pub type Ffa1R = crate :: BitReader ;
#[doc = "Field `FFA1` writer - Filter FIFO assignment for filter 1"] pub type Ffa1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFA2` reader - Filter FIFO assignment for filter 2"] pub type Ffa2R = crate :: BitReader ;
#[doc = "Field `FFA2` writer - Filter FIFO assignment for filter 2"] pub type Ffa2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFA3` reader - Filter FIFO assignment for filter 3"] pub type Ffa3R = crate :: BitReader ;
#[doc = "Field `FFA3` writer - Filter FIFO assignment for filter 3"] pub type Ffa3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFA4` reader - Filter FIFO assignment for filter 4"] pub type Ffa4R = crate :: BitReader ;
#[doc = "Field `FFA4` writer - Filter FIFO assignment for filter 4"] pub type Ffa4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFA5` reader - Filter FIFO assignment for filter 5"] pub type Ffa5R = crate :: BitReader ;
#[doc = "Field `FFA5` writer - Filter FIFO assignment for filter 5"] pub type Ffa5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFA6` reader - Filter FIFO assignment for filter 6"] pub type Ffa6R = crate :: BitReader ;
#[doc = "Field `FFA6` writer - Filter FIFO assignment for filter 6"] pub type Ffa6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFA7` reader - Filter FIFO assignment for filter 7"] pub type Ffa7R = crate :: BitReader ;
#[doc = "Field `FFA7` writer - Filter FIFO assignment for filter 7"] pub type Ffa7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFA8` reader - Filter FIFO assignment for filter 8"] pub type Ffa8R = crate :: BitReader ;
#[doc = "Field `FFA8` writer - Filter FIFO assignment for filter 8"] pub type Ffa8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFA9` reader - Filter FIFO assignment for filter 9"] pub type Ffa9R = crate :: BitReader ;
#[doc = "Field `FFA9` writer - Filter FIFO assignment for filter 9"] pub type Ffa9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFA10` reader - Filter FIFO assignment for filter 10"] pub type Ffa10R = crate :: BitReader ;
#[doc = "Field `FFA10` writer - Filter FIFO assignment for filter 10"] pub type Ffa10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFA11` reader - Filter FIFO assignment for filter 11"] pub type Ffa11R = crate :: BitReader ;
#[doc = "Field `FFA11` writer - Filter FIFO assignment for filter 11"] pub type Ffa11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFA12` reader - Filter FIFO assignment for filter 12"] pub type Ffa12R = crate :: BitReader ;
#[doc = "Field `FFA12` writer - Filter FIFO assignment for filter 12"] pub type Ffa12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FFA13` reader - Filter FIFO assignment for filter 13"] pub type Ffa13R = crate :: BitReader ;
#[doc = "Field `FFA13` writer - Filter FIFO assignment for filter 13"] pub type Ffa13W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter FIFO assignment for filter 0"]
#[inline (always)] pub fn ffa0 (& self) -> Ffa0R { Ffa0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter FIFO assignment for filter 1"]
#[inline (always)] pub fn ffa1 (& self) -> Ffa1R { Ffa1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter FIFO assignment for filter 2"]
#[inline (always)] pub fn ffa2 (& self) -> Ffa2R { Ffa2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter FIFO assignment for filter 3"]
#[inline (always)] pub fn ffa3 (& self) -> Ffa3R { Ffa3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter FIFO assignment for filter 4"]
#[inline (always)] pub fn ffa4 (& self) -> Ffa4R { Ffa4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter FIFO assignment for filter 5"]
#[inline (always)] pub fn ffa5 (& self) -> Ffa5R { Ffa5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter FIFO assignment for filter 6"]
#[inline (always)] pub fn ffa6 (& self) -> Ffa6R { Ffa6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter FIFO assignment for filter 7"]
#[inline (always)] pub fn ffa7 (& self) -> Ffa7R { Ffa7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter FIFO assignment for filter 8"]
#[inline (always)] pub fn ffa8 (& self) -> Ffa8R { Ffa8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter FIFO assignment for filter 9"]
#[inline (always)] pub fn ffa9 (& self) -> Ffa9R { Ffa9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter FIFO assignment for filter 10"]
#[inline (always)] pub fn ffa10 (& self) -> Ffa10R { Ffa10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter FIFO assignment for filter 11"]
#[inline (always)] pub fn ffa11 (& self) -> Ffa11R { Ffa11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter FIFO assignment for filter 12"]
#[inline (always)] pub fn ffa12 (& self) -> Ffa12R { Ffa12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter FIFO assignment for filter 13"]
#[inline (always)] pub fn ffa13 (& self) -> Ffa13R { Ffa13R :: new (((self . bits >> 13) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter FIFO assignment for filter 0"]
#[inline (always)] pub fn ffa0 (& mut self) -> Ffa0W < '_ , CanFfa1rSpec > { Ffa0W :: new (self , 0) }
#[doc = "Bit 1 - Filter FIFO assignment for filter 1"]
#[inline (always)] pub fn ffa1 (& mut self) -> Ffa1W < '_ , CanFfa1rSpec > { Ffa1W :: new (self , 1) }
#[doc = "Bit 2 - Filter FIFO assignment for filter 2"]
#[inline (always)] pub fn ffa2 (& mut self) -> Ffa2W < '_ , CanFfa1rSpec > { Ffa2W :: new (self , 2) }
#[doc = "Bit 3 - Filter FIFO assignment for filter 3"]
#[inline (always)] pub fn ffa3 (& mut self) -> Ffa3W < '_ , CanFfa1rSpec > { Ffa3W :: new (self , 3) }
#[doc = "Bit 4 - Filter FIFO assignment for filter 4"]
#[inline (always)] pub fn ffa4 (& mut self) -> Ffa4W < '_ , CanFfa1rSpec > { Ffa4W :: new (self , 4) }
#[doc = "Bit 5 - Filter FIFO assignment for filter 5"]
#[inline (always)] pub fn ffa5 (& mut self) -> Ffa5W < '_ , CanFfa1rSpec > { Ffa5W :: new (self , 5) }
#[doc = "Bit 6 - Filter FIFO assignment for filter 6"]
#[inline (always)] pub fn ffa6 (& mut self) -> Ffa6W < '_ , CanFfa1rSpec > { Ffa6W :: new (self , 6) }
#[doc = "Bit 7 - Filter FIFO assignment for filter 7"]
#[inline (always)] pub fn ffa7 (& mut self) -> Ffa7W < '_ , CanFfa1rSpec > { Ffa7W :: new (self , 7) }
#[doc = "Bit 8 - Filter FIFO assignment for filter 8"]
#[inline (always)] pub fn ffa8 (& mut self) -> Ffa8W < '_ , CanFfa1rSpec > { Ffa8W :: new (self , 8) }
#[doc = "Bit 9 - Filter FIFO assignment for filter 9"]
#[inline (always)] pub fn ffa9 (& mut self) -> Ffa9W < '_ , CanFfa1rSpec > { Ffa9W :: new (self , 9) }
#[doc = "Bit 10 - Filter FIFO assignment for filter 10"]
#[inline (always)] pub fn ffa10 (& mut self) -> Ffa10W < '_ , CanFfa1rSpec > { Ffa10W :: new (self , 10) }
#[doc = "Bit 11 - Filter FIFO assignment for filter 11"]
#[inline (always)] pub fn ffa11 (& mut self) -> Ffa11W < '_ , CanFfa1rSpec > { Ffa11W :: new (self , 11) }
#[doc = "Bit 12 - Filter FIFO assignment for filter 12"]
#[inline (always)] pub fn ffa12 (& mut self) -> Ffa12W < '_ , CanFfa1rSpec > { Ffa12W :: new (self , 12) }
#[doc = "Bit 13 - Filter FIFO assignment for filter 13"]
#[inline (always)] pub fn ffa13 (& mut self) -> Ffa13W < '_ , CanFfa1rSpec > { Ffa13W :: new (self , 13) } }
#[doc = "CAN_FFA1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_ffa1r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_ffa1r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanFfa1rSpec ; impl crate :: RegisterSpec for CanFfa1rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_ffa1r::R`](R) reader structure"] impl crate :: Readable for CanFfa1rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_ffa1r::W`](W) writer structure"] impl crate :: Writable for CanFfa1rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_FFA1R to value 0"] impl crate :: Resettable for CanFfa1rSpec { } }
#[doc = "CAN_FA1R (rw) register accessor: CAN_FA1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_fa1r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_fa1r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@can_fa1r`] module"]
#[doc (alias = "CAN_FA1R")] pub type CanFa1r = crate :: Reg < can_fa1r :: CanFa1rSpec > ;
#[doc = "CAN_FA1R"] pub mod can_fa1r {
#[doc = "Register `CAN_FA1R` reader"] pub type R = crate :: R < CanFa1rSpec > ;
#[doc = "Register `CAN_FA1R` writer"] pub type W = crate :: W < CanFa1rSpec > ;
#[doc = "Field `FACT0` reader - Filter active"] pub type Fact0R = crate :: BitReader ;
#[doc = "Field `FACT0` writer - Filter active"] pub type Fact0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FACT1` reader - Filter active"] pub type Fact1R = crate :: BitReader ;
#[doc = "Field `FACT1` writer - Filter active"] pub type Fact1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FACT2` reader - Filter active"] pub type Fact2R = crate :: BitReader ;
#[doc = "Field `FACT2` writer - Filter active"] pub type Fact2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FACT3` reader - Filter active"] pub type Fact3R = crate :: BitReader ;
#[doc = "Field `FACT3` writer - Filter active"] pub type Fact3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FACT4` reader - Filter active"] pub type Fact4R = crate :: BitReader ;
#[doc = "Field `FACT4` writer - Filter active"] pub type Fact4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FACT5` reader - Filter active"] pub type Fact5R = crate :: BitReader ;
#[doc = "Field `FACT5` writer - Filter active"] pub type Fact5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FACT6` reader - Filter active"] pub type Fact6R = crate :: BitReader ;
#[doc = "Field `FACT6` writer - Filter active"] pub type Fact6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FACT7` reader - Filter active"] pub type Fact7R = crate :: BitReader ;
#[doc = "Field `FACT7` writer - Filter active"] pub type Fact7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FACT8` reader - Filter active"] pub type Fact8R = crate :: BitReader ;
#[doc = "Field `FACT8` writer - Filter active"] pub type Fact8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FACT9` reader - Filter active"] pub type Fact9R = crate :: BitReader ;
#[doc = "Field `FACT9` writer - Filter active"] pub type Fact9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FACT10` reader - Filter active"] pub type Fact10R = crate :: BitReader ;
#[doc = "Field `FACT10` writer - Filter active"] pub type Fact10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FACT11` reader - Filter active"] pub type Fact11R = crate :: BitReader ;
#[doc = "Field `FACT11` writer - Filter active"] pub type Fact11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FACT12` reader - Filter active"] pub type Fact12R = crate :: BitReader ;
#[doc = "Field `FACT12` writer - Filter active"] pub type Fact12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FACT13` reader - Filter active"] pub type Fact13R = crate :: BitReader ;
#[doc = "Field `FACT13` writer - Filter active"] pub type Fact13W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter active"]
#[inline (always)] pub fn fact0 (& self) -> Fact0R { Fact0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter active"]
#[inline (always)] pub fn fact1 (& self) -> Fact1R { Fact1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter active"]
#[inline (always)] pub fn fact2 (& self) -> Fact2R { Fact2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter active"]
#[inline (always)] pub fn fact3 (& self) -> Fact3R { Fact3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter active"]
#[inline (always)] pub fn fact4 (& self) -> Fact4R { Fact4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter active"]
#[inline (always)] pub fn fact5 (& self) -> Fact5R { Fact5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter active"]
#[inline (always)] pub fn fact6 (& self) -> Fact6R { Fact6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter active"]
#[inline (always)] pub fn fact7 (& self) -> Fact7R { Fact7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter active"]
#[inline (always)] pub fn fact8 (& self) -> Fact8R { Fact8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter active"]
#[inline (always)] pub fn fact9 (& self) -> Fact9R { Fact9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter active"]
#[inline (always)] pub fn fact10 (& self) -> Fact10R { Fact10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter active"]
#[inline (always)] pub fn fact11 (& self) -> Fact11R { Fact11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter active"]
#[inline (always)] pub fn fact12 (& self) -> Fact12R { Fact12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter active"]
#[inline (always)] pub fn fact13 (& self) -> Fact13R { Fact13R :: new (((self . bits >> 13) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter active"]
#[inline (always)] pub fn fact0 (& mut self) -> Fact0W < '_ , CanFa1rSpec > { Fact0W :: new (self , 0) }
#[doc = "Bit 1 - Filter active"]
#[inline (always)] pub fn fact1 (& mut self) -> Fact1W < '_ , CanFa1rSpec > { Fact1W :: new (self , 1) }
#[doc = "Bit 2 - Filter active"]
#[inline (always)] pub fn fact2 (& mut self) -> Fact2W < '_ , CanFa1rSpec > { Fact2W :: new (self , 2) }
#[doc = "Bit 3 - Filter active"]
#[inline (always)] pub fn fact3 (& mut self) -> Fact3W < '_ , CanFa1rSpec > { Fact3W :: new (self , 3) }
#[doc = "Bit 4 - Filter active"]
#[inline (always)] pub fn fact4 (& mut self) -> Fact4W < '_ , CanFa1rSpec > { Fact4W :: new (self , 4) }
#[doc = "Bit 5 - Filter active"]
#[inline (always)] pub fn fact5 (& mut self) -> Fact5W < '_ , CanFa1rSpec > { Fact5W :: new (self , 5) }
#[doc = "Bit 6 - Filter active"]
#[inline (always)] pub fn fact6 (& mut self) -> Fact6W < '_ , CanFa1rSpec > { Fact6W :: new (self , 6) }
#[doc = "Bit 7 - Filter active"]
#[inline (always)] pub fn fact7 (& mut self) -> Fact7W < '_ , CanFa1rSpec > { Fact7W :: new (self , 7) }
#[doc = "Bit 8 - Filter active"]
#[inline (always)] pub fn fact8 (& mut self) -> Fact8W < '_ , CanFa1rSpec > { Fact8W :: new (self , 8) }
#[doc = "Bit 9 - Filter active"]
#[inline (always)] pub fn fact9 (& mut self) -> Fact9W < '_ , CanFa1rSpec > { Fact9W :: new (self , 9) }
#[doc = "Bit 10 - Filter active"]
#[inline (always)] pub fn fact10 (& mut self) -> Fact10W < '_ , CanFa1rSpec > { Fact10W :: new (self , 10) }
#[doc = "Bit 11 - Filter active"]
#[inline (always)] pub fn fact11 (& mut self) -> Fact11W < '_ , CanFa1rSpec > { Fact11W :: new (self , 11) }
#[doc = "Bit 12 - Filter active"]
#[inline (always)] pub fn fact12 (& mut self) -> Fact12W < '_ , CanFa1rSpec > { Fact12W :: new (self , 12) }
#[doc = "Bit 13 - Filter active"]
#[inline (always)] pub fn fact13 (& mut self) -> Fact13W < '_ , CanFa1rSpec > { Fact13W :: new (self , 13) } }
#[doc = "CAN_FA1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_fa1r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_fa1r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CanFa1rSpec ; impl crate :: RegisterSpec for CanFa1rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`can_fa1r::R`](R) reader structure"] impl crate :: Readable for CanFa1rSpec { }
#[doc = "`write(|w| ..)` method takes [`can_fa1r::W`](W) writer structure"] impl crate :: Writable for CanFa1rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CAN_FA1R to value 0"] impl crate :: Resettable for CanFa1rSpec { } }
#[doc = "F0R1 (rw) register accessor: Filter bank 0 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f0r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f0r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f0r1`] module"]
#[doc (alias = "F0R1")] pub type F0r1 = crate :: Reg < f0r1 :: F0r1Spec > ;
#[doc = "Filter bank 0 register 1"] pub mod f0r1 {
#[doc = "Register `F0R1` reader"] pub type R = crate :: R < F0r1Spec > ;
#[doc = "Register `F0R1` writer"] pub type W = crate :: W < F0r1Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F0r1Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F0r1Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F0r1Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F0r1Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F0r1Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F0r1Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F0r1Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F0r1Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F0r1Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F0r1Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F0r1Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F0r1Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F0r1Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F0r1Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F0r1Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F0r1Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F0r1Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F0r1Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F0r1Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F0r1Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F0r1Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F0r1Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F0r1Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F0r1Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F0r1Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F0r1Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F0r1Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F0r1Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F0r1Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F0r1Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F0r1Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F0r1Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 0 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f0r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f0r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F0r1Spec ; impl crate :: RegisterSpec for F0r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f0r1::R`](R) reader structure"] impl crate :: Readable for F0r1Spec { }
#[doc = "`write(|w| ..)` method takes [`f0r1::W`](W) writer structure"] impl crate :: Writable for F0r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F0R1 to value 0"] impl crate :: Resettable for F0r1Spec { } }
#[doc = "F0R2 (rw) register accessor: Filter bank 0 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f0r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f0r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f0r2`] module"]
#[doc (alias = "F0R2")] pub type F0r2 = crate :: Reg < f0r2 :: F0r2Spec > ;
#[doc = "Filter bank 0 register 2"] pub mod f0r2 {
#[doc = "Register `F0R2` reader"] pub type R = crate :: R < F0r2Spec > ;
#[doc = "Register `F0R2` writer"] pub type W = crate :: W < F0r2Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F0r2Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F0r2Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F0r2Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F0r2Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F0r2Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F0r2Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F0r2Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F0r2Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F0r2Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F0r2Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F0r2Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F0r2Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F0r2Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F0r2Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F0r2Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F0r2Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F0r2Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F0r2Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F0r2Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F0r2Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F0r2Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F0r2Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F0r2Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F0r2Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F0r2Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F0r2Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F0r2Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F0r2Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F0r2Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F0r2Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F0r2Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F0r2Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 0 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f0r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f0r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F0r2Spec ; impl crate :: RegisterSpec for F0r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f0r2::R`](R) reader structure"] impl crate :: Readable for F0r2Spec { }
#[doc = "`write(|w| ..)` method takes [`f0r2::W`](W) writer structure"] impl crate :: Writable for F0r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F0R2 to value 0"] impl crate :: Resettable for F0r2Spec { } }
#[doc = "F1R1 (rw) register accessor: Filter bank 1 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f1r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f1r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f1r1`] module"]
#[doc (alias = "F1R1")] pub type F1r1 = crate :: Reg < f1r1 :: F1r1Spec > ;
#[doc = "Filter bank 1 register 1"] pub mod f1r1 {
#[doc = "Register `F1R1` reader"] pub type R = crate :: R < F1r1Spec > ;
#[doc = "Register `F1R1` writer"] pub type W = crate :: W < F1r1Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F1r1Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F1r1Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F1r1Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F1r1Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F1r1Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F1r1Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F1r1Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F1r1Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F1r1Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F1r1Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F1r1Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F1r1Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F1r1Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F1r1Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F1r1Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F1r1Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F1r1Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F1r1Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F1r1Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F1r1Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F1r1Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F1r1Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F1r1Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F1r1Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F1r1Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F1r1Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F1r1Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F1r1Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F1r1Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F1r1Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F1r1Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F1r1Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 1 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f1r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f1r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F1r1Spec ; impl crate :: RegisterSpec for F1r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f1r1::R`](R) reader structure"] impl crate :: Readable for F1r1Spec { }
#[doc = "`write(|w| ..)` method takes [`f1r1::W`](W) writer structure"] impl crate :: Writable for F1r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F1R1 to value 0"] impl crate :: Resettable for F1r1Spec { } }
#[doc = "F1R2 (rw) register accessor: Filter bank 1 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f1r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f1r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f1r2`] module"]
#[doc (alias = "F1R2")] pub type F1r2 = crate :: Reg < f1r2 :: F1r2Spec > ;
#[doc = "Filter bank 1 register 2"] pub mod f1r2 {
#[doc = "Register `F1R2` reader"] pub type R = crate :: R < F1r2Spec > ;
#[doc = "Register `F1R2` writer"] pub type W = crate :: W < F1r2Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F1r2Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F1r2Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F1r2Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F1r2Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F1r2Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F1r2Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F1r2Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F1r2Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F1r2Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F1r2Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F1r2Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F1r2Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F1r2Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F1r2Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F1r2Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F1r2Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F1r2Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F1r2Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F1r2Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F1r2Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F1r2Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F1r2Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F1r2Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F1r2Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F1r2Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F1r2Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F1r2Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F1r2Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F1r2Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F1r2Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F1r2Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F1r2Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 1 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f1r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f1r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F1r2Spec ; impl crate :: RegisterSpec for F1r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f1r2::R`](R) reader structure"] impl crate :: Readable for F1r2Spec { }
#[doc = "`write(|w| ..)` method takes [`f1r2::W`](W) writer structure"] impl crate :: Writable for F1r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F1R2 to value 0"] impl crate :: Resettable for F1r2Spec { } }
#[doc = "F2R1 (rw) register accessor: Filter bank 2 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f2r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f2r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f2r1`] module"]
#[doc (alias = "F2R1")] pub type F2r1 = crate :: Reg < f2r1 :: F2r1Spec > ;
#[doc = "Filter bank 2 register 1"] pub mod f2r1 {
#[doc = "Register `F2R1` reader"] pub type R = crate :: R < F2r1Spec > ;
#[doc = "Register `F2R1` writer"] pub type W = crate :: W < F2r1Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F2r1Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F2r1Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F2r1Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F2r1Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F2r1Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F2r1Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F2r1Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F2r1Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F2r1Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F2r1Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F2r1Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F2r1Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F2r1Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F2r1Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F2r1Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F2r1Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F2r1Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F2r1Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F2r1Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F2r1Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F2r1Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F2r1Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F2r1Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F2r1Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F2r1Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F2r1Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F2r1Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F2r1Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F2r1Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F2r1Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F2r1Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F2r1Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 2 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f2r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f2r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F2r1Spec ; impl crate :: RegisterSpec for F2r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f2r1::R`](R) reader structure"] impl crate :: Readable for F2r1Spec { }
#[doc = "`write(|w| ..)` method takes [`f2r1::W`](W) writer structure"] impl crate :: Writable for F2r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F2R1 to value 0"] impl crate :: Resettable for F2r1Spec { } }
#[doc = "F2R2 (rw) register accessor: Filter bank 2 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f2r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f2r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f2r2`] module"]
#[doc (alias = "F2R2")] pub type F2r2 = crate :: Reg < f2r2 :: F2r2Spec > ;
#[doc = "Filter bank 2 register 2"] pub mod f2r2 {
#[doc = "Register `F2R2` reader"] pub type R = crate :: R < F2r2Spec > ;
#[doc = "Register `F2R2` writer"] pub type W = crate :: W < F2r2Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F2r2Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F2r2Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F2r2Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F2r2Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F2r2Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F2r2Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F2r2Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F2r2Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F2r2Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F2r2Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F2r2Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F2r2Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F2r2Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F2r2Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F2r2Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F2r2Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F2r2Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F2r2Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F2r2Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F2r2Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F2r2Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F2r2Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F2r2Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F2r2Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F2r2Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F2r2Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F2r2Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F2r2Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F2r2Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F2r2Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F2r2Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F2r2Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 2 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f2r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f2r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F2r2Spec ; impl crate :: RegisterSpec for F2r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f2r2::R`](R) reader structure"] impl crate :: Readable for F2r2Spec { }
#[doc = "`write(|w| ..)` method takes [`f2r2::W`](W) writer structure"] impl crate :: Writable for F2r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F2R2 to value 0"] impl crate :: Resettable for F2r2Spec { } }
#[doc = "F3R1 (rw) register accessor: Filter bank 3 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f3r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f3r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f3r1`] module"]
#[doc (alias = "F3R1")] pub type F3r1 = crate :: Reg < f3r1 :: F3r1Spec > ;
#[doc = "Filter bank 3 register 1"] pub mod f3r1 {
#[doc = "Register `F3R1` reader"] pub type R = crate :: R < F3r1Spec > ;
#[doc = "Register `F3R1` writer"] pub type W = crate :: W < F3r1Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F3r1Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F3r1Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F3r1Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F3r1Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F3r1Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F3r1Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F3r1Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F3r1Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F3r1Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F3r1Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F3r1Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F3r1Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F3r1Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F3r1Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F3r1Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F3r1Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F3r1Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F3r1Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F3r1Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F3r1Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F3r1Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F3r1Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F3r1Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F3r1Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F3r1Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F3r1Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F3r1Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F3r1Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F3r1Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F3r1Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F3r1Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F3r1Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 3 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f3r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f3r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F3r1Spec ; impl crate :: RegisterSpec for F3r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f3r1::R`](R) reader structure"] impl crate :: Readable for F3r1Spec { }
#[doc = "`write(|w| ..)` method takes [`f3r1::W`](W) writer structure"] impl crate :: Writable for F3r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F3R1 to value 0"] impl crate :: Resettable for F3r1Spec { } }
#[doc = "F3R2 (rw) register accessor: Filter bank 3 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f3r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f3r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f3r2`] module"]
#[doc (alias = "F3R2")] pub type F3r2 = crate :: Reg < f3r2 :: F3r2Spec > ;
#[doc = "Filter bank 3 register 2"] pub mod f3r2 {
#[doc = "Register `F3R2` reader"] pub type R = crate :: R < F3r2Spec > ;
#[doc = "Register `F3R2` writer"] pub type W = crate :: W < F3r2Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F3r2Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F3r2Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F3r2Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F3r2Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F3r2Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F3r2Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F3r2Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F3r2Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F3r2Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F3r2Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F3r2Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F3r2Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F3r2Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F3r2Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F3r2Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F3r2Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F3r2Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F3r2Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F3r2Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F3r2Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F3r2Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F3r2Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F3r2Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F3r2Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F3r2Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F3r2Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F3r2Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F3r2Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F3r2Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F3r2Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F3r2Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F3r2Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 3 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f3r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f3r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F3r2Spec ; impl crate :: RegisterSpec for F3r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f3r2::R`](R) reader structure"] impl crate :: Readable for F3r2Spec { }
#[doc = "`write(|w| ..)` method takes [`f3r2::W`](W) writer structure"] impl crate :: Writable for F3r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F3R2 to value 0"] impl crate :: Resettable for F3r2Spec { } }
#[doc = "F4R1 (rw) register accessor: Filter bank 4 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f4r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f4r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f4r1`] module"]
#[doc (alias = "F4R1")] pub type F4r1 = crate :: Reg < f4r1 :: F4r1Spec > ;
#[doc = "Filter bank 4 register 1"] pub mod f4r1 {
#[doc = "Register `F4R1` reader"] pub type R = crate :: R < F4r1Spec > ;
#[doc = "Register `F4R1` writer"] pub type W = crate :: W < F4r1Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F4r1Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F4r1Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F4r1Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F4r1Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F4r1Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F4r1Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F4r1Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F4r1Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F4r1Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F4r1Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F4r1Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F4r1Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F4r1Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F4r1Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F4r1Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F4r1Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F4r1Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F4r1Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F4r1Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F4r1Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F4r1Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F4r1Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F4r1Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F4r1Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F4r1Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F4r1Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F4r1Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F4r1Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F4r1Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F4r1Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F4r1Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F4r1Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 4 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f4r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f4r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F4r1Spec ; impl crate :: RegisterSpec for F4r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f4r1::R`](R) reader structure"] impl crate :: Readable for F4r1Spec { }
#[doc = "`write(|w| ..)` method takes [`f4r1::W`](W) writer structure"] impl crate :: Writable for F4r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F4R1 to value 0"] impl crate :: Resettable for F4r1Spec { } }
#[doc = "F4R2 (rw) register accessor: Filter bank 4 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f4r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f4r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f4r2`] module"]
#[doc (alias = "F4R2")] pub type F4r2 = crate :: Reg < f4r2 :: F4r2Spec > ;
#[doc = "Filter bank 4 register 2"] pub mod f4r2 {
#[doc = "Register `F4R2` reader"] pub type R = crate :: R < F4r2Spec > ;
#[doc = "Register `F4R2` writer"] pub type W = crate :: W < F4r2Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F4r2Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F4r2Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F4r2Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F4r2Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F4r2Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F4r2Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F4r2Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F4r2Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F4r2Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F4r2Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F4r2Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F4r2Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F4r2Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F4r2Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F4r2Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F4r2Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F4r2Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F4r2Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F4r2Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F4r2Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F4r2Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F4r2Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F4r2Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F4r2Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F4r2Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F4r2Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F4r2Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F4r2Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F4r2Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F4r2Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F4r2Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F4r2Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 4 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f4r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f4r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F4r2Spec ; impl crate :: RegisterSpec for F4r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f4r2::R`](R) reader structure"] impl crate :: Readable for F4r2Spec { }
#[doc = "`write(|w| ..)` method takes [`f4r2::W`](W) writer structure"] impl crate :: Writable for F4r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F4R2 to value 0"] impl crate :: Resettable for F4r2Spec { } }
#[doc = "F5R1 (rw) register accessor: Filter bank 5 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f5r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f5r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f5r1`] module"]
#[doc (alias = "F5R1")] pub type F5r1 = crate :: Reg < f5r1 :: F5r1Spec > ;
#[doc = "Filter bank 5 register 1"] pub mod f5r1 {
#[doc = "Register `F5R1` reader"] pub type R = crate :: R < F5r1Spec > ;
#[doc = "Register `F5R1` writer"] pub type W = crate :: W < F5r1Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F5r1Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F5r1Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F5r1Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F5r1Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F5r1Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F5r1Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F5r1Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F5r1Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F5r1Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F5r1Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F5r1Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F5r1Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F5r1Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F5r1Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F5r1Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F5r1Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F5r1Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F5r1Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F5r1Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F5r1Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F5r1Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F5r1Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F5r1Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F5r1Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F5r1Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F5r1Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F5r1Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F5r1Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F5r1Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F5r1Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F5r1Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F5r1Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 5 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f5r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f5r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F5r1Spec ; impl crate :: RegisterSpec for F5r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f5r1::R`](R) reader structure"] impl crate :: Readable for F5r1Spec { }
#[doc = "`write(|w| ..)` method takes [`f5r1::W`](W) writer structure"] impl crate :: Writable for F5r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F5R1 to value 0"] impl crate :: Resettable for F5r1Spec { } }
#[doc = "F5R2 (rw) register accessor: Filter bank 5 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f5r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f5r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f5r2`] module"]
#[doc (alias = "F5R2")] pub type F5r2 = crate :: Reg < f5r2 :: F5r2Spec > ;
#[doc = "Filter bank 5 register 2"] pub mod f5r2 {
#[doc = "Register `F5R2` reader"] pub type R = crate :: R < F5r2Spec > ;
#[doc = "Register `F5R2` writer"] pub type W = crate :: W < F5r2Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F5r2Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F5r2Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F5r2Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F5r2Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F5r2Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F5r2Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F5r2Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F5r2Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F5r2Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F5r2Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F5r2Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F5r2Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F5r2Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F5r2Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F5r2Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F5r2Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F5r2Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F5r2Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F5r2Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F5r2Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F5r2Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F5r2Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F5r2Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F5r2Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F5r2Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F5r2Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F5r2Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F5r2Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F5r2Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F5r2Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F5r2Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F5r2Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 5 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f5r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f5r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F5r2Spec ; impl crate :: RegisterSpec for F5r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f5r2::R`](R) reader structure"] impl crate :: Readable for F5r2Spec { }
#[doc = "`write(|w| ..)` method takes [`f5r2::W`](W) writer structure"] impl crate :: Writable for F5r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F5R2 to value 0"] impl crate :: Resettable for F5r2Spec { } }
#[doc = "F6R1 (rw) register accessor: Filter bank 6 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f6r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f6r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f6r1`] module"]
#[doc (alias = "F6R1")] pub type F6r1 = crate :: Reg < f6r1 :: F6r1Spec > ;
#[doc = "Filter bank 6 register 1"] pub mod f6r1 {
#[doc = "Register `F6R1` reader"] pub type R = crate :: R < F6r1Spec > ;
#[doc = "Register `F6R1` writer"] pub type W = crate :: W < F6r1Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F6r1Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F6r1Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F6r1Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F6r1Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F6r1Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F6r1Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F6r1Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F6r1Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F6r1Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F6r1Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F6r1Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F6r1Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F6r1Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F6r1Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F6r1Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F6r1Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F6r1Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F6r1Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F6r1Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F6r1Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F6r1Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F6r1Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F6r1Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F6r1Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F6r1Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F6r1Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F6r1Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F6r1Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F6r1Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F6r1Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F6r1Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F6r1Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 6 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f6r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f6r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F6r1Spec ; impl crate :: RegisterSpec for F6r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f6r1::R`](R) reader structure"] impl crate :: Readable for F6r1Spec { }
#[doc = "`write(|w| ..)` method takes [`f6r1::W`](W) writer structure"] impl crate :: Writable for F6r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F6R1 to value 0"] impl crate :: Resettable for F6r1Spec { } }
#[doc = "F6R2 (rw) register accessor: Filter bank 6 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f6r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f6r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f6r2`] module"]
#[doc (alias = "F6R2")] pub type F6r2 = crate :: Reg < f6r2 :: F6r2Spec > ;
#[doc = "Filter bank 6 register 2"] pub mod f6r2 {
#[doc = "Register `F6R2` reader"] pub type R = crate :: R < F6r2Spec > ;
#[doc = "Register `F6R2` writer"] pub type W = crate :: W < F6r2Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F6r2Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F6r2Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F6r2Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F6r2Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F6r2Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F6r2Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F6r2Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F6r2Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F6r2Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F6r2Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F6r2Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F6r2Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F6r2Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F6r2Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F6r2Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F6r2Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F6r2Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F6r2Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F6r2Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F6r2Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F6r2Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F6r2Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F6r2Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F6r2Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F6r2Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F6r2Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F6r2Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F6r2Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F6r2Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F6r2Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F6r2Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F6r2Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 6 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f6r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f6r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F6r2Spec ; impl crate :: RegisterSpec for F6r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f6r2::R`](R) reader structure"] impl crate :: Readable for F6r2Spec { }
#[doc = "`write(|w| ..)` method takes [`f6r2::W`](W) writer structure"] impl crate :: Writable for F6r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F6R2 to value 0"] impl crate :: Resettable for F6r2Spec { } }
#[doc = "F7R1 (rw) register accessor: Filter bank 7 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f7r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f7r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f7r1`] module"]
#[doc (alias = "F7R1")] pub type F7r1 = crate :: Reg < f7r1 :: F7r1Spec > ;
#[doc = "Filter bank 7 register 1"] pub mod f7r1 {
#[doc = "Register `F7R1` reader"] pub type R = crate :: R < F7r1Spec > ;
#[doc = "Register `F7R1` writer"] pub type W = crate :: W < F7r1Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F7r1Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F7r1Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F7r1Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F7r1Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F7r1Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F7r1Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F7r1Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F7r1Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F7r1Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F7r1Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F7r1Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F7r1Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F7r1Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F7r1Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F7r1Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F7r1Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F7r1Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F7r1Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F7r1Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F7r1Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F7r1Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F7r1Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F7r1Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F7r1Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F7r1Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F7r1Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F7r1Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F7r1Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F7r1Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F7r1Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F7r1Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F7r1Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 7 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f7r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f7r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F7r1Spec ; impl crate :: RegisterSpec for F7r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f7r1::R`](R) reader structure"] impl crate :: Readable for F7r1Spec { }
#[doc = "`write(|w| ..)` method takes [`f7r1::W`](W) writer structure"] impl crate :: Writable for F7r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F7R1 to value 0"] impl crate :: Resettable for F7r1Spec { } }
#[doc = "F7R2 (rw) register accessor: Filter bank 7 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f7r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f7r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f7r2`] module"]
#[doc (alias = "F7R2")] pub type F7r2 = crate :: Reg < f7r2 :: F7r2Spec > ;
#[doc = "Filter bank 7 register 2"] pub mod f7r2 {
#[doc = "Register `F7R2` reader"] pub type R = crate :: R < F7r2Spec > ;
#[doc = "Register `F7R2` writer"] pub type W = crate :: W < F7r2Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F7r2Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F7r2Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F7r2Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F7r2Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F7r2Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F7r2Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F7r2Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F7r2Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F7r2Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F7r2Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F7r2Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F7r2Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F7r2Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F7r2Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F7r2Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F7r2Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F7r2Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F7r2Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F7r2Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F7r2Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F7r2Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F7r2Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F7r2Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F7r2Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F7r2Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F7r2Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F7r2Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F7r2Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F7r2Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F7r2Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F7r2Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F7r2Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 7 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f7r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f7r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F7r2Spec ; impl crate :: RegisterSpec for F7r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f7r2::R`](R) reader structure"] impl crate :: Readable for F7r2Spec { }
#[doc = "`write(|w| ..)` method takes [`f7r2::W`](W) writer structure"] impl crate :: Writable for F7r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F7R2 to value 0"] impl crate :: Resettable for F7r2Spec { } }
#[doc = "F8R1 (rw) register accessor: Filter bank 8 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f8r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f8r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f8r1`] module"]
#[doc (alias = "F8R1")] pub type F8r1 = crate :: Reg < f8r1 :: F8r1Spec > ;
#[doc = "Filter bank 8 register 1"] pub mod f8r1 {
#[doc = "Register `F8R1` reader"] pub type R = crate :: R < F8r1Spec > ;
#[doc = "Register `F8R1` writer"] pub type W = crate :: W < F8r1Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F8r1Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F8r1Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F8r1Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F8r1Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F8r1Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F8r1Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F8r1Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F8r1Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F8r1Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F8r1Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F8r1Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F8r1Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F8r1Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F8r1Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F8r1Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F8r1Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F8r1Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F8r1Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F8r1Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F8r1Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F8r1Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F8r1Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F8r1Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F8r1Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F8r1Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F8r1Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F8r1Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F8r1Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F8r1Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F8r1Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F8r1Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F8r1Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 8 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f8r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f8r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F8r1Spec ; impl crate :: RegisterSpec for F8r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f8r1::R`](R) reader structure"] impl crate :: Readable for F8r1Spec { }
#[doc = "`write(|w| ..)` method takes [`f8r1::W`](W) writer structure"] impl crate :: Writable for F8r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F8R1 to value 0"] impl crate :: Resettable for F8r1Spec { } }
#[doc = "F8R2 (rw) register accessor: Filter bank 8 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f8r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f8r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f8r2`] module"]
#[doc (alias = "F8R2")] pub type F8r2 = crate :: Reg < f8r2 :: F8r2Spec > ;
#[doc = "Filter bank 8 register 2"] pub mod f8r2 {
#[doc = "Register `F8R2` reader"] pub type R = crate :: R < F8r2Spec > ;
#[doc = "Register `F8R2` writer"] pub type W = crate :: W < F8r2Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F8r2Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F8r2Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F8r2Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F8r2Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F8r2Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F8r2Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F8r2Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F8r2Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F8r2Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F8r2Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F8r2Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F8r2Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F8r2Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F8r2Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F8r2Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F8r2Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F8r2Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F8r2Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F8r2Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F8r2Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F8r2Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F8r2Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F8r2Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F8r2Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F8r2Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F8r2Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F8r2Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F8r2Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F8r2Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F8r2Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F8r2Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F8r2Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 8 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f8r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f8r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F8r2Spec ; impl crate :: RegisterSpec for F8r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f8r2::R`](R) reader structure"] impl crate :: Readable for F8r2Spec { }
#[doc = "`write(|w| ..)` method takes [`f8r2::W`](W) writer structure"] impl crate :: Writable for F8r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F8R2 to value 0"] impl crate :: Resettable for F8r2Spec { } }
#[doc = "F9R1 (rw) register accessor: Filter bank 9 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f9r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f9r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f9r1`] module"]
#[doc (alias = "F9R1")] pub type F9r1 = crate :: Reg < f9r1 :: F9r1Spec > ;
#[doc = "Filter bank 9 register 1"] pub mod f9r1 {
#[doc = "Register `F9R1` reader"] pub type R = crate :: R < F9r1Spec > ;
#[doc = "Register `F9R1` writer"] pub type W = crate :: W < F9r1Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F9r1Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F9r1Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F9r1Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F9r1Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F9r1Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F9r1Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F9r1Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F9r1Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F9r1Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F9r1Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F9r1Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F9r1Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F9r1Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F9r1Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F9r1Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F9r1Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F9r1Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F9r1Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F9r1Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F9r1Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F9r1Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F9r1Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F9r1Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F9r1Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F9r1Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F9r1Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F9r1Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F9r1Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F9r1Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F9r1Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F9r1Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F9r1Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 9 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f9r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f9r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F9r1Spec ; impl crate :: RegisterSpec for F9r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f9r1::R`](R) reader structure"] impl crate :: Readable for F9r1Spec { }
#[doc = "`write(|w| ..)` method takes [`f9r1::W`](W) writer structure"] impl crate :: Writable for F9r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F9R1 to value 0"] impl crate :: Resettable for F9r1Spec { } }
#[doc = "F9R2 (rw) register accessor: Filter bank 9 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f9r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f9r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f9r2`] module"]
#[doc (alias = "F9R2")] pub type F9r2 = crate :: Reg < f9r2 :: F9r2Spec > ;
#[doc = "Filter bank 9 register 2"] pub mod f9r2 {
#[doc = "Register `F9R2` reader"] pub type R = crate :: R < F9r2Spec > ;
#[doc = "Register `F9R2` writer"] pub type W = crate :: W < F9r2Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F9r2Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F9r2Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F9r2Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F9r2Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F9r2Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F9r2Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F9r2Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F9r2Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F9r2Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F9r2Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F9r2Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F9r2Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F9r2Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F9r2Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F9r2Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F9r2Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F9r2Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F9r2Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F9r2Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F9r2Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F9r2Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F9r2Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F9r2Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F9r2Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F9r2Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F9r2Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F9r2Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F9r2Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F9r2Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F9r2Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F9r2Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F9r2Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 9 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f9r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f9r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F9r2Spec ; impl crate :: RegisterSpec for F9r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f9r2::R`](R) reader structure"] impl crate :: Readable for F9r2Spec { }
#[doc = "`write(|w| ..)` method takes [`f9r2::W`](W) writer structure"] impl crate :: Writable for F9r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F9R2 to value 0"] impl crate :: Resettable for F9r2Spec { } }
#[doc = "F10R1 (rw) register accessor: Filter bank 10 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f10r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f10r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f10r1`] module"]
#[doc (alias = "F10R1")] pub type F10r1 = crate :: Reg < f10r1 :: F10r1Spec > ;
#[doc = "Filter bank 10 register 1"] pub mod f10r1 {
#[doc = "Register `F10R1` reader"] pub type R = crate :: R < F10r1Spec > ;
#[doc = "Register `F10R1` writer"] pub type W = crate :: W < F10r1Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F10r1Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F10r1Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F10r1Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F10r1Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F10r1Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F10r1Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F10r1Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F10r1Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F10r1Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F10r1Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F10r1Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F10r1Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F10r1Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F10r1Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F10r1Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F10r1Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F10r1Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F10r1Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F10r1Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F10r1Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F10r1Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F10r1Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F10r1Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F10r1Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F10r1Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F10r1Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F10r1Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F10r1Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F10r1Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F10r1Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F10r1Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F10r1Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 10 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f10r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f10r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F10r1Spec ; impl crate :: RegisterSpec for F10r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f10r1::R`](R) reader structure"] impl crate :: Readable for F10r1Spec { }
#[doc = "`write(|w| ..)` method takes [`f10r1::W`](W) writer structure"] impl crate :: Writable for F10r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F10R1 to value 0"] impl crate :: Resettable for F10r1Spec { } }
#[doc = "F10R2 (rw) register accessor: Filter bank 10 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f10r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f10r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f10r2`] module"]
#[doc (alias = "F10R2")] pub type F10r2 = crate :: Reg < f10r2 :: F10r2Spec > ;
#[doc = "Filter bank 10 register 2"] pub mod f10r2 {
#[doc = "Register `F10R2` reader"] pub type R = crate :: R < F10r2Spec > ;
#[doc = "Register `F10R2` writer"] pub type W = crate :: W < F10r2Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F10r2Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F10r2Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F10r2Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F10r2Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F10r2Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F10r2Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F10r2Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F10r2Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F10r2Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F10r2Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F10r2Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F10r2Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F10r2Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F10r2Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F10r2Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F10r2Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F10r2Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F10r2Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F10r2Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F10r2Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F10r2Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F10r2Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F10r2Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F10r2Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F10r2Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F10r2Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F10r2Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F10r2Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F10r2Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F10r2Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F10r2Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F10r2Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 10 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f10r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f10r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F10r2Spec ; impl crate :: RegisterSpec for F10r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f10r2::R`](R) reader structure"] impl crate :: Readable for F10r2Spec { }
#[doc = "`write(|w| ..)` method takes [`f10r2::W`](W) writer structure"] impl crate :: Writable for F10r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F10R2 to value 0"] impl crate :: Resettable for F10r2Spec { } }
#[doc = "F11R1 (rw) register accessor: Filter bank 11 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f11r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f11r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f11r1`] module"]
#[doc (alias = "F11R1")] pub type F11r1 = crate :: Reg < f11r1 :: F11r1Spec > ;
#[doc = "Filter bank 11 register 1"] pub mod f11r1 {
#[doc = "Register `F11R1` reader"] pub type R = crate :: R < F11r1Spec > ;
#[doc = "Register `F11R1` writer"] pub type W = crate :: W < F11r1Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F11r1Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F11r1Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F11r1Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F11r1Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F11r1Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F11r1Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F11r1Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F11r1Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F11r1Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F11r1Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F11r1Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F11r1Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F11r1Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F11r1Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F11r1Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F11r1Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F11r1Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F11r1Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F11r1Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F11r1Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F11r1Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F11r1Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F11r1Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F11r1Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F11r1Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F11r1Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F11r1Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F11r1Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F11r1Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F11r1Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F11r1Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F11r1Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 11 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f11r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f11r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F11r1Spec ; impl crate :: RegisterSpec for F11r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f11r1::R`](R) reader structure"] impl crate :: Readable for F11r1Spec { }
#[doc = "`write(|w| ..)` method takes [`f11r1::W`](W) writer structure"] impl crate :: Writable for F11r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F11R1 to value 0"] impl crate :: Resettable for F11r1Spec { } }
#[doc = "F11R2 (rw) register accessor: Filter bank 11 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f11r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f11r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f11r2`] module"]
#[doc (alias = "F11R2")] pub type F11r2 = crate :: Reg < f11r2 :: F11r2Spec > ;
#[doc = "Filter bank 11 register 2"] pub mod f11r2 {
#[doc = "Register `F11R2` reader"] pub type R = crate :: R < F11r2Spec > ;
#[doc = "Register `F11R2` writer"] pub type W = crate :: W < F11r2Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F11r2Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F11r2Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F11r2Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F11r2Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F11r2Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F11r2Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F11r2Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F11r2Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F11r2Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F11r2Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F11r2Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F11r2Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F11r2Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F11r2Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F11r2Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F11r2Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F11r2Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F11r2Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F11r2Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F11r2Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F11r2Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F11r2Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F11r2Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F11r2Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F11r2Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F11r2Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F11r2Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F11r2Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F11r2Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F11r2Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F11r2Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F11r2Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 11 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f11r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f11r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F11r2Spec ; impl crate :: RegisterSpec for F11r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f11r2::R`](R) reader structure"] impl crate :: Readable for F11r2Spec { }
#[doc = "`write(|w| ..)` method takes [`f11r2::W`](W) writer structure"] impl crate :: Writable for F11r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F11R2 to value 0"] impl crate :: Resettable for F11r2Spec { } }
#[doc = "F12R1 (rw) register accessor: Filter bank 4 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f12r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f12r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f12r1`] module"]
#[doc (alias = "F12R1")] pub type F12r1 = crate :: Reg < f12r1 :: F12r1Spec > ;
#[doc = "Filter bank 4 register 1"] pub mod f12r1 {
#[doc = "Register `F12R1` reader"] pub type R = crate :: R < F12r1Spec > ;
#[doc = "Register `F12R1` writer"] pub type W = crate :: W < F12r1Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F12r1Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F12r1Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F12r1Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F12r1Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F12r1Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F12r1Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F12r1Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F12r1Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F12r1Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F12r1Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F12r1Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F12r1Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F12r1Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F12r1Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F12r1Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F12r1Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F12r1Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F12r1Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F12r1Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F12r1Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F12r1Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F12r1Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F12r1Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F12r1Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F12r1Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F12r1Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F12r1Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F12r1Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F12r1Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F12r1Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F12r1Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F12r1Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 4 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f12r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f12r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F12r1Spec ; impl crate :: RegisterSpec for F12r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f12r1::R`](R) reader structure"] impl crate :: Readable for F12r1Spec { }
#[doc = "`write(|w| ..)` method takes [`f12r1::W`](W) writer structure"] impl crate :: Writable for F12r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F12R1 to value 0"] impl crate :: Resettable for F12r1Spec { } }
#[doc = "F12R2 (rw) register accessor: Filter bank 12 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f12r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f12r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f12r2`] module"]
#[doc (alias = "F12R2")] pub type F12r2 = crate :: Reg < f12r2 :: F12r2Spec > ;
#[doc = "Filter bank 12 register 2"] pub mod f12r2 {
#[doc = "Register `F12R2` reader"] pub type R = crate :: R < F12r2Spec > ;
#[doc = "Register `F12R2` writer"] pub type W = crate :: W < F12r2Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F12r2Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F12r2Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F12r2Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F12r2Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F12r2Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F12r2Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F12r2Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F12r2Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F12r2Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F12r2Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F12r2Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F12r2Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F12r2Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F12r2Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F12r2Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F12r2Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F12r2Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F12r2Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F12r2Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F12r2Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F12r2Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F12r2Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F12r2Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F12r2Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F12r2Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F12r2Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F12r2Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F12r2Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F12r2Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F12r2Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F12r2Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F12r2Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 12 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f12r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f12r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F12r2Spec ; impl crate :: RegisterSpec for F12r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f12r2::R`](R) reader structure"] impl crate :: Readable for F12r2Spec { }
#[doc = "`write(|w| ..)` method takes [`f12r2::W`](W) writer structure"] impl crate :: Writable for F12r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F12R2 to value 0"] impl crate :: Resettable for F12r2Spec { } }
#[doc = "F13R1 (rw) register accessor: Filter bank 13 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f13r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f13r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f13r1`] module"]
#[doc (alias = "F13R1")] pub type F13r1 = crate :: Reg < f13r1 :: F13r1Spec > ;
#[doc = "Filter bank 13 register 1"] pub mod f13r1 {
#[doc = "Register `F13R1` reader"] pub type R = crate :: R < F13r1Spec > ;
#[doc = "Register `F13R1` writer"] pub type W = crate :: W < F13r1Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F13r1Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F13r1Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F13r1Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F13r1Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F13r1Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F13r1Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F13r1Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F13r1Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F13r1Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F13r1Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F13r1Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F13r1Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F13r1Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F13r1Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F13r1Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F13r1Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F13r1Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F13r1Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F13r1Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F13r1Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F13r1Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F13r1Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F13r1Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F13r1Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F13r1Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F13r1Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F13r1Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F13r1Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F13r1Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F13r1Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F13r1Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F13r1Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 13 register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`f13r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f13r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F13r1Spec ; impl crate :: RegisterSpec for F13r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f13r1::R`](R) reader structure"] impl crate :: Readable for F13r1Spec { }
#[doc = "`write(|w| ..)` method takes [`f13r1::W`](W) writer structure"] impl crate :: Writable for F13r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F13R1 to value 0"] impl crate :: Resettable for F13r1Spec { } }
#[doc = "F13R2 (rw) register accessor: Filter bank 13 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f13r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f13r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@f13r2`] module"]
#[doc (alias = "F13R2")] pub type F13r2 = crate :: Reg < f13r2 :: F13r2Spec > ;
#[doc = "Filter bank 13 register 2"] pub mod f13r2 {
#[doc = "Register `F13R2` reader"] pub type R = crate :: R < F13r2Spec > ;
#[doc = "Register `F13R2` writer"] pub type W = crate :: W < F13r2Spec > ;
#[doc = "Field `FB0` reader - Filter bits"] pub type Fb0R = crate :: BitReader ;
#[doc = "Field `FB0` writer - Filter bits"] pub type Fb0W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB1` reader - Filter bits"] pub type Fb1R = crate :: BitReader ;
#[doc = "Field `FB1` writer - Filter bits"] pub type Fb1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB2` reader - Filter bits"] pub type Fb2R = crate :: BitReader ;
#[doc = "Field `FB2` writer - Filter bits"] pub type Fb2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB3` reader - Filter bits"] pub type Fb3R = crate :: BitReader ;
#[doc = "Field `FB3` writer - Filter bits"] pub type Fb3W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB4` reader - Filter bits"] pub type Fb4R = crate :: BitReader ;
#[doc = "Field `FB4` writer - Filter bits"] pub type Fb4W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB5` reader - Filter bits"] pub type Fb5R = crate :: BitReader ;
#[doc = "Field `FB5` writer - Filter bits"] pub type Fb5W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB6` reader - Filter bits"] pub type Fb6R = crate :: BitReader ;
#[doc = "Field `FB6` writer - Filter bits"] pub type Fb6W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB7` reader - Filter bits"] pub type Fb7R = crate :: BitReader ;
#[doc = "Field `FB7` writer - Filter bits"] pub type Fb7W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB8` reader - Filter bits"] pub type Fb8R = crate :: BitReader ;
#[doc = "Field `FB8` writer - Filter bits"] pub type Fb8W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB9` reader - Filter bits"] pub type Fb9R = crate :: BitReader ;
#[doc = "Field `FB9` writer - Filter bits"] pub type Fb9W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB10` reader - Filter bits"] pub type Fb10R = crate :: BitReader ;
#[doc = "Field `FB10` writer - Filter bits"] pub type Fb10W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB11` reader - Filter bits"] pub type Fb11R = crate :: BitReader ;
#[doc = "Field `FB11` writer - Filter bits"] pub type Fb11W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB12` reader - Filter bits"] pub type Fb12R = crate :: BitReader ;
#[doc = "Field `FB12` writer - Filter bits"] pub type Fb12W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB13` reader - Filter bits"] pub type Fb13R = crate :: BitReader ;
#[doc = "Field `FB13` writer - Filter bits"] pub type Fb13W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB14` reader - Filter bits"] pub type Fb14R = crate :: BitReader ;
#[doc = "Field `FB14` writer - Filter bits"] pub type Fb14W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB15` reader - Filter bits"] pub type Fb15R = crate :: BitReader ;
#[doc = "Field `FB15` writer - Filter bits"] pub type Fb15W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB16` reader - Filter bits"] pub type Fb16R = crate :: BitReader ;
#[doc = "Field `FB16` writer - Filter bits"] pub type Fb16W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB17` reader - Filter bits"] pub type Fb17R = crate :: BitReader ;
#[doc = "Field `FB17` writer - Filter bits"] pub type Fb17W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB18` reader - Filter bits"] pub type Fb18R = crate :: BitReader ;
#[doc = "Field `FB18` writer - Filter bits"] pub type Fb18W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB19` reader - Filter bits"] pub type Fb19R = crate :: BitReader ;
#[doc = "Field `FB19` writer - Filter bits"] pub type Fb19W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB20` reader - Filter bits"] pub type Fb20R = crate :: BitReader ;
#[doc = "Field `FB20` writer - Filter bits"] pub type Fb20W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB21` reader - Filter bits"] pub type Fb21R = crate :: BitReader ;
#[doc = "Field `FB21` writer - Filter bits"] pub type Fb21W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB22` reader - Filter bits"] pub type Fb22R = crate :: BitReader ;
#[doc = "Field `FB22` writer - Filter bits"] pub type Fb22W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB23` reader - Filter bits"] pub type Fb23R = crate :: BitReader ;
#[doc = "Field `FB23` writer - Filter bits"] pub type Fb23W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB24` reader - Filter bits"] pub type Fb24R = crate :: BitReader ;
#[doc = "Field `FB24` writer - Filter bits"] pub type Fb24W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB25` reader - Filter bits"] pub type Fb25R = crate :: BitReader ;
#[doc = "Field `FB25` writer - Filter bits"] pub type Fb25W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB26` reader - Filter bits"] pub type Fb26R = crate :: BitReader ;
#[doc = "Field `FB26` writer - Filter bits"] pub type Fb26W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB27` reader - Filter bits"] pub type Fb27R = crate :: BitReader ;
#[doc = "Field `FB27` writer - Filter bits"] pub type Fb27W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB28` reader - Filter bits"] pub type Fb28R = crate :: BitReader ;
#[doc = "Field `FB28` writer - Filter bits"] pub type Fb28W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB29` reader - Filter bits"] pub type Fb29R = crate :: BitReader ;
#[doc = "Field `FB29` writer - Filter bits"] pub type Fb29W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB30` reader - Filter bits"] pub type Fb30R = crate :: BitReader ;
#[doc = "Field `FB30` writer - Filter bits"] pub type Fb30W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FB31` reader - Filter bits"] pub type Fb31R = crate :: BitReader ;
#[doc = "Field `FB31` writer - Filter bits"] pub type Fb31W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& self) -> Fb0R { Fb0R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& self) -> Fb1R { Fb1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& self) -> Fb2R { Fb2R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& self) -> Fb3R { Fb3R :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& self) -> Fb4R { Fb4R :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& self) -> Fb5R { Fb5R :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& self) -> Fb6R { Fb6R :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& self) -> Fb7R { Fb7R :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& self) -> Fb8R { Fb8R :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& self) -> Fb9R { Fb9R :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& self) -> Fb10R { Fb10R :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& self) -> Fb11R { Fb11R :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& self) -> Fb12R { Fb12R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& self) -> Fb13R { Fb13R :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& self) -> Fb14R { Fb14R :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& self) -> Fb15R { Fb15R :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& self) -> Fb16R { Fb16R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& self) -> Fb17R { Fb17R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& self) -> Fb18R { Fb18R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& self) -> Fb19R { Fb19R :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& self) -> Fb20R { Fb20R :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& self) -> Fb21R { Fb21R :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& self) -> Fb22R { Fb22R :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& self) -> Fb23R { Fb23R :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& self) -> Fb24R { Fb24R :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& self) -> Fb25R { Fb25R :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& self) -> Fb26R { Fb26R :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& self) -> Fb27R { Fb27R :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& self) -> Fb28R { Fb28R :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& self) -> Fb29R { Fb29R :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& self) -> Fb30R { Fb30R :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& self) -> Fb31R { Fb31R :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Filter bits"]
#[inline (always)] pub fn fb0 (& mut self) -> Fb0W < '_ , F13r2Spec > { Fb0W :: new (self , 0) }
#[doc = "Bit 1 - Filter bits"]
#[inline (always)] pub fn fb1 (& mut self) -> Fb1W < '_ , F13r2Spec > { Fb1W :: new (self , 1) }
#[doc = "Bit 2 - Filter bits"]
#[inline (always)] pub fn fb2 (& mut self) -> Fb2W < '_ , F13r2Spec > { Fb2W :: new (self , 2) }
#[doc = "Bit 3 - Filter bits"]
#[inline (always)] pub fn fb3 (& mut self) -> Fb3W < '_ , F13r2Spec > { Fb3W :: new (self , 3) }
#[doc = "Bit 4 - Filter bits"]
#[inline (always)] pub fn fb4 (& mut self) -> Fb4W < '_ , F13r2Spec > { Fb4W :: new (self , 4) }
#[doc = "Bit 5 - Filter bits"]
#[inline (always)] pub fn fb5 (& mut self) -> Fb5W < '_ , F13r2Spec > { Fb5W :: new (self , 5) }
#[doc = "Bit 6 - Filter bits"]
#[inline (always)] pub fn fb6 (& mut self) -> Fb6W < '_ , F13r2Spec > { Fb6W :: new (self , 6) }
#[doc = "Bit 7 - Filter bits"]
#[inline (always)] pub fn fb7 (& mut self) -> Fb7W < '_ , F13r2Spec > { Fb7W :: new (self , 7) }
#[doc = "Bit 8 - Filter bits"]
#[inline (always)] pub fn fb8 (& mut self) -> Fb8W < '_ , F13r2Spec > { Fb8W :: new (self , 8) }
#[doc = "Bit 9 - Filter bits"]
#[inline (always)] pub fn fb9 (& mut self) -> Fb9W < '_ , F13r2Spec > { Fb9W :: new (self , 9) }
#[doc = "Bit 10 - Filter bits"]
#[inline (always)] pub fn fb10 (& mut self) -> Fb10W < '_ , F13r2Spec > { Fb10W :: new (self , 10) }
#[doc = "Bit 11 - Filter bits"]
#[inline (always)] pub fn fb11 (& mut self) -> Fb11W < '_ , F13r2Spec > { Fb11W :: new (self , 11) }
#[doc = "Bit 12 - Filter bits"]
#[inline (always)] pub fn fb12 (& mut self) -> Fb12W < '_ , F13r2Spec > { Fb12W :: new (self , 12) }
#[doc = "Bit 13 - Filter bits"]
#[inline (always)] pub fn fb13 (& mut self) -> Fb13W < '_ , F13r2Spec > { Fb13W :: new (self , 13) }
#[doc = "Bit 14 - Filter bits"]
#[inline (always)] pub fn fb14 (& mut self) -> Fb14W < '_ , F13r2Spec > { Fb14W :: new (self , 14) }
#[doc = "Bit 15 - Filter bits"]
#[inline (always)] pub fn fb15 (& mut self) -> Fb15W < '_ , F13r2Spec > { Fb15W :: new (self , 15) }
#[doc = "Bit 16 - Filter bits"]
#[inline (always)] pub fn fb16 (& mut self) -> Fb16W < '_ , F13r2Spec > { Fb16W :: new (self , 16) }
#[doc = "Bit 17 - Filter bits"]
#[inline (always)] pub fn fb17 (& mut self) -> Fb17W < '_ , F13r2Spec > { Fb17W :: new (self , 17) }
#[doc = "Bit 18 - Filter bits"]
#[inline (always)] pub fn fb18 (& mut self) -> Fb18W < '_ , F13r2Spec > { Fb18W :: new (self , 18) }
#[doc = "Bit 19 - Filter bits"]
#[inline (always)] pub fn fb19 (& mut self) -> Fb19W < '_ , F13r2Spec > { Fb19W :: new (self , 19) }
#[doc = "Bit 20 - Filter bits"]
#[inline (always)] pub fn fb20 (& mut self) -> Fb20W < '_ , F13r2Spec > { Fb20W :: new (self , 20) }
#[doc = "Bit 21 - Filter bits"]
#[inline (always)] pub fn fb21 (& mut self) -> Fb21W < '_ , F13r2Spec > { Fb21W :: new (self , 21) }
#[doc = "Bit 22 - Filter bits"]
#[inline (always)] pub fn fb22 (& mut self) -> Fb22W < '_ , F13r2Spec > { Fb22W :: new (self , 22) }
#[doc = "Bit 23 - Filter bits"]
#[inline (always)] pub fn fb23 (& mut self) -> Fb23W < '_ , F13r2Spec > { Fb23W :: new (self , 23) }
#[doc = "Bit 24 - Filter bits"]
#[inline (always)] pub fn fb24 (& mut self) -> Fb24W < '_ , F13r2Spec > { Fb24W :: new (self , 24) }
#[doc = "Bit 25 - Filter bits"]
#[inline (always)] pub fn fb25 (& mut self) -> Fb25W < '_ , F13r2Spec > { Fb25W :: new (self , 25) }
#[doc = "Bit 26 - Filter bits"]
#[inline (always)] pub fn fb26 (& mut self) -> Fb26W < '_ , F13r2Spec > { Fb26W :: new (self , 26) }
#[doc = "Bit 27 - Filter bits"]
#[inline (always)] pub fn fb27 (& mut self) -> Fb27W < '_ , F13r2Spec > { Fb27W :: new (self , 27) }
#[doc = "Bit 28 - Filter bits"]
#[inline (always)] pub fn fb28 (& mut self) -> Fb28W < '_ , F13r2Spec > { Fb28W :: new (self , 28) }
#[doc = "Bit 29 - Filter bits"]
#[inline (always)] pub fn fb29 (& mut self) -> Fb29W < '_ , F13r2Spec > { Fb29W :: new (self , 29) }
#[doc = "Bit 30 - Filter bits"]
#[inline (always)] pub fn fb30 (& mut self) -> Fb30W < '_ , F13r2Spec > { Fb30W :: new (self , 30) }
#[doc = "Bit 31 - Filter bits"]
#[inline (always)] pub fn fb31 (& mut self) -> Fb31W < '_ , F13r2Spec > { Fb31W :: new (self , 31) } }
#[doc = "Filter bank 13 register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`f13r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`f13r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct F13r2Spec ; impl crate :: RegisterSpec for F13r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`f13r2::R`](R) reader structure"] impl crate :: Readable for F13r2Spec { }
#[doc = "`write(|w| ..)` method takes [`f13r2::W`](W) writer structure"] impl crate :: Writable for F13r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets F13R2 to value 0"] impl crate :: Resettable for F13r2Spec { } } }
#[doc = "Controller area network"] pub type Can2 = crate :: Periph < can1 :: RegisterBlock , 0x4000_6800 > ; impl core :: fmt :: Debug for Can2 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Can2") . finish () } }
#[doc = "Controller area network"] pub use self :: can1 as can2 ;
#[doc = "Digital to analog converter"] pub type Dac = crate :: Periph < dac :: RegisterBlock , 0x4000_7400 > ; impl core :: fmt :: Debug for Dac { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Dac") . finish () } }
#[doc = "Digital to analog converter"] pub mod dac {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { cr : Cr , swtrigr : Swtrigr , dhr12r1 : Dhr12r1 , dhr12l1 : Dhr12l1 , dhr8r1 : Dhr8r1 , dhr12r2 : Dhr12r2 , dhr12l2 : Dhr12l2 , dhr8r2 : Dhr8r2 , dhr12rd : Dhr12rd , dhr12ld : Dhr12ld , dhr8rd : Dhr8rd , dor1 : Dor1 , dor2 : Dor2 , } impl RegisterBlock {
#[doc = "0x00 - Control register (DAC_CR)"]
#[inline (always)] pub const fn cr (& self) -> & Cr { & self . cr }
#[doc = "0x04 - DAC software trigger register (DAC_SWTRIGR)"]
#[inline (always)] pub const fn swtrigr (& self) -> & Swtrigr { & self . swtrigr }
#[doc = "0x08 - DAC channel1 12-bit right-aligned data holding register(DAC_DHR12R1)"]
#[inline (always)] pub const fn dhr12r1 (& self) -> & Dhr12r1 { & self . dhr12r1 }
#[doc = "0x0c - DAC channel1 12-bit left aligned data holding register (DAC_DHR12L1)"]
#[inline (always)] pub const fn dhr12l1 (& self) -> & Dhr12l1 { & self . dhr12l1 }
#[doc = "0x10 - DAC channel1 8-bit right aligned data holding register (DAC_DHR8R1)"]
#[inline (always)] pub const fn dhr8r1 (& self) -> & Dhr8r1 { & self . dhr8r1 }
#[doc = "0x14 - DAC channel2 12-bit right aligned data holding register (DAC_DHR12R2)"]
#[inline (always)] pub const fn dhr12r2 (& self) -> & Dhr12r2 { & self . dhr12r2 }
#[doc = "0x18 - DAC channel2 12-bit left aligned data holding register (DAC_DHR12L2)"]
#[inline (always)] pub const fn dhr12l2 (& self) -> & Dhr12l2 { & self . dhr12l2 }
#[doc = "0x1c - DAC channel2 8-bit right-aligned data holding register (DAC_DHR8R2)"]
#[inline (always)] pub const fn dhr8r2 (& self) -> & Dhr8r2 { & self . dhr8r2 }
#[doc = "0x20 - Dual DAC 12-bit right-aligned data holding register (DAC_DHR12RD), Bits 31:28 Reserved, Bits 15:12 Reserved"]
#[inline (always)] pub const fn dhr12rd (& self) -> & Dhr12rd { & self . dhr12rd }
#[doc = "0x24 - DUAL DAC 12-bit left aligned data holding register (DAC_DHR12LD), Bits 19:16 Reserved, Bits 3:0 Reserved"]
#[inline (always)] pub const fn dhr12ld (& self) -> & Dhr12ld { & self . dhr12ld }
#[doc = "0x28 - DUAL DAC 8-bit right aligned data holding register (DAC_DHR8RD), Bits 31:16 Reserved"]
#[inline (always)] pub const fn dhr8rd (& self) -> & Dhr8rd { & self . dhr8rd }
#[doc = "0x2c - DAC channel1 data output register (DAC_DOR1)"]
#[inline (always)] pub const fn dor1 (& self) -> & Dor1 { & self . dor1 }
#[doc = "0x30 - DAC channel2 data output register (DAC_DOR2)"]
#[inline (always)] pub const fn dor2 (& self) -> & Dor2 { & self . dor2 } }
#[doc = "CR (rw) register accessor: Control register (DAC_CR)\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr`] module"]
#[doc (alias = "CR")] pub type Cr = crate :: Reg < cr :: CrSpec > ;
#[doc = "Control register (DAC_CR)"] pub mod cr {
#[doc = "Register `CR` reader"] pub type R = crate :: R < CrSpec > ;
#[doc = "Register `CR` writer"] pub type W = crate :: W < CrSpec > ;
#[doc = "Field `EN1` reader - DAC channel1 enable"] pub type En1R = crate :: BitReader ;
#[doc = "Field `EN1` writer - DAC channel1 enable"] pub type En1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BOFF1` reader - DAC channel1 output buffer disable"] pub type Boff1R = crate :: BitReader ;
#[doc = "Field `BOFF1` writer - DAC channel1 output buffer disable"] pub type Boff1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TEN1` reader - DAC channel1 trigger enable"] pub type Ten1R = crate :: BitReader ;
#[doc = "Field `TEN1` writer - DAC channel1 trigger enable"] pub type Ten1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TSEL1` reader - DAC channel1 trigger selection"] pub type Tsel1R = crate :: FieldReader ;
#[doc = "Field `TSEL1` writer - DAC channel1 trigger selection"] pub type Tsel1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `WAVE1` reader - DAC channel1 noise/triangle wave generation enable"] pub type Wave1R = crate :: FieldReader ;
#[doc = "Field `WAVE1` writer - DAC channel1 noise/triangle wave generation enable"] pub type Wave1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MAMP1` reader - DAC channel1 mask/amplitude selector"] pub type Mamp1R = crate :: FieldReader ;
#[doc = "Field `MAMP1` writer - DAC channel1 mask/amplitude selector"] pub type Mamp1W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DMAEN1` reader - DAC channel1 DMA enable"] pub type Dmaen1R = crate :: BitReader ;
#[doc = "Field `DMAEN1` writer - DAC channel1 DMA enable"] pub type Dmaen1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EN2` reader - DAC channel2 enable"] pub type En2R = crate :: BitReader ;
#[doc = "Field `EN2` writer - DAC channel2 enable"] pub type En2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BOFF2` reader - DAC channel2 output buffer disable"] pub type Boff2R = crate :: BitReader ;
#[doc = "Field `BOFF2` writer - DAC channel2 output buffer disable"] pub type Boff2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TEN2` reader - DAC channel2 trigger enable"] pub type Ten2R = crate :: BitReader ;
#[doc = "Field `TEN2` writer - DAC channel2 trigger enable"] pub type Ten2W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TSEL2` reader - DAC channel2 trigger selection"] pub type Tsel2R = crate :: FieldReader ;
#[doc = "Field `TSEL2` writer - DAC channel2 trigger selection"] pub type Tsel2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `WAVE2` reader - DAC channel2 noise/triangle wave generation enable"] pub type Wave2R = crate :: FieldReader ;
#[doc = "Field `WAVE2` writer - DAC channel2 noise/triangle wave generation enable"] pub type Wave2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MAMP2` reader - DAC channel2 mask/amplitude selector"] pub type Mamp2R = crate :: FieldReader ;
#[doc = "Field `MAMP2` writer - DAC channel2 mask/amplitude selector"] pub type Mamp2W < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DMAEN2` reader - DAC channel2 DMA enable"] pub type Dmaen2R = crate :: BitReader ;
#[doc = "Field `DMAEN2` writer - DAC channel2 DMA enable"] pub type Dmaen2W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - DAC channel1 enable"]
#[inline (always)] pub fn en1 (& self) -> En1R { En1R :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - DAC channel1 output buffer disable"]
#[inline (always)] pub fn boff1 (& self) -> Boff1R { Boff1R :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - DAC channel1 trigger enable"]
#[inline (always)] pub fn ten1 (& self) -> Ten1R { Ten1R :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bits 3:5 - DAC channel1 trigger selection"]
#[inline (always)] pub fn tsel1 (& self) -> Tsel1R { Tsel1R :: new (((self . bits >> 3) & 7) as u8) }
#[doc = "Bits 6:7 - DAC channel1 noise/triangle wave generation enable"]
#[inline (always)] pub fn wave1 (& self) -> Wave1R { Wave1R :: new (((self . bits >> 6) & 3) as u8) }
#[doc = "Bits 8:11 - DAC channel1 mask/amplitude selector"]
#[inline (always)] pub fn mamp1 (& self) -> Mamp1R { Mamp1R :: new (((self . bits >> 8) & 0x0f) as u8) }
#[doc = "Bit 12 - DAC channel1 DMA enable"]
#[inline (always)] pub fn dmaen1 (& self) -> Dmaen1R { Dmaen1R :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 16 - DAC channel2 enable"]
#[inline (always)] pub fn en2 (& self) -> En2R { En2R :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - DAC channel2 output buffer disable"]
#[inline (always)] pub fn boff2 (& self) -> Boff2R { Boff2R :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - DAC channel2 trigger enable"]
#[inline (always)] pub fn ten2 (& self) -> Ten2R { Ten2R :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bits 19:21 - DAC channel2 trigger selection"]
#[inline (always)] pub fn tsel2 (& self) -> Tsel2R { Tsel2R :: new (((self . bits >> 19) & 7) as u8) }
#[doc = "Bits 22:23 - DAC channel2 noise/triangle wave generation enable"]
#[inline (always)] pub fn wave2 (& self) -> Wave2R { Wave2R :: new (((self . bits >> 22) & 3) as u8) }
#[doc = "Bits 24:27 - DAC channel2 mask/amplitude selector"]
#[inline (always)] pub fn mamp2 (& self) -> Mamp2R { Mamp2R :: new (((self . bits >> 24) & 0x0f) as u8) }
#[doc = "Bit 28 - DAC channel2 DMA enable"]
#[inline (always)] pub fn dmaen2 (& self) -> Dmaen2R { Dmaen2R :: new (((self . bits >> 28) & 1) != 0) } } impl W {
#[doc = "Bit 0 - DAC channel1 enable"]
#[inline (always)] pub fn en1 (& mut self) -> En1W < '_ , CrSpec > { En1W :: new (self , 0) }
#[doc = "Bit 1 - DAC channel1 output buffer disable"]
#[inline (always)] pub fn boff1 (& mut self) -> Boff1W < '_ , CrSpec > { Boff1W :: new (self , 1) }
#[doc = "Bit 2 - DAC channel1 trigger enable"]
#[inline (always)] pub fn ten1 (& mut self) -> Ten1W < '_ , CrSpec > { Ten1W :: new (self , 2) }
#[doc = "Bits 3:5 - DAC channel1 trigger selection"]
#[inline (always)] pub fn tsel1 (& mut self) -> Tsel1W < '_ , CrSpec > { Tsel1W :: new (self , 3) }
#[doc = "Bits 6:7 - DAC channel1 noise/triangle wave generation enable"]
#[inline (always)] pub fn wave1 (& mut self) -> Wave1W < '_ , CrSpec > { Wave1W :: new (self , 6) }
#[doc = "Bits 8:11 - DAC channel1 mask/amplitude selector"]
#[inline (always)] pub fn mamp1 (& mut self) -> Mamp1W < '_ , CrSpec > { Mamp1W :: new (self , 8) }
#[doc = "Bit 12 - DAC channel1 DMA enable"]
#[inline (always)] pub fn dmaen1 (& mut self) -> Dmaen1W < '_ , CrSpec > { Dmaen1W :: new (self , 12) }
#[doc = "Bit 16 - DAC channel2 enable"]
#[inline (always)] pub fn en2 (& mut self) -> En2W < '_ , CrSpec > { En2W :: new (self , 16) }
#[doc = "Bit 17 - DAC channel2 output buffer disable"]
#[inline (always)] pub fn boff2 (& mut self) -> Boff2W < '_ , CrSpec > { Boff2W :: new (self , 17) }
#[doc = "Bit 18 - DAC channel2 trigger enable"]
#[inline (always)] pub fn ten2 (& mut self) -> Ten2W < '_ , CrSpec > { Ten2W :: new (self , 18) }
#[doc = "Bits 19:21 - DAC channel2 trigger selection"]
#[inline (always)] pub fn tsel2 (& mut self) -> Tsel2W < '_ , CrSpec > { Tsel2W :: new (self , 19) }
#[doc = "Bits 22:23 - DAC channel2 noise/triangle wave generation enable"]
#[inline (always)] pub fn wave2 (& mut self) -> Wave2W < '_ , CrSpec > { Wave2W :: new (self , 22) }
#[doc = "Bits 24:27 - DAC channel2 mask/amplitude selector"]
#[inline (always)] pub fn mamp2 (& mut self) -> Mamp2W < '_ , CrSpec > { Mamp2W :: new (self , 24) }
#[doc = "Bit 28 - DAC channel2 DMA enable"]
#[inline (always)] pub fn dmaen2 (& mut self) -> Dmaen2W < '_ , CrSpec > { Dmaen2W :: new (self , 28) } }
#[doc = "Control register (DAC_CR)\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CrSpec ; impl crate :: RegisterSpec for CrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr::R`](R) reader structure"] impl crate :: Readable for CrSpec { }
#[doc = "`write(|w| ..)` method takes [`cr::W`](W) writer structure"] impl crate :: Writable for CrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR to value 0"] impl crate :: Resettable for CrSpec { } }
#[doc = "SWTRIGR (w) register accessor: DAC software trigger register (DAC_SWTRIGR)\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`swtrigr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@swtrigr`] module"]
#[doc (alias = "SWTRIGR")] pub type Swtrigr = crate :: Reg < swtrigr :: SwtrigrSpec > ;
#[doc = "DAC software trigger register (DAC_SWTRIGR)"] pub mod swtrigr {
#[doc = "Register `SWTRIGR` writer"] pub type W = crate :: W < SwtrigrSpec > ;
#[doc = "Field `SWTRIG1` writer - DAC channel1 software trigger"] pub type Swtrig1W < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SWTRIG2` writer - DAC channel2 software trigger"] pub type Swtrig2W < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl W {
#[doc = "Bit 0 - DAC channel1 software trigger"]
#[inline (always)] pub fn swtrig1 (& mut self) -> Swtrig1W < '_ , SwtrigrSpec > { Swtrig1W :: new (self , 0) }
#[doc = "Bit 1 - DAC channel2 software trigger"]
#[inline (always)] pub fn swtrig2 (& mut self) -> Swtrig2W < '_ , SwtrigrSpec > { Swtrig2W :: new (self , 1) } }
#[doc = "DAC software trigger register (DAC_SWTRIGR)\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`swtrigr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SwtrigrSpec ; impl crate :: RegisterSpec for SwtrigrSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`swtrigr::W`](W) writer structure"] impl crate :: Writable for SwtrigrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SWTRIGR to value 0"] impl crate :: Resettable for SwtrigrSpec { } }
#[doc = "DHR12R1 (rw) register accessor: DAC channel1 12-bit right-aligned data holding register(DAC_DHR12R1)\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr12r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr12r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dhr12r1`] module"]
#[doc (alias = "DHR12R1")] pub type Dhr12r1 = crate :: Reg < dhr12r1 :: Dhr12r1Spec > ;
#[doc = "DAC channel1 12-bit right-aligned data holding register(DAC_DHR12R1)"] pub mod dhr12r1 {
#[doc = "Register `DHR12R1` reader"] pub type R = crate :: R < Dhr12r1Spec > ;
#[doc = "Register `DHR12R1` writer"] pub type W = crate :: W < Dhr12r1Spec > ;
#[doc = "Field `DACC1DHR` reader - DAC channel1 12-bit right-aligned data"] pub type Dacc1dhrR = crate :: FieldReader < u16 > ;
#[doc = "Field `DACC1DHR` writer - DAC channel1 12-bit right-aligned data"] pub type Dacc1dhrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - DAC channel1 12-bit right-aligned data"]
#[inline (always)] pub fn dacc1dhr (& self) -> Dacc1dhrR { Dacc1dhrR :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - DAC channel1 12-bit right-aligned data"]
#[inline (always)] pub fn dacc1dhr (& mut self) -> Dacc1dhrW < '_ , Dhr12r1Spec > { Dacc1dhrW :: new (self , 0) } }
#[doc = "DAC channel1 12-bit right-aligned data holding register(DAC_DHR12R1)\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr12r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr12r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dhr12r1Spec ; impl crate :: RegisterSpec for Dhr12r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dhr12r1::R`](R) reader structure"] impl crate :: Readable for Dhr12r1Spec { }
#[doc = "`write(|w| ..)` method takes [`dhr12r1::W`](W) writer structure"] impl crate :: Writable for Dhr12r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DHR12R1 to value 0"] impl crate :: Resettable for Dhr12r1Spec { } }
#[doc = "DHR12L1 (rw) register accessor: DAC channel1 12-bit left aligned data holding register (DAC_DHR12L1)\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr12l1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr12l1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dhr12l1`] module"]
#[doc (alias = "DHR12L1")] pub type Dhr12l1 = crate :: Reg < dhr12l1 :: Dhr12l1Spec > ;
#[doc = "DAC channel1 12-bit left aligned data holding register (DAC_DHR12L1)"] pub mod dhr12l1 {
#[doc = "Register `DHR12L1` reader"] pub type R = crate :: R < Dhr12l1Spec > ;
#[doc = "Register `DHR12L1` writer"] pub type W = crate :: W < Dhr12l1Spec > ;
#[doc = "Field `DACC1DHR` reader - DAC channel1 12-bit left-aligned data"] pub type Dacc1dhrR = crate :: FieldReader < u16 > ;
#[doc = "Field `DACC1DHR` writer - DAC channel1 12-bit left-aligned data"] pub type Dacc1dhrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 4:15 - DAC channel1 12-bit left-aligned data"]
#[inline (always)] pub fn dacc1dhr (& self) -> Dacc1dhrR { Dacc1dhrR :: new (((self . bits >> 4) & 0x0fff) as u16) } } impl W {
#[doc = "Bits 4:15 - DAC channel1 12-bit left-aligned data"]
#[inline (always)] pub fn dacc1dhr (& mut self) -> Dacc1dhrW < '_ , Dhr12l1Spec > { Dacc1dhrW :: new (self , 4) } }
#[doc = "DAC channel1 12-bit left aligned data holding register (DAC_DHR12L1)\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr12l1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr12l1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dhr12l1Spec ; impl crate :: RegisterSpec for Dhr12l1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dhr12l1::R`](R) reader structure"] impl crate :: Readable for Dhr12l1Spec { }
#[doc = "`write(|w| ..)` method takes [`dhr12l1::W`](W) writer structure"] impl crate :: Writable for Dhr12l1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DHR12L1 to value 0"] impl crate :: Resettable for Dhr12l1Spec { } }
#[doc = "DHR8R1 (rw) register accessor: DAC channel1 8-bit right aligned data holding register (DAC_DHR8R1)\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr8r1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr8r1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dhr8r1`] module"]
#[doc (alias = "DHR8R1")] pub type Dhr8r1 = crate :: Reg < dhr8r1 :: Dhr8r1Spec > ;
#[doc = "DAC channel1 8-bit right aligned data holding register (DAC_DHR8R1)"] pub mod dhr8r1 {
#[doc = "Register `DHR8R1` reader"] pub type R = crate :: R < Dhr8r1Spec > ;
#[doc = "Register `DHR8R1` writer"] pub type W = crate :: W < Dhr8r1Spec > ;
#[doc = "Field `DACC1DHR` reader - DAC channel1 8-bit right-aligned data"] pub type Dacc1dhrR = crate :: FieldReader ;
#[doc = "Field `DACC1DHR` writer - DAC channel1 8-bit right-aligned data"] pub type Dacc1dhrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - DAC channel1 8-bit right-aligned data"]
#[inline (always)] pub fn dacc1dhr (& self) -> Dacc1dhrR { Dacc1dhrR :: new ((self . bits & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - DAC channel1 8-bit right-aligned data"]
#[inline (always)] pub fn dacc1dhr (& mut self) -> Dacc1dhrW < '_ , Dhr8r1Spec > { Dacc1dhrW :: new (self , 0) } }
#[doc = "DAC channel1 8-bit right aligned data holding register (DAC_DHR8R1)\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr8r1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr8r1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dhr8r1Spec ; impl crate :: RegisterSpec for Dhr8r1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dhr8r1::R`](R) reader structure"] impl crate :: Readable for Dhr8r1Spec { }
#[doc = "`write(|w| ..)` method takes [`dhr8r1::W`](W) writer structure"] impl crate :: Writable for Dhr8r1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DHR8R1 to value 0"] impl crate :: Resettable for Dhr8r1Spec { } }
#[doc = "DHR12R2 (rw) register accessor: DAC channel2 12-bit right aligned data holding register (DAC_DHR12R2)\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr12r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr12r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dhr12r2`] module"]
#[doc (alias = "DHR12R2")] pub type Dhr12r2 = crate :: Reg < dhr12r2 :: Dhr12r2Spec > ;
#[doc = "DAC channel2 12-bit right aligned data holding register (DAC_DHR12R2)"] pub mod dhr12r2 {
#[doc = "Register `DHR12R2` reader"] pub type R = crate :: R < Dhr12r2Spec > ;
#[doc = "Register `DHR12R2` writer"] pub type W = crate :: W < Dhr12r2Spec > ;
#[doc = "Field `DACC2DHR` reader - DAC channel2 12-bit right-aligned data"] pub type Dacc2dhrR = crate :: FieldReader < u16 > ;
#[doc = "Field `DACC2DHR` writer - DAC channel2 12-bit right-aligned data"] pub type Dacc2dhrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - DAC channel2 12-bit right-aligned data"]
#[inline (always)] pub fn dacc2dhr (& self) -> Dacc2dhrR { Dacc2dhrR :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - DAC channel2 12-bit right-aligned data"]
#[inline (always)] pub fn dacc2dhr (& mut self) -> Dacc2dhrW < '_ , Dhr12r2Spec > { Dacc2dhrW :: new (self , 0) } }
#[doc = "DAC channel2 12-bit right aligned data holding register (DAC_DHR12R2)\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr12r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr12r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dhr12r2Spec ; impl crate :: RegisterSpec for Dhr12r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dhr12r2::R`](R) reader structure"] impl crate :: Readable for Dhr12r2Spec { }
#[doc = "`write(|w| ..)` method takes [`dhr12r2::W`](W) writer structure"] impl crate :: Writable for Dhr12r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DHR12R2 to value 0"] impl crate :: Resettable for Dhr12r2Spec { } }
#[doc = "DHR12L2 (rw) register accessor: DAC channel2 12-bit left aligned data holding register (DAC_DHR12L2)\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr12l2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr12l2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dhr12l2`] module"]
#[doc (alias = "DHR12L2")] pub type Dhr12l2 = crate :: Reg < dhr12l2 :: Dhr12l2Spec > ;
#[doc = "DAC channel2 12-bit left aligned data holding register (DAC_DHR12L2)"] pub mod dhr12l2 {
#[doc = "Register `DHR12L2` reader"] pub type R = crate :: R < Dhr12l2Spec > ;
#[doc = "Register `DHR12L2` writer"] pub type W = crate :: W < Dhr12l2Spec > ;
#[doc = "Field `DACC2DHR` reader - DAC channel2 12-bit left-aligned data"] pub type Dacc2dhrR = crate :: FieldReader < u16 > ;
#[doc = "Field `DACC2DHR` writer - DAC channel2 12-bit left-aligned data"] pub type Dacc2dhrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 4:15 - DAC channel2 12-bit left-aligned data"]
#[inline (always)] pub fn dacc2dhr (& self) -> Dacc2dhrR { Dacc2dhrR :: new (((self . bits >> 4) & 0x0fff) as u16) } } impl W {
#[doc = "Bits 4:15 - DAC channel2 12-bit left-aligned data"]
#[inline (always)] pub fn dacc2dhr (& mut self) -> Dacc2dhrW < '_ , Dhr12l2Spec > { Dacc2dhrW :: new (self , 4) } }
#[doc = "DAC channel2 12-bit left aligned data holding register (DAC_DHR12L2)\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr12l2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr12l2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dhr12l2Spec ; impl crate :: RegisterSpec for Dhr12l2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dhr12l2::R`](R) reader structure"] impl crate :: Readable for Dhr12l2Spec { }
#[doc = "`write(|w| ..)` method takes [`dhr12l2::W`](W) writer structure"] impl crate :: Writable for Dhr12l2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DHR12L2 to value 0"] impl crate :: Resettable for Dhr12l2Spec { } }
#[doc = "DHR8R2 (rw) register accessor: DAC channel2 8-bit right-aligned data holding register (DAC_DHR8R2)\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr8r2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr8r2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dhr8r2`] module"]
#[doc (alias = "DHR8R2")] pub type Dhr8r2 = crate :: Reg < dhr8r2 :: Dhr8r2Spec > ;
#[doc = "DAC channel2 8-bit right-aligned data holding register (DAC_DHR8R2)"] pub mod dhr8r2 {
#[doc = "Register `DHR8R2` reader"] pub type R = crate :: R < Dhr8r2Spec > ;
#[doc = "Register `DHR8R2` writer"] pub type W = crate :: W < Dhr8r2Spec > ;
#[doc = "Field `DACC2DHR` reader - DAC channel2 8-bit right-aligned data"] pub type Dacc2dhrR = crate :: FieldReader ;
#[doc = "Field `DACC2DHR` writer - DAC channel2 8-bit right-aligned data"] pub type Dacc2dhrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - DAC channel2 8-bit right-aligned data"]
#[inline (always)] pub fn dacc2dhr (& self) -> Dacc2dhrR { Dacc2dhrR :: new ((self . bits & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - DAC channel2 8-bit right-aligned data"]
#[inline (always)] pub fn dacc2dhr (& mut self) -> Dacc2dhrW < '_ , Dhr8r2Spec > { Dacc2dhrW :: new (self , 0) } }
#[doc = "DAC channel2 8-bit right-aligned data holding register (DAC_DHR8R2)\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr8r2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr8r2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dhr8r2Spec ; impl crate :: RegisterSpec for Dhr8r2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dhr8r2::R`](R) reader structure"] impl crate :: Readable for Dhr8r2Spec { }
#[doc = "`write(|w| ..)` method takes [`dhr8r2::W`](W) writer structure"] impl crate :: Writable for Dhr8r2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DHR8R2 to value 0"] impl crate :: Resettable for Dhr8r2Spec { } }
#[doc = "DHR12RD (rw) register accessor: Dual DAC 12-bit right-aligned data holding register (DAC_DHR12RD), Bits 31:28 Reserved, Bits 15:12 Reserved\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr12rd::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr12rd::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dhr12rd`] module"]
#[doc (alias = "DHR12RD")] pub type Dhr12rd = crate :: Reg < dhr12rd :: Dhr12rdSpec > ;
#[doc = "Dual DAC 12-bit right-aligned data holding register (DAC_DHR12RD), Bits 31:28 Reserved, Bits 15:12 Reserved"] pub mod dhr12rd {
#[doc = "Register `DHR12RD` reader"] pub type R = crate :: R < Dhr12rdSpec > ;
#[doc = "Register `DHR12RD` writer"] pub type W = crate :: W < Dhr12rdSpec > ;
#[doc = "Field `DACC1DHR` reader - DAC channel1 12-bit right-aligned data"] pub type Dacc1dhrR = crate :: FieldReader < u16 > ;
#[doc = "Field `DACC1DHR` writer - DAC channel1 12-bit right-aligned data"] pub type Dacc1dhrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ;
#[doc = "Field `DACC2DHR` reader - DAC channel2 12-bit right-aligned data"] pub type Dacc2dhrR = crate :: FieldReader < u16 > ;
#[doc = "Field `DACC2DHR` writer - DAC channel2 12-bit right-aligned data"] pub type Dacc2dhrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - DAC channel1 12-bit right-aligned data"]
#[inline (always)] pub fn dacc1dhr (& self) -> Dacc1dhrR { Dacc1dhrR :: new ((self . bits & 0x0fff) as u16) }
#[doc = "Bits 16:27 - DAC channel2 12-bit right-aligned data"]
#[inline (always)] pub fn dacc2dhr (& self) -> Dacc2dhrR { Dacc2dhrR :: new (((self . bits >> 16) & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - DAC channel1 12-bit right-aligned data"]
#[inline (always)] pub fn dacc1dhr (& mut self) -> Dacc1dhrW < '_ , Dhr12rdSpec > { Dacc1dhrW :: new (self , 0) }
#[doc = "Bits 16:27 - DAC channel2 12-bit right-aligned data"]
#[inline (always)] pub fn dacc2dhr (& mut self) -> Dacc2dhrW < '_ , Dhr12rdSpec > { Dacc2dhrW :: new (self , 16) } }
#[doc = "Dual DAC 12-bit right-aligned data holding register (DAC_DHR12RD), Bits 31:28 Reserved, Bits 15:12 Reserved\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr12rd::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr12rd::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dhr12rdSpec ; impl crate :: RegisterSpec for Dhr12rdSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dhr12rd::R`](R) reader structure"] impl crate :: Readable for Dhr12rdSpec { }
#[doc = "`write(|w| ..)` method takes [`dhr12rd::W`](W) writer structure"] impl crate :: Writable for Dhr12rdSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DHR12RD to value 0"] impl crate :: Resettable for Dhr12rdSpec { } }
#[doc = "DHR12LD (rw) register accessor: DUAL DAC 12-bit left aligned data holding register (DAC_DHR12LD), Bits 19:16 Reserved, Bits 3:0 Reserved\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr12ld::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr12ld::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dhr12ld`] module"]
#[doc (alias = "DHR12LD")] pub type Dhr12ld = crate :: Reg < dhr12ld :: Dhr12ldSpec > ;
#[doc = "DUAL DAC 12-bit left aligned data holding register (DAC_DHR12LD), Bits 19:16 Reserved, Bits 3:0 Reserved"] pub mod dhr12ld {
#[doc = "Register `DHR12LD` reader"] pub type R = crate :: R < Dhr12ldSpec > ;
#[doc = "Register `DHR12LD` writer"] pub type W = crate :: W < Dhr12ldSpec > ;
#[doc = "Field `DACC1DHR` reader - DAC channel1 12-bit left-aligned data"] pub type Dacc1dhrR = crate :: FieldReader < u16 > ;
#[doc = "Field `DACC1DHR` writer - DAC channel1 12-bit left-aligned data"] pub type Dacc1dhrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ;
#[doc = "Field `DACC2DHR` reader - DAC channel2 12-bit right-aligned data"] pub type Dacc2dhrR = crate :: FieldReader < u16 > ;
#[doc = "Field `DACC2DHR` writer - DAC channel2 12-bit right-aligned data"] pub type Dacc2dhrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 4:15 - DAC channel1 12-bit left-aligned data"]
#[inline (always)] pub fn dacc1dhr (& self) -> Dacc1dhrR { Dacc1dhrR :: new (((self . bits >> 4) & 0x0fff) as u16) }
#[doc = "Bits 20:31 - DAC channel2 12-bit right-aligned data"]
#[inline (always)] pub fn dacc2dhr (& self) -> Dacc2dhrR { Dacc2dhrR :: new (((self . bits >> 20) & 0x0fff) as u16) } } impl W {
#[doc = "Bits 4:15 - DAC channel1 12-bit left-aligned data"]
#[inline (always)] pub fn dacc1dhr (& mut self) -> Dacc1dhrW < '_ , Dhr12ldSpec > { Dacc1dhrW :: new (self , 4) }
#[doc = "Bits 20:31 - DAC channel2 12-bit right-aligned data"]
#[inline (always)] pub fn dacc2dhr (& mut self) -> Dacc2dhrW < '_ , Dhr12ldSpec > { Dacc2dhrW :: new (self , 20) } }
#[doc = "DUAL DAC 12-bit left aligned data holding register (DAC_DHR12LD), Bits 19:16 Reserved, Bits 3:0 Reserved\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr12ld::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr12ld::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dhr12ldSpec ; impl crate :: RegisterSpec for Dhr12ldSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dhr12ld::R`](R) reader structure"] impl crate :: Readable for Dhr12ldSpec { }
#[doc = "`write(|w| ..)` method takes [`dhr12ld::W`](W) writer structure"] impl crate :: Writable for Dhr12ldSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DHR12LD to value 0"] impl crate :: Resettable for Dhr12ldSpec { } }
#[doc = "DHR8RD (rw) register accessor: DUAL DAC 8-bit right aligned data holding register (DAC_DHR8RD), Bits 31:16 Reserved\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr8rd::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr8rd::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dhr8rd`] module"]
#[doc (alias = "DHR8RD")] pub type Dhr8rd = crate :: Reg < dhr8rd :: Dhr8rdSpec > ;
#[doc = "DUAL DAC 8-bit right aligned data holding register (DAC_DHR8RD), Bits 31:16 Reserved"] pub mod dhr8rd {
#[doc = "Register `DHR8RD` reader"] pub type R = crate :: R < Dhr8rdSpec > ;
#[doc = "Register `DHR8RD` writer"] pub type W = crate :: W < Dhr8rdSpec > ;
#[doc = "Field `DACC1DHR` reader - DAC channel1 8-bit right-aligned data"] pub type Dacc1dhrR = crate :: FieldReader ;
#[doc = "Field `DACC1DHR` writer - DAC channel1 8-bit right-aligned data"] pub type Dacc1dhrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ;
#[doc = "Field `DACC2DHR` reader - DAC channel2 8-bit right-aligned data"] pub type Dacc2dhrR = crate :: FieldReader ;
#[doc = "Field `DACC2DHR` writer - DAC channel2 8-bit right-aligned data"] pub type Dacc2dhrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - DAC channel1 8-bit right-aligned data"]
#[inline (always)] pub fn dacc1dhr (& self) -> Dacc1dhrR { Dacc1dhrR :: new ((self . bits & 0xff) as u8) }
#[doc = "Bits 8:15 - DAC channel2 8-bit right-aligned data"]
#[inline (always)] pub fn dacc2dhr (& self) -> Dacc2dhrR { Dacc2dhrR :: new (((self . bits >> 8) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - DAC channel1 8-bit right-aligned data"]
#[inline (always)] pub fn dacc1dhr (& mut self) -> Dacc1dhrW < '_ , Dhr8rdSpec > { Dacc1dhrW :: new (self , 0) }
#[doc = "Bits 8:15 - DAC channel2 8-bit right-aligned data"]
#[inline (always)] pub fn dacc2dhr (& mut self) -> Dacc2dhrW < '_ , Dhr8rdSpec > { Dacc2dhrW :: new (self , 8) } }
#[doc = "DUAL DAC 8-bit right aligned data holding register (DAC_DHR8RD), Bits 31:16 Reserved\n\nYou can [`read`](crate::Reg::read) this register and get [`dhr8rd::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dhr8rd::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dhr8rdSpec ; impl crate :: RegisterSpec for Dhr8rdSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dhr8rd::R`](R) reader structure"] impl crate :: Readable for Dhr8rdSpec { }
#[doc = "`write(|w| ..)` method takes [`dhr8rd::W`](W) writer structure"] impl crate :: Writable for Dhr8rdSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DHR8RD to value 0"] impl crate :: Resettable for Dhr8rdSpec { } }
#[doc = "DOR1 (r) register accessor: DAC channel1 data output register (DAC_DOR1)\n\nYou can [`read`](crate::Reg::read) this register and get [`dor1::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dor1`] module"]
#[doc (alias = "DOR1")] pub type Dor1 = crate :: Reg < dor1 :: Dor1Spec > ;
#[doc = "DAC channel1 data output register (DAC_DOR1)"] pub mod dor1 {
#[doc = "Register `DOR1` reader"] pub type R = crate :: R < Dor1Spec > ;
#[doc = "Field `DACC1DOR` reader - DAC channel1 data output"] pub type Dacc1dorR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:11 - DAC channel1 data output"]
#[inline (always)] pub fn dacc1dor (& self) -> Dacc1dorR { Dacc1dorR :: new ((self . bits & 0x0fff) as u16) } }
#[doc = "DAC channel1 data output register (DAC_DOR1)\n\nYou can [`read`](crate::Reg::read) this register and get [`dor1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dor1Spec ; impl crate :: RegisterSpec for Dor1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dor1::R`](R) reader structure"] impl crate :: Readable for Dor1Spec { }
#[doc = "`reset()` method sets DOR1 to value 0"] impl crate :: Resettable for Dor1Spec { } }
#[doc = "DOR2 (r) register accessor: DAC channel2 data output register (DAC_DOR2)\n\nYou can [`read`](crate::Reg::read) this register and get [`dor2::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dor2`] module"]
#[doc (alias = "DOR2")] pub type Dor2 = crate :: Reg < dor2 :: Dor2Spec > ;
#[doc = "DAC channel2 data output register (DAC_DOR2)"] pub mod dor2 {
#[doc = "Register `DOR2` reader"] pub type R = crate :: R < Dor2Spec > ;
#[doc = "Field `DACC2DOR` reader - DAC channel2 data output"] pub type Dacc2dorR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:11 - DAC channel2 data output"]
#[inline (always)] pub fn dacc2dor (& self) -> Dacc2dorR { Dacc2dorR :: new ((self . bits & 0x0fff) as u16) } }
#[doc = "DAC channel2 data output register (DAC_DOR2)\n\nYou can [`read`](crate::Reg::read) this register and get [`dor2::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dor2Spec ; impl crate :: RegisterSpec for Dor2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dor2::R`](R) reader structure"] impl crate :: Readable for Dor2Spec { }
#[doc = "`reset()` method sets DOR2 to value 0"] impl crate :: Resettable for Dor2Spec { } } }
#[doc = "Debug support"] pub type Dbg = crate :: Periph < dbg :: RegisterBlock , 0xe004_2000 > ; impl core :: fmt :: Debug for Dbg { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Dbg") . finish () } }
#[doc = "Debug support"] pub mod dbg {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { idcode : Idcode , cr : Cr , } impl RegisterBlock {
#[doc = "0x00 - DBGMCU_IDCODE"]
#[inline (always)] pub const fn idcode (& self) -> & Idcode { & self . idcode }
#[doc = "0x04 - DBGMCU_CR"]
#[inline (always)] pub const fn cr (& self) -> & Cr { & self . cr } }
#[doc = "IDCODE (r) register accessor: DBGMCU_IDCODE\n\nYou can [`read`](crate::Reg::read) this register and get [`idcode::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@idcode`] module"]
#[doc (alias = "IDCODE")] pub type Idcode = crate :: Reg < idcode :: IdcodeSpec > ;
#[doc = "DBGMCU_IDCODE"] pub mod idcode {
#[doc = "Register `IDCODE` reader"] pub type R = crate :: R < IdcodeSpec > ;
#[doc = "Field `DEV_ID` reader - DEV_ID"] pub type DevIdR = crate :: FieldReader < u16 > ;
#[doc = "Field `REV_ID` reader - REV_ID"] pub type RevIdR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:11 - DEV_ID"]
#[inline (always)] pub fn dev_id (& self) -> DevIdR { DevIdR :: new ((self . bits & 0x0fff) as u16) }
#[doc = "Bits 16:31 - REV_ID"]
#[inline (always)] pub fn rev_id (& self) -> RevIdR { RevIdR :: new (((self . bits >> 16) & 0xffff) as u16) } }
#[doc = "DBGMCU_IDCODE\n\nYou can [`read`](crate::Reg::read) this register and get [`idcode::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct IdcodeSpec ; impl crate :: RegisterSpec for IdcodeSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`idcode::R`](R) reader structure"] impl crate :: Readable for IdcodeSpec { }
#[doc = "`reset()` method sets IDCODE to value 0"] impl crate :: Resettable for IdcodeSpec { } }
#[doc = "CR (rw) register accessor: DBGMCU_CR\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr`] module"]
#[doc (alias = "CR")] pub type Cr = crate :: Reg < cr :: CrSpec > ;
#[doc = "DBGMCU_CR"] pub mod cr {
#[doc = "Register `CR` reader"] pub type R = crate :: R < CrSpec > ;
#[doc = "Register `CR` writer"] pub type W = crate :: W < CrSpec > ;
#[doc = "Field `DBG_SLEEP` reader - DBG_SLEEP"] pub type DbgSleepR = crate :: BitReader ;
#[doc = "Field `DBG_SLEEP` writer - DBG_SLEEP"] pub type DbgSleepW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_STOP` reader - DBG_STOP"] pub type DbgStopR = crate :: BitReader ;
#[doc = "Field `DBG_STOP` writer - DBG_STOP"] pub type DbgStopW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_STANDBY` reader - DBG_STANDBY"] pub type DbgStandbyR = crate :: BitReader ;
#[doc = "Field `DBG_STANDBY` writer - DBG_STANDBY"] pub type DbgStandbyW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TRACE_IOEN` reader - TRACE_IOEN"] pub type TraceIoenR = crate :: BitReader ;
#[doc = "Field `TRACE_IOEN` writer - TRACE_IOEN"] pub type TraceIoenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TRACE_MODE` reader - TRACE_MODE"] pub type TraceModeR = crate :: FieldReader ;
#[doc = "Field `TRACE_MODE` writer - TRACE_MODE"] pub type TraceModeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DBG_IWDG_STOP` reader - DBG_IWDG_STOP"] pub type DbgIwdgStopR = crate :: BitReader ;
#[doc = "Field `DBG_IWDG_STOP` writer - DBG_IWDG_STOP"] pub type DbgIwdgStopW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_WWDG_STOP` reader - DBG_WWDG_STOP"] pub type DbgWwdgStopR = crate :: BitReader ;
#[doc = "Field `DBG_WWDG_STOP` writer - DBG_WWDG_STOP"] pub type DbgWwdgStopW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_TIM1_STOP` reader - DBG_TIM1_STOP"] pub type DbgTim1StopR = crate :: BitReader ;
#[doc = "Field `DBG_TIM1_STOP` writer - DBG_TIM1_STOP"] pub type DbgTim1StopW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_TIM2_STOP` reader - DBG_TIM2_STOP"] pub type DbgTim2StopR = crate :: BitReader ;
#[doc = "Field `DBG_TIM2_STOP` writer - DBG_TIM2_STOP"] pub type DbgTim2StopW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_TIM3_STOP` reader - DBG_TIM3_STOP"] pub type DbgTim3StopR = crate :: BitReader ;
#[doc = "Field `DBG_TIM3_STOP` writer - DBG_TIM3_STOP"] pub type DbgTim3StopW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_TIM4_STOP` reader - DBG_TIM4_STOP"] pub type DbgTim4StopR = crate :: BitReader ;
#[doc = "Field `DBG_TIM4_STOP` writer - DBG_TIM4_STOP"] pub type DbgTim4StopW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_CAN1_STOP` reader - DBG_CAN1_STOP"] pub type DbgCan1StopR = crate :: BitReader ;
#[doc = "Field `DBG_CAN1_STOP` writer - DBG_CAN1_STOP"] pub type DbgCan1StopW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_I2C1_SMBUS_TIMEOUT` reader - DBG_I2C1_SMBUS_TIMEOUT"] pub type DbgI2c1SmbusTimeoutR = crate :: BitReader ;
#[doc = "Field `DBG_I2C1_SMBUS_TIMEOUT` writer - DBG_I2C1_SMBUS_TIMEOUT"] pub type DbgI2c1SmbusTimeoutW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_I2C2_SMBUS_TIMEOUT` reader - DBG_I2C2_SMBUS_TIMEOUT"] pub type DbgI2c2SmbusTimeoutR = crate :: BitReader ;
#[doc = "Field `DBG_I2C2_SMBUS_TIMEOUT` writer - DBG_I2C2_SMBUS_TIMEOUT"] pub type DbgI2c2SmbusTimeoutW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_TIM8_STOP` reader - DBG_TIM8_STOP"] pub type DbgTim8StopR = crate :: BitReader ;
#[doc = "Field `DBG_TIM8_STOP` writer - DBG_TIM8_STOP"] pub type DbgTim8StopW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_TIM5_STOP` reader - DBG_TIM5_STOP"] pub type DbgTim5StopR = crate :: BitReader ;
#[doc = "Field `DBG_TIM5_STOP` writer - DBG_TIM5_STOP"] pub type DbgTim5StopW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_TIM6_STOP` reader - DBG_TIM6_STOP"] pub type DbgTim6StopR = crate :: BitReader ;
#[doc = "Field `DBG_TIM6_STOP` writer - DBG_TIM6_STOP"] pub type DbgTim6StopW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_TIM7_STOP` reader - DBG_TIM7_STOP"] pub type DbgTim7StopR = crate :: BitReader ;
#[doc = "Field `DBG_TIM7_STOP` writer - DBG_TIM7_STOP"] pub type DbgTim7StopW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBG_CAN2_STOP` reader - DBG_CAN2_STOP"] pub type DbgCan2StopR = crate :: BitReader ;
#[doc = "Field `DBG_CAN2_STOP` writer - DBG_CAN2_STOP"] pub type DbgCan2StopW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - DBG_SLEEP"]
#[inline (always)] pub fn dbg_sleep (& self) -> DbgSleepR { DbgSleepR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - DBG_STOP"]
#[inline (always)] pub fn dbg_stop (& self) -> DbgStopR { DbgStopR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - DBG_STANDBY"]
#[inline (always)] pub fn dbg_standby (& self) -> DbgStandbyR { DbgStandbyR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 5 - TRACE_IOEN"]
#[inline (always)] pub fn trace_ioen (& self) -> TraceIoenR { TraceIoenR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bits 6:7 - TRACE_MODE"]
#[inline (always)] pub fn trace_mode (& self) -> TraceModeR { TraceModeR :: new (((self . bits >> 6) & 3) as u8) }
#[doc = "Bit 8 - DBG_IWDG_STOP"]
#[inline (always)] pub fn dbg_iwdg_stop (& self) -> DbgIwdgStopR { DbgIwdgStopR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - DBG_WWDG_STOP"]
#[inline (always)] pub fn dbg_wwdg_stop (& self) -> DbgWwdgStopR { DbgWwdgStopR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - DBG_TIM1_STOP"]
#[inline (always)] pub fn dbg_tim1_stop (& self) -> DbgTim1StopR { DbgTim1StopR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - DBG_TIM2_STOP"]
#[inline (always)] pub fn dbg_tim2_stop (& self) -> DbgTim2StopR { DbgTim2StopR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - DBG_TIM3_STOP"]
#[inline (always)] pub fn dbg_tim3_stop (& self) -> DbgTim3StopR { DbgTim3StopR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - DBG_TIM4_STOP"]
#[inline (always)] pub fn dbg_tim4_stop (& self) -> DbgTim4StopR { DbgTim4StopR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - DBG_CAN1_STOP"]
#[inline (always)] pub fn dbg_can1_stop (& self) -> DbgCan1StopR { DbgCan1StopR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - DBG_I2C1_SMBUS_TIMEOUT"]
#[inline (always)] pub fn dbg_i2c1_smbus_timeout (& self) -> DbgI2c1SmbusTimeoutR { DbgI2c1SmbusTimeoutR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - DBG_I2C2_SMBUS_TIMEOUT"]
#[inline (always)] pub fn dbg_i2c2_smbus_timeout (& self) -> DbgI2c2SmbusTimeoutR { DbgI2c2SmbusTimeoutR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - DBG_TIM8_STOP"]
#[inline (always)] pub fn dbg_tim8_stop (& self) -> DbgTim8StopR { DbgTim8StopR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - DBG_TIM5_STOP"]
#[inline (always)] pub fn dbg_tim5_stop (& self) -> DbgTim5StopR { DbgTim5StopR :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - DBG_TIM6_STOP"]
#[inline (always)] pub fn dbg_tim6_stop (& self) -> DbgTim6StopR { DbgTim6StopR :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - DBG_TIM7_STOP"]
#[inline (always)] pub fn dbg_tim7_stop (& self) -> DbgTim7StopR { DbgTim7StopR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - DBG_CAN2_STOP"]
#[inline (always)] pub fn dbg_can2_stop (& self) -> DbgCan2StopR { DbgCan2StopR :: new (((self . bits >> 21) & 1) != 0) } } impl W {
#[doc = "Bit 0 - DBG_SLEEP"]
#[inline (always)] pub fn dbg_sleep (& mut self) -> DbgSleepW < '_ , CrSpec > { DbgSleepW :: new (self , 0) }
#[doc = "Bit 1 - DBG_STOP"]
#[inline (always)] pub fn dbg_stop (& mut self) -> DbgStopW < '_ , CrSpec > { DbgStopW :: new (self , 1) }
#[doc = "Bit 2 - DBG_STANDBY"]
#[inline (always)] pub fn dbg_standby (& mut self) -> DbgStandbyW < '_ , CrSpec > { DbgStandbyW :: new (self , 2) }
#[doc = "Bit 5 - TRACE_IOEN"]
#[inline (always)] pub fn trace_ioen (& mut self) -> TraceIoenW < '_ , CrSpec > { TraceIoenW :: new (self , 5) }
#[doc = "Bits 6:7 - TRACE_MODE"]
#[inline (always)] pub fn trace_mode (& mut self) -> TraceModeW < '_ , CrSpec > { TraceModeW :: new (self , 6) }
#[doc = "Bit 8 - DBG_IWDG_STOP"]
#[inline (always)] pub fn dbg_iwdg_stop (& mut self) -> DbgIwdgStopW < '_ , CrSpec > { DbgIwdgStopW :: new (self , 8) }
#[doc = "Bit 9 - DBG_WWDG_STOP"]
#[inline (always)] pub fn dbg_wwdg_stop (& mut self) -> DbgWwdgStopW < '_ , CrSpec > { DbgWwdgStopW :: new (self , 9) }
#[doc = "Bit 10 - DBG_TIM1_STOP"]
#[inline (always)] pub fn dbg_tim1_stop (& mut self) -> DbgTim1StopW < '_ , CrSpec > { DbgTim1StopW :: new (self , 10) }
#[doc = "Bit 11 - DBG_TIM2_STOP"]
#[inline (always)] pub fn dbg_tim2_stop (& mut self) -> DbgTim2StopW < '_ , CrSpec > { DbgTim2StopW :: new (self , 11) }
#[doc = "Bit 12 - DBG_TIM3_STOP"]
#[inline (always)] pub fn dbg_tim3_stop (& mut self) -> DbgTim3StopW < '_ , CrSpec > { DbgTim3StopW :: new (self , 12) }
#[doc = "Bit 13 - DBG_TIM4_STOP"]
#[inline (always)] pub fn dbg_tim4_stop (& mut self) -> DbgTim4StopW < '_ , CrSpec > { DbgTim4StopW :: new (self , 13) }
#[doc = "Bit 14 - DBG_CAN1_STOP"]
#[inline (always)] pub fn dbg_can1_stop (& mut self) -> DbgCan1StopW < '_ , CrSpec > { DbgCan1StopW :: new (self , 14) }
#[doc = "Bit 15 - DBG_I2C1_SMBUS_TIMEOUT"]
#[inline (always)] pub fn dbg_i2c1_smbus_timeout (& mut self) -> DbgI2c1SmbusTimeoutW < '_ , CrSpec > { DbgI2c1SmbusTimeoutW :: new (self , 15) }
#[doc = "Bit 16 - DBG_I2C2_SMBUS_TIMEOUT"]
#[inline (always)] pub fn dbg_i2c2_smbus_timeout (& mut self) -> DbgI2c2SmbusTimeoutW < '_ , CrSpec > { DbgI2c2SmbusTimeoutW :: new (self , 16) }
#[doc = "Bit 17 - DBG_TIM8_STOP"]
#[inline (always)] pub fn dbg_tim8_stop (& mut self) -> DbgTim8StopW < '_ , CrSpec > { DbgTim8StopW :: new (self , 17) }
#[doc = "Bit 18 - DBG_TIM5_STOP"]
#[inline (always)] pub fn dbg_tim5_stop (& mut self) -> DbgTim5StopW < '_ , CrSpec > { DbgTim5StopW :: new (self , 18) }
#[doc = "Bit 19 - DBG_TIM6_STOP"]
#[inline (always)] pub fn dbg_tim6_stop (& mut self) -> DbgTim6StopW < '_ , CrSpec > { DbgTim6StopW :: new (self , 19) }
#[doc = "Bit 20 - DBG_TIM7_STOP"]
#[inline (always)] pub fn dbg_tim7_stop (& mut self) -> DbgTim7StopW < '_ , CrSpec > { DbgTim7StopW :: new (self , 20) }
#[doc = "Bit 21 - DBG_CAN2_STOP"]
#[inline (always)] pub fn dbg_can2_stop (& mut self) -> DbgCan2StopW < '_ , CrSpec > { DbgCan2StopW :: new (self , 21) } }
#[doc = "DBGMCU_CR\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CrSpec ; impl crate :: RegisterSpec for CrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr::R`](R) reader structure"] impl crate :: Readable for CrSpec { }
#[doc = "`write(|w| ..)` method takes [`cr::W`](W) writer structure"] impl crate :: Writable for CrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR to value 0"] impl crate :: Resettable for CrSpec { } } }
#[doc = "Universal asynchronous receiver transmitter"] pub type Uart4 = crate :: Periph < uart4 :: RegisterBlock , 0x4000_4c00 > ; impl core :: fmt :: Debug for Uart4 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Uart4") . finish () } }
#[doc = "Universal asynchronous receiver transmitter"] pub mod uart4 {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { sr : Sr , dr : Dr , brr : Brr , cr1 : Cr1 , cr2 : Cr2 , cr3 : Cr3 , } impl RegisterBlock {
#[doc = "0x00 - UART4_SR"]
#[inline (always)] pub const fn sr (& self) -> & Sr { & self . sr }
#[doc = "0x04 - UART4_DR"]
#[inline (always)] pub const fn dr (& self) -> & Dr { & self . dr }
#[doc = "0x08 - UART4_BRR"]
#[inline (always)] pub const fn brr (& self) -> & Brr { & self . brr }
#[doc = "0x0c - UART4_CR1"]
#[inline (always)] pub const fn cr1 (& self) -> & Cr1 { & self . cr1 }
#[doc = "0x10 - UART4_CR2"]
#[inline (always)] pub const fn cr2 (& self) -> & Cr2 { & self . cr2 }
#[doc = "0x14 - UART4_CR3"]
#[inline (always)] pub const fn cr3 (& self) -> & Cr3 { & self . cr3 } }
#[doc = "SR (rw) register accessor: UART4_SR\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`] module"]
#[doc (alias = "SR")] pub type Sr = crate :: Reg < sr :: SrSpec > ;
#[doc = "UART4_SR"] pub mod sr {
#[doc = "Register `SR` reader"] pub type R = crate :: R < SrSpec > ;
#[doc = "Register `SR` writer"] pub type W = crate :: W < SrSpec > ;
#[doc = "Field `PE` reader - Parity error"] pub type PeR = crate :: BitReader ;
#[doc = "Field `FE` reader - Framing error"] pub type FeR = crate :: BitReader ;
#[doc = "Field `NE` reader - Noise error flag"] pub type NeR = crate :: BitReader ;
#[doc = "Field `ORE` reader - Overrun error"] pub type OreR = crate :: BitReader ;
#[doc = "Field `IDLE` reader - IDLE line detected"] pub type IdleR = crate :: BitReader ;
#[doc = "Field `RXNE` reader - Read data register not empty"] pub type RxneR = crate :: BitReader ;
#[doc = "Field `RXNE` writer - Read data register not empty"] pub type RxneW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TC` reader - Transmission complete"] pub type TcR = crate :: BitReader ;
#[doc = "Field `TC` writer - Transmission complete"] pub type TcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXE` reader - Transmit data register empty"] pub type TxeR = crate :: BitReader ;
#[doc = "Field `LBD` reader - LIN break detection flag"] pub type LbdR = crate :: BitReader ;
#[doc = "Field `LBD` writer - LIN break detection flag"] pub type LbdW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Parity error"]
#[inline (always)] pub fn pe (& self) -> PeR { PeR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Framing error"]
#[inline (always)] pub fn fe (& self) -> FeR { FeR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Noise error flag"]
#[inline (always)] pub fn ne (& self) -> NeR { NeR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Overrun error"]
#[inline (always)] pub fn ore (& self) -> OreR { OreR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - IDLE line detected"]
#[inline (always)] pub fn idle (& self) -> IdleR { IdleR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Read data register not empty"]
#[inline (always)] pub fn rxne (& self) -> RxneR { RxneR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Transmission complete"]
#[inline (always)] pub fn tc (& self) -> TcR { TcR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Transmit data register empty"]
#[inline (always)] pub fn txe (& self) -> TxeR { TxeR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - LIN break detection flag"]
#[inline (always)] pub fn lbd (& self) -> LbdR { LbdR :: new (((self . bits >> 8) & 1) != 0) } } impl W {
#[doc = "Bit 5 - Read data register not empty"]
#[inline (always)] pub fn rxne (& mut self) -> RxneW < '_ , SrSpec > { RxneW :: new (self , 5) }
#[doc = "Bit 6 - Transmission complete"]
#[inline (always)] pub fn tc (& mut self) -> TcW < '_ , SrSpec > { TcW :: new (self , 6) }
#[doc = "Bit 8 - LIN break detection flag"]
#[inline (always)] pub fn lbd (& mut self) -> LbdW < '_ , SrSpec > { LbdW :: new (self , 8) } }
#[doc = "UART4_SR\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec ; impl crate :: RegisterSpec for SrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate :: Readable for SrSpec { }
#[doc = "`write(|w| ..)` method takes [`sr::W`](W) writer structure"] impl crate :: Writable for SrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR to value 0"] impl crate :: Resettable for SrSpec { } }
#[doc = "DR (rw) register accessor: UART4_DR\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr`] module"]
#[doc (alias = "DR")] pub type Dr = crate :: Reg < dr :: DrSpec > ;
#[doc = "UART4_DR"] pub mod dr {
#[doc = "Register `DR` reader"] pub type R = crate :: R < DrSpec > ;
#[doc = "Register `DR` writer"] pub type W = crate :: W < DrSpec > ;
#[doc = "Field `DR` reader - DR"] pub type DrR = crate :: FieldReader < u16 > ;
#[doc = "Field `DR` writer - DR"] pub type DrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 9 , u16 > ; impl R {
#[doc = "Bits 0:8 - DR"]
#[inline (always)] pub fn dr (& self) -> DrR { DrR :: new ((self . bits & 0x01ff) as u16) } } impl W {
#[doc = "Bits 0:8 - DR"]
#[inline (always)] pub fn dr (& mut self) -> DrW < '_ , DrSpec > { DrW :: new (self , 0) } }
#[doc = "UART4_DR\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DrSpec ; impl crate :: RegisterSpec for DrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr::R`](R) reader structure"] impl crate :: Readable for DrSpec { }
#[doc = "`write(|w| ..)` method takes [`dr::W`](W) writer structure"] impl crate :: Writable for DrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR to value 0"] impl crate :: Resettable for DrSpec { } }
#[doc = "BRR (rw) register accessor: UART4_BRR\n\nYou can [`read`](crate::Reg::read) this register and get [`brr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`brr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@brr`] module"]
#[doc (alias = "BRR")] pub type Brr = crate :: Reg < brr :: BrrSpec > ;
#[doc = "UART4_BRR"] pub mod brr {
#[doc = "Register `BRR` reader"] pub type R = crate :: R < BrrSpec > ;
#[doc = "Register `BRR` writer"] pub type W = crate :: W < BrrSpec > ;
#[doc = "Field `DIV_Fraction` reader - DIV_Fraction"] pub type DivFractionR = crate :: FieldReader ;
#[doc = "Field `DIV_Fraction` writer - DIV_Fraction"] pub type DivFractionW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DIV_Mantissa` reader - DIV_Mantissa"] pub type DivMantissaR = crate :: FieldReader < u16 > ;
#[doc = "Field `DIV_Mantissa` writer - DIV_Mantissa"] pub type DivMantissaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:3 - DIV_Fraction"]
#[inline (always)] pub fn div_fraction (& self) -> DivFractionR { DivFractionR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:15 - DIV_Mantissa"]
#[inline (always)] pub fn div_mantissa (& self) -> DivMantissaR { DivMantissaR :: new (((self . bits >> 4) & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:3 - DIV_Fraction"]
#[inline (always)] pub fn div_fraction (& mut self) -> DivFractionW < '_ , BrrSpec > { DivFractionW :: new (self , 0) }
#[doc = "Bits 4:15 - DIV_Mantissa"]
#[inline (always)] pub fn div_mantissa (& mut self) -> DivMantissaW < '_ , BrrSpec > { DivMantissaW :: new (self , 4) } }
#[doc = "UART4_BRR\n\nYou can [`read`](crate::Reg::read) this register and get [`brr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`brr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct BrrSpec ; impl crate :: RegisterSpec for BrrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`brr::R`](R) reader structure"] impl crate :: Readable for BrrSpec { }
#[doc = "`write(|w| ..)` method takes [`brr::W`](W) writer structure"] impl crate :: Writable for BrrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BRR to value 0"] impl crate :: Resettable for BrrSpec { } }
#[doc = "CR1 (rw) register accessor: UART4_CR1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr1`] module"]
#[doc (alias = "CR1")] pub type Cr1 = crate :: Reg < cr1 :: Cr1Spec > ;
#[doc = "UART4_CR1"] pub mod cr1 {
#[doc = "Register `CR1` reader"] pub type R = crate :: R < Cr1Spec > ;
#[doc = "Register `CR1` writer"] pub type W = crate :: W < Cr1Spec > ;
#[doc = "Field `SBK` reader - Send break"] pub type SbkR = crate :: BitReader ;
#[doc = "Field `SBK` writer - Send break"] pub type SbkW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RWU` reader - Receiver wakeup"] pub type RwuR = crate :: BitReader ;
#[doc = "Field `RWU` writer - Receiver wakeup"] pub type RwuW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RE` reader - Receiver enable"] pub type ReR = crate :: BitReader ;
#[doc = "Field `RE` writer - Receiver enable"] pub type ReW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TE` reader - Transmitter enable"] pub type TeR = crate :: BitReader ;
#[doc = "Field `TE` writer - Transmitter enable"] pub type TeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IDLEIE` reader - IDLE interrupt enable"] pub type IdleieR = crate :: BitReader ;
#[doc = "Field `IDLEIE` writer - IDLE interrupt enable"] pub type IdleieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXNEIE` reader - RXNE interrupt enable"] pub type RxneieR = crate :: BitReader ;
#[doc = "Field `RXNEIE` writer - RXNE interrupt enable"] pub type RxneieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TCIE` reader - Transmission complete interrupt enable"] pub type TcieR = crate :: BitReader ;
#[doc = "Field `TCIE` writer - Transmission complete interrupt enable"] pub type TcieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXEIE` reader - TXE interrupt enable"] pub type TxeieR = crate :: BitReader ;
#[doc = "Field `TXEIE` writer - TXE interrupt enable"] pub type TxeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PEIE` reader - PE interrupt enable"] pub type PeieR = crate :: BitReader ;
#[doc = "Field `PEIE` writer - PE interrupt enable"] pub type PeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PS` reader - Parity selection"] pub type PsR = crate :: BitReader ;
#[doc = "Field `PS` writer - Parity selection"] pub type PsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PCE` reader - Parity control enable"] pub type PceR = crate :: BitReader ;
#[doc = "Field `PCE` writer - Parity control enable"] pub type PceW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAKE` reader - Wakeup method"] pub type WakeR = crate :: BitReader ;
#[doc = "Field `WAKE` writer - Wakeup method"] pub type WakeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `M` reader - Word length"] pub type MR = crate :: BitReader ;
#[doc = "Field `M` writer - Word length"] pub type MW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UE` reader - USART enable"] pub type UeR = crate :: BitReader ;
#[doc = "Field `UE` writer - USART enable"] pub type UeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Send break"]
#[inline (always)] pub fn sbk (& self) -> SbkR { SbkR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Receiver wakeup"]
#[inline (always)] pub fn rwu (& self) -> RwuR { RwuR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Receiver enable"]
#[inline (always)] pub fn re (& self) -> ReR { ReR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Transmitter enable"]
#[inline (always)] pub fn te (& self) -> TeR { TeR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - IDLE interrupt enable"]
#[inline (always)] pub fn idleie (& self) -> IdleieR { IdleieR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - RXNE interrupt enable"]
#[inline (always)] pub fn rxneie (& self) -> RxneieR { RxneieR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Transmission complete interrupt enable"]
#[inline (always)] pub fn tcie (& self) -> TcieR { TcieR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - TXE interrupt enable"]
#[inline (always)] pub fn txeie (& self) -> TxeieR { TxeieR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - PE interrupt enable"]
#[inline (always)] pub fn peie (& self) -> PeieR { PeieR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Parity selection"]
#[inline (always)] pub fn ps (& self) -> PsR { PsR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Parity control enable"]
#[inline (always)] pub fn pce (& self) -> PceR { PceR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Wakeup method"]
#[inline (always)] pub fn wake (& self) -> WakeR { WakeR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Word length"]
#[inline (always)] pub fn m (& self) -> MR { MR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - USART enable"]
#[inline (always)] pub fn ue (& self) -> UeR { UeR :: new (((self . bits >> 13) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Send break"]
#[inline (always)] pub fn sbk (& mut self) -> SbkW < '_ , Cr1Spec > { SbkW :: new (self , 0) }
#[doc = "Bit 1 - Receiver wakeup"]
#[inline (always)] pub fn rwu (& mut self) -> RwuW < '_ , Cr1Spec > { RwuW :: new (self , 1) }
#[doc = "Bit 2 - Receiver enable"]
#[inline (always)] pub fn re (& mut self) -> ReW < '_ , Cr1Spec > { ReW :: new (self , 2) }
#[doc = "Bit 3 - Transmitter enable"]
#[inline (always)] pub fn te (& mut self) -> TeW < '_ , Cr1Spec > { TeW :: new (self , 3) }
#[doc = "Bit 4 - IDLE interrupt enable"]
#[inline (always)] pub fn idleie (& mut self) -> IdleieW < '_ , Cr1Spec > { IdleieW :: new (self , 4) }
#[doc = "Bit 5 - RXNE interrupt enable"]
#[inline (always)] pub fn rxneie (& mut self) -> RxneieW < '_ , Cr1Spec > { RxneieW :: new (self , 5) }
#[doc = "Bit 6 - Transmission complete interrupt enable"]
#[inline (always)] pub fn tcie (& mut self) -> TcieW < '_ , Cr1Spec > { TcieW :: new (self , 6) }
#[doc = "Bit 7 - TXE interrupt enable"]
#[inline (always)] pub fn txeie (& mut self) -> TxeieW < '_ , Cr1Spec > { TxeieW :: new (self , 7) }
#[doc = "Bit 8 - PE interrupt enable"]
#[inline (always)] pub fn peie (& mut self) -> PeieW < '_ , Cr1Spec > { PeieW :: new (self , 8) }
#[doc = "Bit 9 - Parity selection"]
#[inline (always)] pub fn ps (& mut self) -> PsW < '_ , Cr1Spec > { PsW :: new (self , 9) }
#[doc = "Bit 10 - Parity control enable"]
#[inline (always)] pub fn pce (& mut self) -> PceW < '_ , Cr1Spec > { PceW :: new (self , 10) }
#[doc = "Bit 11 - Wakeup method"]
#[inline (always)] pub fn wake (& mut self) -> WakeW < '_ , Cr1Spec > { WakeW :: new (self , 11) }
#[doc = "Bit 12 - Word length"]
#[inline (always)] pub fn m (& mut self) -> MW < '_ , Cr1Spec > { MW :: new (self , 12) }
#[doc = "Bit 13 - USART enable"]
#[inline (always)] pub fn ue (& mut self) -> UeW < '_ , Cr1Spec > { UeW :: new (self , 13) } }
#[doc = "UART4_CR1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr1Spec ; impl crate :: RegisterSpec for Cr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr1::R`](R) reader structure"] impl crate :: Readable for Cr1Spec { }
#[doc = "`write(|w| ..)` method takes [`cr1::W`](W) writer structure"] impl crate :: Writable for Cr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR1 to value 0"] impl crate :: Resettable for Cr1Spec { } }
#[doc = "CR2 (rw) register accessor: UART4_CR2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr2`] module"]
#[doc (alias = "CR2")] pub type Cr2 = crate :: Reg < cr2 :: Cr2Spec > ;
#[doc = "UART4_CR2"] pub mod cr2 {
#[doc = "Register `CR2` reader"] pub type R = crate :: R < Cr2Spec > ;
#[doc = "Register `CR2` writer"] pub type W = crate :: W < Cr2Spec > ;
#[doc = "Field `ADD` reader - Address of the USART node"] pub type AddR = crate :: FieldReader ;
#[doc = "Field `ADD` writer - Address of the USART node"] pub type AddW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `LBDL` reader - lin break detection length"] pub type LbdlR = crate :: BitReader ;
#[doc = "Field `LBDL` writer - lin break detection length"] pub type LbdlW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LBDIE` reader - LIN break detection interrupt enable"] pub type LbdieR = crate :: BitReader ;
#[doc = "Field `LBDIE` writer - LIN break detection interrupt enable"] pub type LbdieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STOP` reader - STOP bits"] pub type StopR = crate :: FieldReader ;
#[doc = "Field `STOP` writer - STOP bits"] pub type StopW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `LINEN` reader - LIN mode enable"] pub type LinenR = crate :: BitReader ;
#[doc = "Field `LINEN` writer - LIN mode enable"] pub type LinenW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:3 - Address of the USART node"]
#[inline (always)] pub fn add (& self) -> AddR { AddR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bit 5 - lin break detection length"]
#[inline (always)] pub fn lbdl (& self) -> LbdlR { LbdlR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - LIN break detection interrupt enable"]
#[inline (always)] pub fn lbdie (& self) -> LbdieR { LbdieR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bits 12:13 - STOP bits"]
#[inline (always)] pub fn stop (& self) -> StopR { StopR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - LIN mode enable"]
#[inline (always)] pub fn linen (& self) -> LinenR { LinenR :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bits 0:3 - Address of the USART node"]
#[inline (always)] pub fn add (& mut self) -> AddW < '_ , Cr2Spec > { AddW :: new (self , 0) }
#[doc = "Bit 5 - lin break detection length"]
#[inline (always)] pub fn lbdl (& mut self) -> LbdlW < '_ , Cr2Spec > { LbdlW :: new (self , 5) }
#[doc = "Bit 6 - LIN break detection interrupt enable"]
#[inline (always)] pub fn lbdie (& mut self) -> LbdieW < '_ , Cr2Spec > { LbdieW :: new (self , 6) }
#[doc = "Bits 12:13 - STOP bits"]
#[inline (always)] pub fn stop (& mut self) -> StopW < '_ , Cr2Spec > { StopW :: new (self , 12) }
#[doc = "Bit 14 - LIN mode enable"]
#[inline (always)] pub fn linen (& mut self) -> LinenW < '_ , Cr2Spec > { LinenW :: new (self , 14) } }
#[doc = "UART4_CR2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr2Spec ; impl crate :: RegisterSpec for Cr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr2::R`](R) reader structure"] impl crate :: Readable for Cr2Spec { }
#[doc = "`write(|w| ..)` method takes [`cr2::W`](W) writer structure"] impl crate :: Writable for Cr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR2 to value 0"] impl crate :: Resettable for Cr2Spec { } }
#[doc = "CR3 (rw) register accessor: UART4_CR3\n\nYou can [`read`](crate::Reg::read) this register and get [`cr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr3`] module"]
#[doc (alias = "CR3")] pub type Cr3 = crate :: Reg < cr3 :: Cr3Spec > ;
#[doc = "UART4_CR3"] pub mod cr3 {
#[doc = "Register `CR3` reader"] pub type R = crate :: R < Cr3Spec > ;
#[doc = "Register `CR3` writer"] pub type W = crate :: W < Cr3Spec > ;
#[doc = "Field `EIE` reader - Error interrupt enable"] pub type EieR = crate :: BitReader ;
#[doc = "Field `EIE` writer - Error interrupt enable"] pub type EieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IREN` reader - IrDA mode enable"] pub type IrenR = crate :: BitReader ;
#[doc = "Field `IREN` writer - IrDA mode enable"] pub type IrenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IRLP` reader - IrDA low-power"] pub type IrlpR = crate :: BitReader ;
#[doc = "Field `IRLP` writer - IrDA low-power"] pub type IrlpW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HDSEL` reader - Half-duplex selection"] pub type HdselR = crate :: BitReader ;
#[doc = "Field `HDSEL` writer - Half-duplex selection"] pub type HdselW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DMAR` reader - DMA enable receiver"] pub type DmarR = crate :: BitReader ;
#[doc = "Field `DMAR` writer - DMA enable receiver"] pub type DmarW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DMAT` reader - DMA enable transmitter"] pub type DmatR = crate :: BitReader ;
#[doc = "Field `DMAT` writer - DMA enable transmitter"] pub type DmatW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Error interrupt enable"]
#[inline (always)] pub fn eie (& self) -> EieR { EieR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - IrDA mode enable"]
#[inline (always)] pub fn iren (& self) -> IrenR { IrenR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - IrDA low-power"]
#[inline (always)] pub fn irlp (& self) -> IrlpR { IrlpR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Half-duplex selection"]
#[inline (always)] pub fn hdsel (& self) -> HdselR { HdselR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 6 - DMA enable receiver"]
#[inline (always)] pub fn dmar (& self) -> DmarR { DmarR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - DMA enable transmitter"]
#[inline (always)] pub fn dmat (& self) -> DmatR { DmatR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Error interrupt enable"]
#[inline (always)] pub fn eie (& mut self) -> EieW < '_ , Cr3Spec > { EieW :: new (self , 0) }
#[doc = "Bit 1 - IrDA mode enable"]
#[inline (always)] pub fn iren (& mut self) -> IrenW < '_ , Cr3Spec > { IrenW :: new (self , 1) }
#[doc = "Bit 2 - IrDA low-power"]
#[inline (always)] pub fn irlp (& mut self) -> IrlpW < '_ , Cr3Spec > { IrlpW :: new (self , 2) }
#[doc = "Bit 3 - Half-duplex selection"]
#[inline (always)] pub fn hdsel (& mut self) -> HdselW < '_ , Cr3Spec > { HdselW :: new (self , 3) }
#[doc = "Bit 6 - DMA enable receiver"]
#[inline (always)] pub fn dmar (& mut self) -> DmarW < '_ , Cr3Spec > { DmarW :: new (self , 6) }
#[doc = "Bit 7 - DMA enable transmitter"]
#[inline (always)] pub fn dmat (& mut self) -> DmatW < '_ , Cr3Spec > { DmatW :: new (self , 7) } }
#[doc = "UART4_CR3\n\nYou can [`read`](crate::Reg::read) this register and get [`cr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr3Spec ; impl crate :: RegisterSpec for Cr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr3::R`](R) reader structure"] impl crate :: Readable for Cr3Spec { }
#[doc = "`write(|w| ..)` method takes [`cr3::W`](W) writer structure"] impl crate :: Writable for Cr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR3 to value 0"] impl crate :: Resettable for Cr3Spec { } } }
#[doc = "Universal asynchronous receiver transmitter"] pub type Uart5 = crate :: Periph < uart5 :: RegisterBlock , 0x4000_5000 > ; impl core :: fmt :: Debug for Uart5 { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Uart5") . finish () } }
#[doc = "Universal asynchronous receiver transmitter"] pub mod uart5 {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { sr : Sr , dr : Dr , brr : Brr , cr1 : Cr1 , cr2 : Cr2 , cr3 : Cr3 , } impl RegisterBlock {
#[doc = "0x00 - UART4_SR"]
#[inline (always)] pub const fn sr (& self) -> & Sr { & self . sr }
#[doc = "0x04 - UART4_DR"]
#[inline (always)] pub const fn dr (& self) -> & Dr { & self . dr }
#[doc = "0x08 - UART4_BRR"]
#[inline (always)] pub const fn brr (& self) -> & Brr { & self . brr }
#[doc = "0x0c - UART4_CR1"]
#[inline (always)] pub const fn cr1 (& self) -> & Cr1 { & self . cr1 }
#[doc = "0x10 - UART4_CR2"]
#[inline (always)] pub const fn cr2 (& self) -> & Cr2 { & self . cr2 }
#[doc = "0x14 - UART4_CR3"]
#[inline (always)] pub const fn cr3 (& self) -> & Cr3 { & self . cr3 } }
#[doc = "SR (rw) register accessor: UART4_SR\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`] module"]
#[doc (alias = "SR")] pub type Sr = crate :: Reg < sr :: SrSpec > ;
#[doc = "UART4_SR"] pub mod sr {
#[doc = "Register `SR` reader"] pub type R = crate :: R < SrSpec > ;
#[doc = "Register `SR` writer"] pub type W = crate :: W < SrSpec > ;
#[doc = "Field `PE` reader - PE"] pub type PeR = crate :: BitReader ;
#[doc = "Field `FE` reader - FE"] pub type FeR = crate :: BitReader ;
#[doc = "Field `NE` reader - NE"] pub type NeR = crate :: BitReader ;
#[doc = "Field `ORE` reader - ORE"] pub type OreR = crate :: BitReader ;
#[doc = "Field `IDLE` reader - IDLE"] pub type IdleR = crate :: BitReader ;
#[doc = "Field `RXNE` reader - RXNE"] pub type RxneR = crate :: BitReader ;
#[doc = "Field `RXNE` writer - RXNE"] pub type RxneW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TC` reader - TC"] pub type TcR = crate :: BitReader ;
#[doc = "Field `TC` writer - TC"] pub type TcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXE` reader - TXE"] pub type TxeR = crate :: BitReader ;
#[doc = "Field `LBD` reader - LBD"] pub type LbdR = crate :: BitReader ;
#[doc = "Field `LBD` writer - LBD"] pub type LbdW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - PE"]
#[inline (always)] pub fn pe (& self) -> PeR { PeR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - FE"]
#[inline (always)] pub fn fe (& self) -> FeR { FeR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - NE"]
#[inline (always)] pub fn ne (& self) -> NeR { NeR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - ORE"]
#[inline (always)] pub fn ore (& self) -> OreR { OreR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - IDLE"]
#[inline (always)] pub fn idle (& self) -> IdleR { IdleR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - RXNE"]
#[inline (always)] pub fn rxne (& self) -> RxneR { RxneR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - TC"]
#[inline (always)] pub fn tc (& self) -> TcR { TcR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - TXE"]
#[inline (always)] pub fn txe (& self) -> TxeR { TxeR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - LBD"]
#[inline (always)] pub fn lbd (& self) -> LbdR { LbdR :: new (((self . bits >> 8) & 1) != 0) } } impl W {
#[doc = "Bit 5 - RXNE"]
#[inline (always)] pub fn rxne (& mut self) -> RxneW < '_ , SrSpec > { RxneW :: new (self , 5) }
#[doc = "Bit 6 - TC"]
#[inline (always)] pub fn tc (& mut self) -> TcW < '_ , SrSpec > { TcW :: new (self , 6) }
#[doc = "Bit 8 - LBD"]
#[inline (always)] pub fn lbd (& mut self) -> LbdW < '_ , SrSpec > { LbdW :: new (self , 8) } }
#[doc = "UART4_SR\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec ; impl crate :: RegisterSpec for SrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate :: Readable for SrSpec { }
#[doc = "`write(|w| ..)` method takes [`sr::W`](W) writer structure"] impl crate :: Writable for SrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR to value 0"] impl crate :: Resettable for SrSpec { } }
#[doc = "DR (rw) register accessor: UART4_DR\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr`] module"]
#[doc (alias = "DR")] pub type Dr = crate :: Reg < dr :: DrSpec > ;
#[doc = "UART4_DR"] pub mod dr {
#[doc = "Register `DR` reader"] pub type R = crate :: R < DrSpec > ;
#[doc = "Register `DR` writer"] pub type W = crate :: W < DrSpec > ;
#[doc = "Field `DR` reader - DR"] pub type DrR = crate :: FieldReader < u16 > ;
#[doc = "Field `DR` writer - DR"] pub type DrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 9 , u16 > ; impl R {
#[doc = "Bits 0:8 - DR"]
#[inline (always)] pub fn dr (& self) -> DrR { DrR :: new ((self . bits & 0x01ff) as u16) } } impl W {
#[doc = "Bits 0:8 - DR"]
#[inline (always)] pub fn dr (& mut self) -> DrW < '_ , DrSpec > { DrW :: new (self , 0) } }
#[doc = "UART4_DR\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DrSpec ; impl crate :: RegisterSpec for DrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr::R`](R) reader structure"] impl crate :: Readable for DrSpec { }
#[doc = "`write(|w| ..)` method takes [`dr::W`](W) writer structure"] impl crate :: Writable for DrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR to value 0"] impl crate :: Resettable for DrSpec { } }
#[doc = "BRR (rw) register accessor: UART4_BRR\n\nYou can [`read`](crate::Reg::read) this register and get [`brr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`brr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@brr`] module"]
#[doc (alias = "BRR")] pub type Brr = crate :: Reg < brr :: BrrSpec > ;
#[doc = "UART4_BRR"] pub mod brr {
#[doc = "Register `BRR` reader"] pub type R = crate :: R < BrrSpec > ;
#[doc = "Register `BRR` writer"] pub type W = crate :: W < BrrSpec > ;
#[doc = "Field `DIV_Fraction` reader - DIV_Fraction"] pub type DivFractionR = crate :: FieldReader ;
#[doc = "Field `DIV_Fraction` writer - DIV_Fraction"] pub type DivFractionW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DIV_Mantissa` reader - DIV_Mantissa"] pub type DivMantissaR = crate :: FieldReader < u16 > ;
#[doc = "Field `DIV_Mantissa` writer - DIV_Mantissa"] pub type DivMantissaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:3 - DIV_Fraction"]
#[inline (always)] pub fn div_fraction (& self) -> DivFractionR { DivFractionR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:15 - DIV_Mantissa"]
#[inline (always)] pub fn div_mantissa (& self) -> DivMantissaR { DivMantissaR :: new (((self . bits >> 4) & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:3 - DIV_Fraction"]
#[inline (always)] pub fn div_fraction (& mut self) -> DivFractionW < '_ , BrrSpec > { DivFractionW :: new (self , 0) }
#[doc = "Bits 4:15 - DIV_Mantissa"]
#[inline (always)] pub fn div_mantissa (& mut self) -> DivMantissaW < '_ , BrrSpec > { DivMantissaW :: new (self , 4) } }
#[doc = "UART4_BRR\n\nYou can [`read`](crate::Reg::read) this register and get [`brr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`brr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct BrrSpec ; impl crate :: RegisterSpec for BrrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`brr::R`](R) reader structure"] impl crate :: Readable for BrrSpec { }
#[doc = "`write(|w| ..)` method takes [`brr::W`](W) writer structure"] impl crate :: Writable for BrrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BRR to value 0"] impl crate :: Resettable for BrrSpec { } }
#[doc = "CR1 (rw) register accessor: UART4_CR1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr1`] module"]
#[doc (alias = "CR1")] pub type Cr1 = crate :: Reg < cr1 :: Cr1Spec > ;
#[doc = "UART4_CR1"] pub mod cr1 {
#[doc = "Register `CR1` reader"] pub type R = crate :: R < Cr1Spec > ;
#[doc = "Register `CR1` writer"] pub type W = crate :: W < Cr1Spec > ;
#[doc = "Field `SBK` reader - SBK"] pub type SbkR = crate :: BitReader ;
#[doc = "Field `SBK` writer - SBK"] pub type SbkW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RWU` reader - RWU"] pub type RwuR = crate :: BitReader ;
#[doc = "Field `RWU` writer - RWU"] pub type RwuW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RE` reader - RE"] pub type ReR = crate :: BitReader ;
#[doc = "Field `RE` writer - RE"] pub type ReW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TE` reader - TE"] pub type TeR = crate :: BitReader ;
#[doc = "Field `TE` writer - TE"] pub type TeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IDLEIE` reader - IDLEIE"] pub type IdleieR = crate :: BitReader ;
#[doc = "Field `IDLEIE` writer - IDLEIE"] pub type IdleieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXNEIE` reader - RXNEIE"] pub type RxneieR = crate :: BitReader ;
#[doc = "Field `RXNEIE` writer - RXNEIE"] pub type RxneieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TCIE` reader - TCIE"] pub type TcieR = crate :: BitReader ;
#[doc = "Field `TCIE` writer - TCIE"] pub type TcieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXEIE` reader - TXEIE"] pub type TxeieR = crate :: BitReader ;
#[doc = "Field `TXEIE` writer - TXEIE"] pub type TxeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PEIE` reader - PEIE"] pub type PeieR = crate :: BitReader ;
#[doc = "Field `PEIE` writer - PEIE"] pub type PeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PS` reader - PS"] pub type PsR = crate :: BitReader ;
#[doc = "Field `PS` writer - PS"] pub type PsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PCE` reader - PCE"] pub type PceR = crate :: BitReader ;
#[doc = "Field `PCE` writer - PCE"] pub type PceW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WAKE` reader - WAKE"] pub type WakeR = crate :: BitReader ;
#[doc = "Field `WAKE` writer - WAKE"] pub type WakeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `M` reader - M"] pub type MR = crate :: BitReader ;
#[doc = "Field `M` writer - M"] pub type MW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UE` reader - UE"] pub type UeR = crate :: BitReader ;
#[doc = "Field `UE` writer - UE"] pub type UeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - SBK"]
#[inline (always)] pub fn sbk (& self) -> SbkR { SbkR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - RWU"]
#[inline (always)] pub fn rwu (& self) -> RwuR { RwuR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - RE"]
#[inline (always)] pub fn re (& self) -> ReR { ReR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - TE"]
#[inline (always)] pub fn te (& self) -> TeR { TeR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - IDLEIE"]
#[inline (always)] pub fn idleie (& self) -> IdleieR { IdleieR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - RXNEIE"]
#[inline (always)] pub fn rxneie (& self) -> RxneieR { RxneieR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - TCIE"]
#[inline (always)] pub fn tcie (& self) -> TcieR { TcieR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - TXEIE"]
#[inline (always)] pub fn txeie (& self) -> TxeieR { TxeieR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - PEIE"]
#[inline (always)] pub fn peie (& self) -> PeieR { PeieR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - PS"]
#[inline (always)] pub fn ps (& self) -> PsR { PsR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - PCE"]
#[inline (always)] pub fn pce (& self) -> PceR { PceR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - WAKE"]
#[inline (always)] pub fn wake (& self) -> WakeR { WakeR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - M"]
#[inline (always)] pub fn m (& self) -> MR { MR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - UE"]
#[inline (always)] pub fn ue (& self) -> UeR { UeR :: new (((self . bits >> 13) & 1) != 0) } } impl W {
#[doc = "Bit 0 - SBK"]
#[inline (always)] pub fn sbk (& mut self) -> SbkW < '_ , Cr1Spec > { SbkW :: new (self , 0) }
#[doc = "Bit 1 - RWU"]
#[inline (always)] pub fn rwu (& mut self) -> RwuW < '_ , Cr1Spec > { RwuW :: new (self , 1) }
#[doc = "Bit 2 - RE"]
#[inline (always)] pub fn re (& mut self) -> ReW < '_ , Cr1Spec > { ReW :: new (self , 2) }
#[doc = "Bit 3 - TE"]
#[inline (always)] pub fn te (& mut self) -> TeW < '_ , Cr1Spec > { TeW :: new (self , 3) }
#[doc = "Bit 4 - IDLEIE"]
#[inline (always)] pub fn idleie (& mut self) -> IdleieW < '_ , Cr1Spec > { IdleieW :: new (self , 4) }
#[doc = "Bit 5 - RXNEIE"]
#[inline (always)] pub fn rxneie (& mut self) -> RxneieW < '_ , Cr1Spec > { RxneieW :: new (self , 5) }
#[doc = "Bit 6 - TCIE"]
#[inline (always)] pub fn tcie (& mut self) -> TcieW < '_ , Cr1Spec > { TcieW :: new (self , 6) }
#[doc = "Bit 7 - TXEIE"]
#[inline (always)] pub fn txeie (& mut self) -> TxeieW < '_ , Cr1Spec > { TxeieW :: new (self , 7) }
#[doc = "Bit 8 - PEIE"]
#[inline (always)] pub fn peie (& mut self) -> PeieW < '_ , Cr1Spec > { PeieW :: new (self , 8) }
#[doc = "Bit 9 - PS"]
#[inline (always)] pub fn ps (& mut self) -> PsW < '_ , Cr1Spec > { PsW :: new (self , 9) }
#[doc = "Bit 10 - PCE"]
#[inline (always)] pub fn pce (& mut self) -> PceW < '_ , Cr1Spec > { PceW :: new (self , 10) }
#[doc = "Bit 11 - WAKE"]
#[inline (always)] pub fn wake (& mut self) -> WakeW < '_ , Cr1Spec > { WakeW :: new (self , 11) }
#[doc = "Bit 12 - M"]
#[inline (always)] pub fn m (& mut self) -> MW < '_ , Cr1Spec > { MW :: new (self , 12) }
#[doc = "Bit 13 - UE"]
#[inline (always)] pub fn ue (& mut self) -> UeW < '_ , Cr1Spec > { UeW :: new (self , 13) } }
#[doc = "UART4_CR1\n\nYou can [`read`](crate::Reg::read) this register and get [`cr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr1Spec ; impl crate :: RegisterSpec for Cr1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr1::R`](R) reader structure"] impl crate :: Readable for Cr1Spec { }
#[doc = "`write(|w| ..)` method takes [`cr1::W`](W) writer structure"] impl crate :: Writable for Cr1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR1 to value 0"] impl crate :: Resettable for Cr1Spec { } }
#[doc = "CR2 (rw) register accessor: UART4_CR2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr2`] module"]
#[doc (alias = "CR2")] pub type Cr2 = crate :: Reg < cr2 :: Cr2Spec > ;
#[doc = "UART4_CR2"] pub mod cr2 {
#[doc = "Register `CR2` reader"] pub type R = crate :: R < Cr2Spec > ;
#[doc = "Register `CR2` writer"] pub type W = crate :: W < Cr2Spec > ;
#[doc = "Field `ADD` reader - ADD"] pub type AddR = crate :: FieldReader ;
#[doc = "Field `ADD` writer - ADD"] pub type AddW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `LBDL` reader - LBDL"] pub type LbdlR = crate :: BitReader ;
#[doc = "Field `LBDL` writer - LBDL"] pub type LbdlW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LBDIE` reader - LBDIE"] pub type LbdieR = crate :: BitReader ;
#[doc = "Field `LBDIE` writer - LBDIE"] pub type LbdieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STOP` reader - STOP"] pub type StopR = crate :: FieldReader ;
#[doc = "Field `STOP` writer - STOP"] pub type StopW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `LINEN` reader - LINEN"] pub type LinenR = crate :: BitReader ;
#[doc = "Field `LINEN` writer - LINEN"] pub type LinenW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:3 - ADD"]
#[inline (always)] pub fn add (& self) -> AddR { AddR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bit 5 - LBDL"]
#[inline (always)] pub fn lbdl (& self) -> LbdlR { LbdlR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - LBDIE"]
#[inline (always)] pub fn lbdie (& self) -> LbdieR { LbdieR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bits 12:13 - STOP"]
#[inline (always)] pub fn stop (& self) -> StopR { StopR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - LINEN"]
#[inline (always)] pub fn linen (& self) -> LinenR { LinenR :: new (((self . bits >> 14) & 1) != 0) } } impl W {
#[doc = "Bits 0:3 - ADD"]
#[inline (always)] pub fn add (& mut self) -> AddW < '_ , Cr2Spec > { AddW :: new (self , 0) }
#[doc = "Bit 5 - LBDL"]
#[inline (always)] pub fn lbdl (& mut self) -> LbdlW < '_ , Cr2Spec > { LbdlW :: new (self , 5) }
#[doc = "Bit 6 - LBDIE"]
#[inline (always)] pub fn lbdie (& mut self) -> LbdieW < '_ , Cr2Spec > { LbdieW :: new (self , 6) }
#[doc = "Bits 12:13 - STOP"]
#[inline (always)] pub fn stop (& mut self) -> StopW < '_ , Cr2Spec > { StopW :: new (self , 12) }
#[doc = "Bit 14 - LINEN"]
#[inline (always)] pub fn linen (& mut self) -> LinenW < '_ , Cr2Spec > { LinenW :: new (self , 14) } }
#[doc = "UART4_CR2\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr2Spec ; impl crate :: RegisterSpec for Cr2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr2::R`](R) reader structure"] impl crate :: Readable for Cr2Spec { }
#[doc = "`write(|w| ..)` method takes [`cr2::W`](W) writer structure"] impl crate :: Writable for Cr2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR2 to value 0"] impl crate :: Resettable for Cr2Spec { } }
#[doc = "CR3 (rw) register accessor: UART4_CR3\n\nYou can [`read`](crate::Reg::read) this register and get [`cr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr3`] module"]
#[doc (alias = "CR3")] pub type Cr3 = crate :: Reg < cr3 :: Cr3Spec > ;
#[doc = "UART4_CR3"] pub mod cr3 {
#[doc = "Register `CR3` reader"] pub type R = crate :: R < Cr3Spec > ;
#[doc = "Register `CR3` writer"] pub type W = crate :: W < Cr3Spec > ;
#[doc = "Field `EIE` reader - Error interrupt enable"] pub type EieR = crate :: BitReader ;
#[doc = "Field `EIE` writer - Error interrupt enable"] pub type EieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IREN` reader - IrDA mode enable"] pub type IrenR = crate :: BitReader ;
#[doc = "Field `IREN` writer - IrDA mode enable"] pub type IrenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IRLP` reader - IrDA low-power"] pub type IrlpR = crate :: BitReader ;
#[doc = "Field `IRLP` writer - IrDA low-power"] pub type IrlpW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HDSEL` reader - Half-duplex selection"] pub type HdselR = crate :: BitReader ;
#[doc = "Field `HDSEL` writer - Half-duplex selection"] pub type HdselW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DMAT` reader - DMA enable transmitter"] pub type DmatR = crate :: BitReader ;
#[doc = "Field `DMAT` writer - DMA enable transmitter"] pub type DmatW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Error interrupt enable"]
#[inline (always)] pub fn eie (& self) -> EieR { EieR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - IrDA mode enable"]
#[inline (always)] pub fn iren (& self) -> IrenR { IrenR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - IrDA low-power"]
#[inline (always)] pub fn irlp (& self) -> IrlpR { IrlpR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Half-duplex selection"]
#[inline (always)] pub fn hdsel (& self) -> HdselR { HdselR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 7 - DMA enable transmitter"]
#[inline (always)] pub fn dmat (& self) -> DmatR { DmatR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Error interrupt enable"]
#[inline (always)] pub fn eie (& mut self) -> EieW < '_ , Cr3Spec > { EieW :: new (self , 0) }
#[doc = "Bit 1 - IrDA mode enable"]
#[inline (always)] pub fn iren (& mut self) -> IrenW < '_ , Cr3Spec > { IrenW :: new (self , 1) }
#[doc = "Bit 2 - IrDA low-power"]
#[inline (always)] pub fn irlp (& mut self) -> IrlpW < '_ , Cr3Spec > { IrlpW :: new (self , 2) }
#[doc = "Bit 3 - Half-duplex selection"]
#[inline (always)] pub fn hdsel (& mut self) -> HdselW < '_ , Cr3Spec > { HdselW :: new (self , 3) }
#[doc = "Bit 7 - DMA enable transmitter"]
#[inline (always)] pub fn dmat (& mut self) -> DmatW < '_ , Cr3Spec > { DmatW :: new (self , 7) } }
#[doc = "UART4_CR3\n\nYou can [`read`](crate::Reg::read) this register and get [`cr3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Cr3Spec ; impl crate :: RegisterSpec for Cr3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr3::R`](R) reader structure"] impl crate :: Readable for Cr3Spec { }
#[doc = "`write(|w| ..)` method takes [`cr3::W`](W) writer structure"] impl crate :: Writable for Cr3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR3 to value 0"] impl crate :: Resettable for Cr3Spec { } } }
#[doc = "CRC calculation unit"] pub type Crc = crate :: Periph < crc :: RegisterBlock , 0x4002_3000 > ; impl core :: fmt :: Debug for Crc { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Crc") . finish () } }
#[doc = "CRC calculation unit"] pub mod crc {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { dr : Dr , idr : Idr , cr : Cr , } impl RegisterBlock {
#[doc = "0x00 - Data register"]
#[inline (always)] pub const fn dr (& self) -> & Dr { & self . dr }
#[doc = "0x04 - Independent Data register"]
#[inline (always)] pub const fn idr (& self) -> & Idr { & self . idr }
#[doc = "0x08 - Control register"]
#[inline (always)] pub const fn cr (& self) -> & Cr { & self . cr } }
#[doc = "DR (rw) register accessor: Data register\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dr`] module"]
#[doc (alias = "DR")] pub type Dr = crate :: Reg < dr :: DrSpec > ;
#[doc = "Data register"] pub mod dr {
#[doc = "Register `DR` reader"] pub type R = crate :: R < DrSpec > ;
#[doc = "Register `DR` writer"] pub type W = crate :: W < DrSpec > ;
#[doc = "Field `DR` reader - Data Register"] pub type DrR = crate :: FieldReader < u32 > ;
#[doc = "Field `DR` writer - Data Register"] pub type DrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Data Register"]
#[inline (always)] pub fn dr (& self) -> DrR { DrR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Data Register"]
#[inline (always)] pub fn dr (& mut self) -> DrW < '_ , DrSpec > { DrW :: new (self , 0) } }
#[doc = "Data register\n\nYou can [`read`](crate::Reg::read) this register and get [`dr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DrSpec ; impl crate :: RegisterSpec for DrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dr::R`](R) reader structure"] impl crate :: Readable for DrSpec { }
#[doc = "`write(|w| ..)` method takes [`dr::W`](W) writer structure"] impl crate :: Writable for DrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DR to value 0xffff_ffff"] impl crate :: Resettable for DrSpec { const RESET_VALUE : u32 = 0xffff_ffff ; } }
#[doc = "IDR (rw) register accessor: Independent Data register\n\nYou can [`read`](crate::Reg::read) this register and get [`idr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`idr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@idr`] module"]
#[doc (alias = "IDR")] pub type Idr = crate :: Reg < idr :: IdrSpec > ;
#[doc = "Independent Data register"] pub mod idr {
#[doc = "Register `IDR` reader"] pub type R = crate :: R < IdrSpec > ;
#[doc = "Register `IDR` writer"] pub type W = crate :: W < IdrSpec > ;
#[doc = "Field `IDR` reader - Independent Data register"] pub type IdrR = crate :: FieldReader ;
#[doc = "Field `IDR` writer - Independent Data register"] pub type IdrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - Independent Data register"]
#[inline (always)] pub fn idr (& self) -> IdrR { IdrR :: new ((self . bits & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - Independent Data register"]
#[inline (always)] pub fn idr (& mut self) -> IdrW < '_ , IdrSpec > { IdrW :: new (self , 0) } }
#[doc = "Independent Data register\n\nYou can [`read`](crate::Reg::read) this register and get [`idr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`idr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct IdrSpec ; impl crate :: RegisterSpec for IdrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`idr::R`](R) reader structure"] impl crate :: Readable for IdrSpec { }
#[doc = "`write(|w| ..)` method takes [`idr::W`](W) writer structure"] impl crate :: Writable for IdrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets IDR to value 0"] impl crate :: Resettable for IdrSpec { } }
#[doc = "CR (w) register accessor: Control register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr`] module"]
#[doc (alias = "CR")] pub type Cr = crate :: Reg < cr :: CrSpec > ;
#[doc = "Control register"] pub mod cr {
#[doc = "Register `CR` writer"] pub type W = crate :: W < CrSpec > ;
#[doc = "Field `RESET` writer - Reset bit"] pub type ResetW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl W {
#[doc = "Bit 0 - Reset bit"]
#[inline (always)] pub fn reset (& mut self) -> ResetW < '_ , CrSpec > { ResetW :: new (self , 0) } }
#[doc = "Control register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CrSpec ; impl crate :: RegisterSpec for CrSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`cr::W`](W) writer structure"] impl crate :: Writable for CrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR to value 0"] impl crate :: Resettable for CrSpec { } } }
#[doc = "FLASH"] pub type Flash = crate :: Periph < flash :: RegisterBlock , 0x4002_2000 > ; impl core :: fmt :: Debug for Flash { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Flash") . finish () } }
#[doc = "FLASH"] pub mod flash {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { acr : Acr , keyr : Keyr , optkeyr : Optkeyr , sr : Sr , cr : Cr , ar : Ar , _reserved6 : [u8 ; 0x04] , obr : Obr , wrpr : Wrpr , } impl RegisterBlock {
#[doc = "0x00 - Flash access control register"]
#[inline (always)] pub const fn acr (& self) -> & Acr { & self . acr }
#[doc = "0x04 - Flash key register"]
#[inline (always)] pub const fn keyr (& self) -> & Keyr { & self . keyr }
#[doc = "0x08 - Flash option key register"]
#[inline (always)] pub const fn optkeyr (& self) -> & Optkeyr { & self . optkeyr }
#[doc = "0x0c - Status register"]
#[inline (always)] pub const fn sr (& self) -> & Sr { & self . sr }
#[doc = "0x10 - Control register"]
#[inline (always)] pub const fn cr (& self) -> & Cr { & self . cr }
#[doc = "0x14 - Flash address register"]
#[inline (always)] pub const fn ar (& self) -> & Ar { & self . ar }
#[doc = "0x1c - Option byte register"]
#[inline (always)] pub const fn obr (& self) -> & Obr { & self . obr }
#[doc = "0x20 - Write protection register"]
#[inline (always)] pub const fn wrpr (& self) -> & Wrpr { & self . wrpr } }
#[doc = "ACR (rw) register accessor: Flash access control register\n\nYou can [`read`](crate::Reg::read) this register and get [`acr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`acr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@acr`] module"]
#[doc (alias = "ACR")] pub type Acr = crate :: Reg < acr :: AcrSpec > ;
#[doc = "Flash access control register"] pub mod acr {
#[doc = "Register `ACR` reader"] pub type R = crate :: R < AcrSpec > ;
#[doc = "Register `ACR` writer"] pub type W = crate :: W < AcrSpec > ;
#[doc = "Field `LATENCY` reader - Latency"] pub type LatencyR = crate :: FieldReader ;
#[doc = "Field `LATENCY` writer - Latency"] pub type LatencyW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `HLFCYA` reader - Flash half cycle access enable"] pub type HlfcyaR = crate :: BitReader ;
#[doc = "Field `HLFCYA` writer - Flash half cycle access enable"] pub type HlfcyaW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PRFTBE` reader - Prefetch buffer enable"] pub type PrftbeR = crate :: BitReader ;
#[doc = "Field `PRFTBE` writer - Prefetch buffer enable"] pub type PrftbeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PRFTBS` reader - Prefetch buffer status"] pub type PrftbsR = crate :: BitReader ; impl R {
#[doc = "Bits 0:2 - Latency"]
#[inline (always)] pub fn latency (& self) -> LatencyR { LatencyR :: new ((self . bits & 7) as u8) }
#[doc = "Bit 3 - Flash half cycle access enable"]
#[inline (always)] pub fn hlfcya (& self) -> HlfcyaR { HlfcyaR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Prefetch buffer enable"]
#[inline (always)] pub fn prftbe (& self) -> PrftbeR { PrftbeR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Prefetch buffer status"]
#[inline (always)] pub fn prftbs (& self) -> PrftbsR { PrftbsR :: new (((self . bits >> 5) & 1) != 0) } } impl W {
#[doc = "Bits 0:2 - Latency"]
#[inline (always)] pub fn latency (& mut self) -> LatencyW < '_ , AcrSpec > { LatencyW :: new (self , 0) }
#[doc = "Bit 3 - Flash half cycle access enable"]
#[inline (always)] pub fn hlfcya (& mut self) -> HlfcyaW < '_ , AcrSpec > { HlfcyaW :: new (self , 3) }
#[doc = "Bit 4 - Prefetch buffer enable"]
#[inline (always)] pub fn prftbe (& mut self) -> PrftbeW < '_ , AcrSpec > { PrftbeW :: new (self , 4) } }
#[doc = "Flash access control register\n\nYou can [`read`](crate::Reg::read) this register and get [`acr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`acr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct AcrSpec ; impl crate :: RegisterSpec for AcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`acr::R`](R) reader structure"] impl crate :: Readable for AcrSpec { }
#[doc = "`write(|w| ..)` method takes [`acr::W`](W) writer structure"] impl crate :: Writable for AcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets ACR to value 0x30"] impl crate :: Resettable for AcrSpec { const RESET_VALUE : u32 = 0x30 ; } }
#[doc = "KEYR (w) register accessor: Flash key register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`keyr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@keyr`] module"]
#[doc (alias = "KEYR")] pub type Keyr = crate :: Reg < keyr :: KeyrSpec > ;
#[doc = "Flash key register"] pub mod keyr {
#[doc = "Register `KEYR` writer"] pub type W = crate :: W < KeyrSpec > ;
#[doc = "Field `KEY` writer - FPEC key"] pub type KeyW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl W {
#[doc = "Bits 0:31 - FPEC key"]
#[inline (always)] pub fn key (& mut self) -> KeyW < '_ , KeyrSpec > { KeyW :: new (self , 0) } }
#[doc = "Flash key register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`keyr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct KeyrSpec ; impl crate :: RegisterSpec for KeyrSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`keyr::W`](W) writer structure"] impl crate :: Writable for KeyrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets KEYR to value 0"] impl crate :: Resettable for KeyrSpec { } }
#[doc = "OPTKEYR (w) register accessor: Flash option key register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`optkeyr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@optkeyr`] module"]
#[doc (alias = "OPTKEYR")] pub type Optkeyr = crate :: Reg < optkeyr :: OptkeyrSpec > ;
#[doc = "Flash option key register"] pub mod optkeyr {
#[doc = "Register `OPTKEYR` writer"] pub type W = crate :: W < OptkeyrSpec > ;
#[doc = "Field `OPTKEY` writer - Option byte key"] pub type OptkeyW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl W {
#[doc = "Bits 0:31 - Option byte key"]
#[inline (always)] pub fn optkey (& mut self) -> OptkeyW < '_ , OptkeyrSpec > { OptkeyW :: new (self , 0) } }
#[doc = "Flash option key register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`optkeyr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct OptkeyrSpec ; impl crate :: RegisterSpec for OptkeyrSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`optkeyr::W`](W) writer structure"] impl crate :: Writable for OptkeyrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets OPTKEYR to value 0"] impl crate :: Resettable for OptkeyrSpec { } }
#[doc = "SR (rw) register accessor: Status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`] module"]
#[doc (alias = "SR")] pub type Sr = crate :: Reg < sr :: SrSpec > ;
#[doc = "Status register"] pub mod sr {
#[doc = "Register `SR` reader"] pub type R = crate :: R < SrSpec > ;
#[doc = "Register `SR` writer"] pub type W = crate :: W < SrSpec > ;
#[doc = "Field `BSY` reader - Busy"] pub type BsyR = crate :: BitReader ;
#[doc = "Field `PGERR` reader - Programming error"] pub type PgerrR = crate :: BitReader ;
#[doc = "Field `PGERR` writer - Programming error"] pub type PgerrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WRPRTERR` reader - Write protection error"] pub type WrprterrR = crate :: BitReader ;
#[doc = "Field `WRPRTERR` writer - Write protection error"] pub type WrprterrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EOP` reader - End of operation"] pub type EopR = crate :: BitReader ;
#[doc = "Field `EOP` writer - End of operation"] pub type EopW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Busy"]
#[inline (always)] pub fn bsy (& self) -> BsyR { BsyR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 2 - Programming error"]
#[inline (always)] pub fn pgerr (& self) -> PgerrR { PgerrR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 4 - Write protection error"]
#[inline (always)] pub fn wrprterr (& self) -> WrprterrR { WrprterrR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - End of operation"]
#[inline (always)] pub fn eop (& self) -> EopR { EopR :: new (((self . bits >> 5) & 1) != 0) } } impl W {
#[doc = "Bit 2 - Programming error"]
#[inline (always)] pub fn pgerr (& mut self) -> PgerrW < '_ , SrSpec > { PgerrW :: new (self , 2) }
#[doc = "Bit 4 - Write protection error"]
#[inline (always)] pub fn wrprterr (& mut self) -> WrprterrW < '_ , SrSpec > { WrprterrW :: new (self , 4) }
#[doc = "Bit 5 - End of operation"]
#[inline (always)] pub fn eop (& mut self) -> EopW < '_ , SrSpec > { EopW :: new (self , 5) } }
#[doc = "Status register\n\nYou can [`read`](crate::Reg::read) this register and get [`sr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct SrSpec ; impl crate :: RegisterSpec for SrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`sr::R`](R) reader structure"] impl crate :: Readable for SrSpec { }
#[doc = "`write(|w| ..)` method takes [`sr::W`](W) writer structure"] impl crate :: Writable for SrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets SR to value 0"] impl crate :: Resettable for SrSpec { } }
#[doc = "CR (rw) register accessor: Control register\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr`] module"]
#[doc (alias = "CR")] pub type Cr = crate :: Reg < cr :: CrSpec > ;
#[doc = "Control register"] pub mod cr {
#[doc = "Register `CR` reader"] pub type R = crate :: R < CrSpec > ;
#[doc = "Register `CR` writer"] pub type W = crate :: W < CrSpec > ;
#[doc = "Field `PG` reader - Programming"] pub type PgR = crate :: BitReader ;
#[doc = "Field `PG` writer - Programming"] pub type PgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PER` reader - Page Erase"] pub type PerR = crate :: BitReader ;
#[doc = "Field `PER` writer - Page Erase"] pub type PerW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MER` reader - Mass Erase"] pub type MerR = crate :: BitReader ;
#[doc = "Field `MER` writer - Mass Erase"] pub type MerW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OPTPG` reader - Option byte programming"] pub type OptpgR = crate :: BitReader ;
#[doc = "Field `OPTPG` writer - Option byte programming"] pub type OptpgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OPTER` reader - Option byte erase"] pub type OpterR = crate :: BitReader ;
#[doc = "Field `OPTER` writer - Option byte erase"] pub type OpterW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STRT` reader - Start"] pub type StrtR = crate :: BitReader ;
#[doc = "Field `STRT` writer - Start"] pub type StrtW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LOCK` reader - Lock"] pub type LockR = crate :: BitReader ;
#[doc = "Field `LOCK` writer - Lock"] pub type LockW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OPTWRE` reader - Option bytes write enable"] pub type OptwreR = crate :: BitReader ;
#[doc = "Field `OPTWRE` writer - Option bytes write enable"] pub type OptwreW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ERRIE` reader - Error interrupt enable"] pub type ErrieR = crate :: BitReader ;
#[doc = "Field `ERRIE` writer - Error interrupt enable"] pub type ErrieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EOPIE` reader - End of operation interrupt enable"] pub type EopieR = crate :: BitReader ;
#[doc = "Field `EOPIE` writer - End of operation interrupt enable"] pub type EopieW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Programming"]
#[inline (always)] pub fn pg (& self) -> PgR { PgR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Page Erase"]
#[inline (always)] pub fn per (& self) -> PerR { PerR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Mass Erase"]
#[inline (always)] pub fn mer (& self) -> MerR { MerR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 4 - Option byte programming"]
#[inline (always)] pub fn optpg (& self) -> OptpgR { OptpgR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Option byte erase"]
#[inline (always)] pub fn opter (& self) -> OpterR { OpterR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Start"]
#[inline (always)] pub fn strt (& self) -> StrtR { StrtR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Lock"]
#[inline (always)] pub fn lock (& self) -> LockR { LockR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 9 - Option bytes write enable"]
#[inline (always)] pub fn optwre (& self) -> OptwreR { OptwreR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Error interrupt enable"]
#[inline (always)] pub fn errie (& self) -> ErrieR { ErrieR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 12 - End of operation interrupt enable"]
#[inline (always)] pub fn eopie (& self) -> EopieR { EopieR :: new (((self . bits >> 12) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Programming"]
#[inline (always)] pub fn pg (& mut self) -> PgW < '_ , CrSpec > { PgW :: new (self , 0) }
#[doc = "Bit 1 - Page Erase"]
#[inline (always)] pub fn per (& mut self) -> PerW < '_ , CrSpec > { PerW :: new (self , 1) }
#[doc = "Bit 2 - Mass Erase"]
#[inline (always)] pub fn mer (& mut self) -> MerW < '_ , CrSpec > { MerW :: new (self , 2) }
#[doc = "Bit 4 - Option byte programming"]
#[inline (always)] pub fn optpg (& mut self) -> OptpgW < '_ , CrSpec > { OptpgW :: new (self , 4) }
#[doc = "Bit 5 - Option byte erase"]
#[inline (always)] pub fn opter (& mut self) -> OpterW < '_ , CrSpec > { OpterW :: new (self , 5) }
#[doc = "Bit 6 - Start"]
#[inline (always)] pub fn strt (& mut self) -> StrtW < '_ , CrSpec > { StrtW :: new (self , 6) }
#[doc = "Bit 7 - Lock"]
#[inline (always)] pub fn lock (& mut self) -> LockW < '_ , CrSpec > { LockW :: new (self , 7) }
#[doc = "Bit 9 - Option bytes write enable"]
#[inline (always)] pub fn optwre (& mut self) -> OptwreW < '_ , CrSpec > { OptwreW :: new (self , 9) }
#[doc = "Bit 10 - Error interrupt enable"]
#[inline (always)] pub fn errie (& mut self) -> ErrieW < '_ , CrSpec > { ErrieW :: new (self , 10) }
#[doc = "Bit 12 - End of operation interrupt enable"]
#[inline (always)] pub fn eopie (& mut self) -> EopieW < '_ , CrSpec > { EopieW :: new (self , 12) } }
#[doc = "Control register\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CrSpec ; impl crate :: RegisterSpec for CrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cr::R`](R) reader structure"] impl crate :: Readable for CrSpec { }
#[doc = "`write(|w| ..)` method takes [`cr::W`](W) writer structure"] impl crate :: Writable for CrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CR to value 0x80"] impl crate :: Resettable for CrSpec { const RESET_VALUE : u32 = 0x80 ; } }
#[doc = "AR (w) register accessor: Flash address register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ar::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ar`] module"]
#[doc (alias = "AR")] pub type Ar = crate :: Reg < ar :: ArSpec > ;
#[doc = "Flash address register"] pub mod ar {
#[doc = "Register `AR` writer"] pub type W = crate :: W < ArSpec > ;
#[doc = "Field `FAR` writer - Flash Address"] pub type FarW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl W {
#[doc = "Bits 0:31 - Flash Address"]
#[inline (always)] pub fn far (& mut self) -> FarW < '_ , ArSpec > { FarW :: new (self , 0) } }
#[doc = "Flash address register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ar::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct ArSpec ; impl crate :: RegisterSpec for ArSpec { type Ux = u32 ; }
#[doc = "`write(|w| ..)` method takes [`ar::W`](W) writer structure"] impl crate :: Writable for ArSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets AR to value 0"] impl crate :: Resettable for ArSpec { } }
#[doc = "OBR (r) register accessor: Option byte register\n\nYou can [`read`](crate::Reg::read) this register and get [`obr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@obr`] module"]
#[doc (alias = "OBR")] pub type Obr = crate :: Reg < obr :: ObrSpec > ;
#[doc = "Option byte register"] pub mod obr {
#[doc = "Register `OBR` reader"] pub type R = crate :: R < ObrSpec > ;
#[doc = "Field `OPTERR` reader - Option byte error"] pub type OpterrR = crate :: BitReader ;
#[doc = "Field `RDPRT` reader - Read protection"] pub type RdprtR = crate :: BitReader ;
#[doc = "Field `WDG_SW` reader - WDG_SW"] pub type WdgSwR = crate :: BitReader ;
#[doc = "Field `nRST_STOP` reader - nRST_STOP"] pub type NRstStopR = crate :: BitReader ;
#[doc = "Field `nRST_STDBY` reader - nRST_STDBY"] pub type NRstStdbyR = crate :: BitReader ;
#[doc = "Field `Data0` reader - Data0"] pub type Data0R = crate :: FieldReader ;
#[doc = "Field `Data1` reader - Data1"] pub type Data1R = crate :: FieldReader ; impl R {
#[doc = "Bit 0 - Option byte error"]
#[inline (always)] pub fn opterr (& self) -> OpterrR { OpterrR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Read protection"]
#[inline (always)] pub fn rdprt (& self) -> RdprtR { RdprtR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - WDG_SW"]
#[inline (always)] pub fn wdg_sw (& self) -> WdgSwR { WdgSwR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - nRST_STOP"]
#[inline (always)] pub fn n_rst_stop (& self) -> NRstStopR { NRstStopR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - nRST_STDBY"]
#[inline (always)] pub fn n_rst_stdby (& self) -> NRstStdbyR { NRstStdbyR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bits 10:17 - Data0"]
#[inline (always)] pub fn data0 (& self) -> Data0R { Data0R :: new (((self . bits >> 10) & 0xff) as u8) }
#[doc = "Bits 18:25 - Data1"]
#[inline (always)] pub fn data1 (& self) -> Data1R { Data1R :: new (((self . bits >> 18) & 0xff) as u8) } }
#[doc = "Option byte register\n\nYou can [`read`](crate::Reg::read) this register and get [`obr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct ObrSpec ; impl crate :: RegisterSpec for ObrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`obr::R`](R) reader structure"] impl crate :: Readable for ObrSpec { }
#[doc = "`reset()` method sets OBR to value 0x03ff_fffc"] impl crate :: Resettable for ObrSpec { const RESET_VALUE : u32 = 0x03ff_fffc ; } }
#[doc = "WRPR (r) register accessor: Write protection register\n\nYou can [`read`](crate::Reg::read) this register and get [`wrpr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wrpr`] module"]
#[doc (alias = "WRPR")] pub type Wrpr = crate :: Reg < wrpr :: WrprSpec > ;
#[doc = "Write protection register"] pub mod wrpr {
#[doc = "Register `WRPR` reader"] pub type R = crate :: R < WrprSpec > ;
#[doc = "Field `WRP` reader - Write protect"] pub type WrpR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - Write protect"]
#[inline (always)] pub fn wrp (& self) -> WrpR { WrpR :: new (self . bits) } }
#[doc = "Write protection register\n\nYou can [`read`](crate::Reg::read) this register and get [`wrpr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct WrprSpec ; impl crate :: RegisterSpec for WrprSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`wrpr::R`](R) reader structure"] impl crate :: Readable for WrprSpec { }
#[doc = "`reset()` method sets WRPR to value 0xffff_ffff"] impl crate :: Resettable for WrprSpec { const RESET_VALUE : u32 = 0xffff_ffff ; } } }
#[doc = "Universal serial bus full-speed device interface"] pub type Usb = crate :: Periph < usb :: RegisterBlock , 0x4000_5c00 > ; impl core :: fmt :: Debug for Usb { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Usb") . finish () } }
#[doc = "Universal serial bus full-speed device interface"] pub mod usb {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { ep0r : Ep0r , ep1r : Ep1r , ep2r : Ep2r , ep3r : Ep3r , ep4r : Ep4r , ep5r : Ep5r , ep6r : Ep6r , ep7r : Ep7r , _reserved8 : [u8 ; 0x20] , cntr : Cntr , istr : Istr , fnr : Fnr , daddr : Daddr , btable : Btable , } impl RegisterBlock {
#[doc = "0x00 - endpoint 0 register"]
#[inline (always)] pub const fn ep0r (& self) -> & Ep0r { & self . ep0r }
#[doc = "0x04 - endpoint 1 register"]
#[inline (always)] pub const fn ep1r (& self) -> & Ep1r { & self . ep1r }
#[doc = "0x08 - endpoint 2 register"]
#[inline (always)] pub const fn ep2r (& self) -> & Ep2r { & self . ep2r }
#[doc = "0x0c - endpoint 3 register"]
#[inline (always)] pub const fn ep3r (& self) -> & Ep3r { & self . ep3r }
#[doc = "0x10 - endpoint 4 register"]
#[inline (always)] pub const fn ep4r (& self) -> & Ep4r { & self . ep4r }
#[doc = "0x14 - endpoint 5 register"]
#[inline (always)] pub const fn ep5r (& self) -> & Ep5r { & self . ep5r }
#[doc = "0x18 - endpoint 6 register"]
#[inline (always)] pub const fn ep6r (& self) -> & Ep6r { & self . ep6r }
#[doc = "0x1c - endpoint 7 register"]
#[inline (always)] pub const fn ep7r (& self) -> & Ep7r { & self . ep7r }
#[doc = "0x40 - control register"]
#[inline (always)] pub const fn cntr (& self) -> & Cntr { & self . cntr }
#[doc = "0x44 - interrupt status register"]
#[inline (always)] pub const fn istr (& self) -> & Istr { & self . istr }
#[doc = "0x48 - frame number register"]
#[inline (always)] pub const fn fnr (& self) -> & Fnr { & self . fnr }
#[doc = "0x4c - device address"]
#[inline (always)] pub const fn daddr (& self) -> & Daddr { & self . daddr }
#[doc = "0x50 - Buffer table address"]
#[inline (always)] pub const fn btable (& self) -> & Btable { & self . btable } }
#[doc = "EP0R (rw) register accessor: endpoint 0 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep0r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep0r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ep0r`] module"]
#[doc (alias = "EP0R")] pub type Ep0r = crate :: Reg < ep0r :: Ep0rSpec > ;
#[doc = "endpoint 0 register"] pub mod ep0r {
#[doc = "Register `EP0R` reader"] pub type R = crate :: R < Ep0rSpec > ;
#[doc = "Register `EP0R` writer"] pub type W = crate :: W < Ep0rSpec > ;
#[doc = "Field `EA` reader - Endpoint address"] pub type EaR = crate :: FieldReader ;
#[doc = "Field `EA` writer - Endpoint address"] pub type EaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `STAT_TX` reader - Status bits, for transmission transfers"] pub type StatTxR = crate :: FieldReader ;
#[doc = "Field `STAT_TX` writer - Status bits, for transmission transfers"] pub type StatTxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_TX` reader - Data Toggle, for transmission transfers"] pub type DtogTxR = crate :: BitReader ;
#[doc = "Field `DTOG_TX` writer - Data Toggle, for transmission transfers"] pub type DtogTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_TX` reader - Correct Transfer for transmission"] pub type CtrTxR = crate :: BitReader ;
#[doc = "Field `CTR_TX` writer - Correct Transfer for transmission"] pub type CtrTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_KIND` reader - Endpoint kind"] pub type EpKindR = crate :: BitReader ;
#[doc = "Field `EP_KIND` writer - Endpoint kind"] pub type EpKindW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_TYPE` reader - Endpoint type"] pub type EpTypeR = crate :: FieldReader ;
#[doc = "Field `EP_TYPE` writer - Endpoint type"] pub type EpTypeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `SETUP` reader - Setup transaction completed"] pub type SetupR = crate :: BitReader ;
#[doc = "Field `SETUP` writer - Setup transaction completed"] pub type SetupW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STAT_RX` reader - Status bits, for reception transfers"] pub type StatRxR = crate :: FieldReader ;
#[doc = "Field `STAT_RX` writer - Status bits, for reception transfers"] pub type StatRxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_RX` reader - Data Toggle, for reception transfers"] pub type DtogRxR = crate :: BitReader ;
#[doc = "Field `DTOG_RX` writer - Data Toggle, for reception transfers"] pub type DtogRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_RX` reader - Correct transfer for reception"] pub type CtrRxR = crate :: BitReader ;
#[doc = "Field `CTR_RX` writer - Correct transfer for reception"] pub type CtrRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& self) -> EaR { EaR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& self) -> StatTxR { StatTxR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& self) -> DtogTxR { DtogTxR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& self) -> CtrTxR { CtrTxR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& self) -> EpKindR { EpKindR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& self) -> EpTypeR { EpTypeR :: new (((self . bits >> 9) & 3) as u8) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& self) -> SetupR { SetupR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& self) -> StatRxR { StatRxR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& self) -> DtogRxR { DtogRxR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& self) -> CtrRxR { CtrRxR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& mut self) -> EaW < '_ , Ep0rSpec > { EaW :: new (self , 0) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& mut self) -> StatTxW < '_ , Ep0rSpec > { StatTxW :: new (self , 4) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& mut self) -> DtogTxW < '_ , Ep0rSpec > { DtogTxW :: new (self , 6) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& mut self) -> CtrTxW < '_ , Ep0rSpec > { CtrTxW :: new (self , 7) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& mut self) -> EpKindW < '_ , Ep0rSpec > { EpKindW :: new (self , 8) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& mut self) -> EpTypeW < '_ , Ep0rSpec > { EpTypeW :: new (self , 9) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& mut self) -> SetupW < '_ , Ep0rSpec > { SetupW :: new (self , 11) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& mut self) -> StatRxW < '_ , Ep0rSpec > { StatRxW :: new (self , 12) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& mut self) -> DtogRxW < '_ , Ep0rSpec > { DtogRxW :: new (self , 14) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& mut self) -> CtrRxW < '_ , Ep0rSpec > { CtrRxW :: new (self , 15) } }
#[doc = "endpoint 0 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep0r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep0r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ep0rSpec ; impl crate :: RegisterSpec for Ep0rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ep0r::R`](R) reader structure"] impl crate :: Readable for Ep0rSpec { }
#[doc = "`write(|w| ..)` method takes [`ep0r::W`](W) writer structure"] impl crate :: Writable for Ep0rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EP0R to value 0"] impl crate :: Resettable for Ep0rSpec { } }
#[doc = "EP1R (rw) register accessor: endpoint 1 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep1r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep1r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ep1r`] module"]
#[doc (alias = "EP1R")] pub type Ep1r = crate :: Reg < ep1r :: Ep1rSpec > ;
#[doc = "endpoint 1 register"] pub mod ep1r {
#[doc = "Register `EP1R` reader"] pub type R = crate :: R < Ep1rSpec > ;
#[doc = "Register `EP1R` writer"] pub type W = crate :: W < Ep1rSpec > ;
#[doc = "Field `EA` reader - Endpoint address"] pub type EaR = crate :: FieldReader ;
#[doc = "Field `EA` writer - Endpoint address"] pub type EaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `STAT_TX` reader - Status bits, for transmission transfers"] pub type StatTxR = crate :: FieldReader ;
#[doc = "Field `STAT_TX` writer - Status bits, for transmission transfers"] pub type StatTxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_TX` reader - Data Toggle, for transmission transfers"] pub type DtogTxR = crate :: BitReader ;
#[doc = "Field `DTOG_TX` writer - Data Toggle, for transmission transfers"] pub type DtogTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_TX` reader - Correct Transfer for transmission"] pub type CtrTxR = crate :: BitReader ;
#[doc = "Field `CTR_TX` writer - Correct Transfer for transmission"] pub type CtrTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_KIND` reader - Endpoint kind"] pub type EpKindR = crate :: BitReader ;
#[doc = "Field `EP_KIND` writer - Endpoint kind"] pub type EpKindW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_TYPE` reader - Endpoint type"] pub type EpTypeR = crate :: FieldReader ;
#[doc = "Field `EP_TYPE` writer - Endpoint type"] pub type EpTypeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `SETUP` reader - Setup transaction completed"] pub type SetupR = crate :: BitReader ;
#[doc = "Field `SETUP` writer - Setup transaction completed"] pub type SetupW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STAT_RX` reader - Status bits, for reception transfers"] pub type StatRxR = crate :: FieldReader ;
#[doc = "Field `STAT_RX` writer - Status bits, for reception transfers"] pub type StatRxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_RX` reader - Data Toggle, for reception transfers"] pub type DtogRxR = crate :: BitReader ;
#[doc = "Field `DTOG_RX` writer - Data Toggle, for reception transfers"] pub type DtogRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_RX` reader - Correct transfer for reception"] pub type CtrRxR = crate :: BitReader ;
#[doc = "Field `CTR_RX` writer - Correct transfer for reception"] pub type CtrRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& self) -> EaR { EaR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& self) -> StatTxR { StatTxR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& self) -> DtogTxR { DtogTxR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& self) -> CtrTxR { CtrTxR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& self) -> EpKindR { EpKindR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& self) -> EpTypeR { EpTypeR :: new (((self . bits >> 9) & 3) as u8) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& self) -> SetupR { SetupR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& self) -> StatRxR { StatRxR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& self) -> DtogRxR { DtogRxR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& self) -> CtrRxR { CtrRxR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& mut self) -> EaW < '_ , Ep1rSpec > { EaW :: new (self , 0) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& mut self) -> StatTxW < '_ , Ep1rSpec > { StatTxW :: new (self , 4) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& mut self) -> DtogTxW < '_ , Ep1rSpec > { DtogTxW :: new (self , 6) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& mut self) -> CtrTxW < '_ , Ep1rSpec > { CtrTxW :: new (self , 7) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& mut self) -> EpKindW < '_ , Ep1rSpec > { EpKindW :: new (self , 8) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& mut self) -> EpTypeW < '_ , Ep1rSpec > { EpTypeW :: new (self , 9) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& mut self) -> SetupW < '_ , Ep1rSpec > { SetupW :: new (self , 11) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& mut self) -> StatRxW < '_ , Ep1rSpec > { StatRxW :: new (self , 12) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& mut self) -> DtogRxW < '_ , Ep1rSpec > { DtogRxW :: new (self , 14) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& mut self) -> CtrRxW < '_ , Ep1rSpec > { CtrRxW :: new (self , 15) } }
#[doc = "endpoint 1 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep1r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep1r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ep1rSpec ; impl crate :: RegisterSpec for Ep1rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ep1r::R`](R) reader structure"] impl crate :: Readable for Ep1rSpec { }
#[doc = "`write(|w| ..)` method takes [`ep1r::W`](W) writer structure"] impl crate :: Writable for Ep1rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EP1R to value 0"] impl crate :: Resettable for Ep1rSpec { } }
#[doc = "EP2R (rw) register accessor: endpoint 2 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep2r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep2r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ep2r`] module"]
#[doc (alias = "EP2R")] pub type Ep2r = crate :: Reg < ep2r :: Ep2rSpec > ;
#[doc = "endpoint 2 register"] pub mod ep2r {
#[doc = "Register `EP2R` reader"] pub type R = crate :: R < Ep2rSpec > ;
#[doc = "Register `EP2R` writer"] pub type W = crate :: W < Ep2rSpec > ;
#[doc = "Field `EA` reader - Endpoint address"] pub type EaR = crate :: FieldReader ;
#[doc = "Field `EA` writer - Endpoint address"] pub type EaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `STAT_TX` reader - Status bits, for transmission transfers"] pub type StatTxR = crate :: FieldReader ;
#[doc = "Field `STAT_TX` writer - Status bits, for transmission transfers"] pub type StatTxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_TX` reader - Data Toggle, for transmission transfers"] pub type DtogTxR = crate :: BitReader ;
#[doc = "Field `DTOG_TX` writer - Data Toggle, for transmission transfers"] pub type DtogTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_TX` reader - Correct Transfer for transmission"] pub type CtrTxR = crate :: BitReader ;
#[doc = "Field `CTR_TX` writer - Correct Transfer for transmission"] pub type CtrTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_KIND` reader - Endpoint kind"] pub type EpKindR = crate :: BitReader ;
#[doc = "Field `EP_KIND` writer - Endpoint kind"] pub type EpKindW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_TYPE` reader - Endpoint type"] pub type EpTypeR = crate :: FieldReader ;
#[doc = "Field `EP_TYPE` writer - Endpoint type"] pub type EpTypeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `SETUP` reader - Setup transaction completed"] pub type SetupR = crate :: BitReader ;
#[doc = "Field `SETUP` writer - Setup transaction completed"] pub type SetupW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STAT_RX` reader - Status bits, for reception transfers"] pub type StatRxR = crate :: FieldReader ;
#[doc = "Field `STAT_RX` writer - Status bits, for reception transfers"] pub type StatRxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_RX` reader - Data Toggle, for reception transfers"] pub type DtogRxR = crate :: BitReader ;
#[doc = "Field `DTOG_RX` writer - Data Toggle, for reception transfers"] pub type DtogRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_RX` reader - Correct transfer for reception"] pub type CtrRxR = crate :: BitReader ;
#[doc = "Field `CTR_RX` writer - Correct transfer for reception"] pub type CtrRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& self) -> EaR { EaR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& self) -> StatTxR { StatTxR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& self) -> DtogTxR { DtogTxR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& self) -> CtrTxR { CtrTxR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& self) -> EpKindR { EpKindR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& self) -> EpTypeR { EpTypeR :: new (((self . bits >> 9) & 3) as u8) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& self) -> SetupR { SetupR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& self) -> StatRxR { StatRxR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& self) -> DtogRxR { DtogRxR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& self) -> CtrRxR { CtrRxR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& mut self) -> EaW < '_ , Ep2rSpec > { EaW :: new (self , 0) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& mut self) -> StatTxW < '_ , Ep2rSpec > { StatTxW :: new (self , 4) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& mut self) -> DtogTxW < '_ , Ep2rSpec > { DtogTxW :: new (self , 6) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& mut self) -> CtrTxW < '_ , Ep2rSpec > { CtrTxW :: new (self , 7) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& mut self) -> EpKindW < '_ , Ep2rSpec > { EpKindW :: new (self , 8) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& mut self) -> EpTypeW < '_ , Ep2rSpec > { EpTypeW :: new (self , 9) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& mut self) -> SetupW < '_ , Ep2rSpec > { SetupW :: new (self , 11) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& mut self) -> StatRxW < '_ , Ep2rSpec > { StatRxW :: new (self , 12) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& mut self) -> DtogRxW < '_ , Ep2rSpec > { DtogRxW :: new (self , 14) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& mut self) -> CtrRxW < '_ , Ep2rSpec > { CtrRxW :: new (self , 15) } }
#[doc = "endpoint 2 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep2r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep2r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ep2rSpec ; impl crate :: RegisterSpec for Ep2rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ep2r::R`](R) reader structure"] impl crate :: Readable for Ep2rSpec { }
#[doc = "`write(|w| ..)` method takes [`ep2r::W`](W) writer structure"] impl crate :: Writable for Ep2rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EP2R to value 0"] impl crate :: Resettable for Ep2rSpec { } }
#[doc = "EP3R (rw) register accessor: endpoint 3 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep3r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep3r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ep3r`] module"]
#[doc (alias = "EP3R")] pub type Ep3r = crate :: Reg < ep3r :: Ep3rSpec > ;
#[doc = "endpoint 3 register"] pub mod ep3r {
#[doc = "Register `EP3R` reader"] pub type R = crate :: R < Ep3rSpec > ;
#[doc = "Register `EP3R` writer"] pub type W = crate :: W < Ep3rSpec > ;
#[doc = "Field `EA` reader - Endpoint address"] pub type EaR = crate :: FieldReader ;
#[doc = "Field `EA` writer - Endpoint address"] pub type EaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `STAT_TX` reader - Status bits, for transmission transfers"] pub type StatTxR = crate :: FieldReader ;
#[doc = "Field `STAT_TX` writer - Status bits, for transmission transfers"] pub type StatTxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_TX` reader - Data Toggle, for transmission transfers"] pub type DtogTxR = crate :: BitReader ;
#[doc = "Field `DTOG_TX` writer - Data Toggle, for transmission transfers"] pub type DtogTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_TX` reader - Correct Transfer for transmission"] pub type CtrTxR = crate :: BitReader ;
#[doc = "Field `CTR_TX` writer - Correct Transfer for transmission"] pub type CtrTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_KIND` reader - Endpoint kind"] pub type EpKindR = crate :: BitReader ;
#[doc = "Field `EP_KIND` writer - Endpoint kind"] pub type EpKindW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_TYPE` reader - Endpoint type"] pub type EpTypeR = crate :: FieldReader ;
#[doc = "Field `EP_TYPE` writer - Endpoint type"] pub type EpTypeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `SETUP` reader - Setup transaction completed"] pub type SetupR = crate :: BitReader ;
#[doc = "Field `SETUP` writer - Setup transaction completed"] pub type SetupW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STAT_RX` reader - Status bits, for reception transfers"] pub type StatRxR = crate :: FieldReader ;
#[doc = "Field `STAT_RX` writer - Status bits, for reception transfers"] pub type StatRxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_RX` reader - Data Toggle, for reception transfers"] pub type DtogRxR = crate :: BitReader ;
#[doc = "Field `DTOG_RX` writer - Data Toggle, for reception transfers"] pub type DtogRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_RX` reader - Correct transfer for reception"] pub type CtrRxR = crate :: BitReader ;
#[doc = "Field `CTR_RX` writer - Correct transfer for reception"] pub type CtrRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& self) -> EaR { EaR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& self) -> StatTxR { StatTxR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& self) -> DtogTxR { DtogTxR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& self) -> CtrTxR { CtrTxR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& self) -> EpKindR { EpKindR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& self) -> EpTypeR { EpTypeR :: new (((self . bits >> 9) & 3) as u8) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& self) -> SetupR { SetupR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& self) -> StatRxR { StatRxR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& self) -> DtogRxR { DtogRxR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& self) -> CtrRxR { CtrRxR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& mut self) -> EaW < '_ , Ep3rSpec > { EaW :: new (self , 0) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& mut self) -> StatTxW < '_ , Ep3rSpec > { StatTxW :: new (self , 4) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& mut self) -> DtogTxW < '_ , Ep3rSpec > { DtogTxW :: new (self , 6) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& mut self) -> CtrTxW < '_ , Ep3rSpec > { CtrTxW :: new (self , 7) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& mut self) -> EpKindW < '_ , Ep3rSpec > { EpKindW :: new (self , 8) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& mut self) -> EpTypeW < '_ , Ep3rSpec > { EpTypeW :: new (self , 9) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& mut self) -> SetupW < '_ , Ep3rSpec > { SetupW :: new (self , 11) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& mut self) -> StatRxW < '_ , Ep3rSpec > { StatRxW :: new (self , 12) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& mut self) -> DtogRxW < '_ , Ep3rSpec > { DtogRxW :: new (self , 14) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& mut self) -> CtrRxW < '_ , Ep3rSpec > { CtrRxW :: new (self , 15) } }
#[doc = "endpoint 3 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep3r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep3r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ep3rSpec ; impl crate :: RegisterSpec for Ep3rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ep3r::R`](R) reader structure"] impl crate :: Readable for Ep3rSpec { }
#[doc = "`write(|w| ..)` method takes [`ep3r::W`](W) writer structure"] impl crate :: Writable for Ep3rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EP3R to value 0"] impl crate :: Resettable for Ep3rSpec { } }
#[doc = "EP4R (rw) register accessor: endpoint 4 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep4r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep4r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ep4r`] module"]
#[doc (alias = "EP4R")] pub type Ep4r = crate :: Reg < ep4r :: Ep4rSpec > ;
#[doc = "endpoint 4 register"] pub mod ep4r {
#[doc = "Register `EP4R` reader"] pub type R = crate :: R < Ep4rSpec > ;
#[doc = "Register `EP4R` writer"] pub type W = crate :: W < Ep4rSpec > ;
#[doc = "Field `EA` reader - Endpoint address"] pub type EaR = crate :: FieldReader ;
#[doc = "Field `EA` writer - Endpoint address"] pub type EaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `STAT_TX` reader - Status bits, for transmission transfers"] pub type StatTxR = crate :: FieldReader ;
#[doc = "Field `STAT_TX` writer - Status bits, for transmission transfers"] pub type StatTxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_TX` reader - Data Toggle, for transmission transfers"] pub type DtogTxR = crate :: BitReader ;
#[doc = "Field `DTOG_TX` writer - Data Toggle, for transmission transfers"] pub type DtogTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_TX` reader - Correct Transfer for transmission"] pub type CtrTxR = crate :: BitReader ;
#[doc = "Field `CTR_TX` writer - Correct Transfer for transmission"] pub type CtrTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_KIND` reader - Endpoint kind"] pub type EpKindR = crate :: BitReader ;
#[doc = "Field `EP_KIND` writer - Endpoint kind"] pub type EpKindW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_TYPE` reader - Endpoint type"] pub type EpTypeR = crate :: FieldReader ;
#[doc = "Field `EP_TYPE` writer - Endpoint type"] pub type EpTypeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `SETUP` reader - Setup transaction completed"] pub type SetupR = crate :: BitReader ;
#[doc = "Field `SETUP` writer - Setup transaction completed"] pub type SetupW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STAT_RX` reader - Status bits, for reception transfers"] pub type StatRxR = crate :: FieldReader ;
#[doc = "Field `STAT_RX` writer - Status bits, for reception transfers"] pub type StatRxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_RX` reader - Data Toggle, for reception transfers"] pub type DtogRxR = crate :: BitReader ;
#[doc = "Field `DTOG_RX` writer - Data Toggle, for reception transfers"] pub type DtogRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_RX` reader - Correct transfer for reception"] pub type CtrRxR = crate :: BitReader ;
#[doc = "Field `CTR_RX` writer - Correct transfer for reception"] pub type CtrRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& self) -> EaR { EaR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& self) -> StatTxR { StatTxR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& self) -> DtogTxR { DtogTxR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& self) -> CtrTxR { CtrTxR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& self) -> EpKindR { EpKindR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& self) -> EpTypeR { EpTypeR :: new (((self . bits >> 9) & 3) as u8) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& self) -> SetupR { SetupR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& self) -> StatRxR { StatRxR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& self) -> DtogRxR { DtogRxR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& self) -> CtrRxR { CtrRxR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& mut self) -> EaW < '_ , Ep4rSpec > { EaW :: new (self , 0) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& mut self) -> StatTxW < '_ , Ep4rSpec > { StatTxW :: new (self , 4) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& mut self) -> DtogTxW < '_ , Ep4rSpec > { DtogTxW :: new (self , 6) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& mut self) -> CtrTxW < '_ , Ep4rSpec > { CtrTxW :: new (self , 7) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& mut self) -> EpKindW < '_ , Ep4rSpec > { EpKindW :: new (self , 8) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& mut self) -> EpTypeW < '_ , Ep4rSpec > { EpTypeW :: new (self , 9) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& mut self) -> SetupW < '_ , Ep4rSpec > { SetupW :: new (self , 11) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& mut self) -> StatRxW < '_ , Ep4rSpec > { StatRxW :: new (self , 12) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& mut self) -> DtogRxW < '_ , Ep4rSpec > { DtogRxW :: new (self , 14) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& mut self) -> CtrRxW < '_ , Ep4rSpec > { CtrRxW :: new (self , 15) } }
#[doc = "endpoint 4 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep4r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep4r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ep4rSpec ; impl crate :: RegisterSpec for Ep4rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ep4r::R`](R) reader structure"] impl crate :: Readable for Ep4rSpec { }
#[doc = "`write(|w| ..)` method takes [`ep4r::W`](W) writer structure"] impl crate :: Writable for Ep4rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EP4R to value 0"] impl crate :: Resettable for Ep4rSpec { } }
#[doc = "EP5R (rw) register accessor: endpoint 5 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep5r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep5r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ep5r`] module"]
#[doc (alias = "EP5R")] pub type Ep5r = crate :: Reg < ep5r :: Ep5rSpec > ;
#[doc = "endpoint 5 register"] pub mod ep5r {
#[doc = "Register `EP5R` reader"] pub type R = crate :: R < Ep5rSpec > ;
#[doc = "Register `EP5R` writer"] pub type W = crate :: W < Ep5rSpec > ;
#[doc = "Field `EA` reader - Endpoint address"] pub type EaR = crate :: FieldReader ;
#[doc = "Field `EA` writer - Endpoint address"] pub type EaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `STAT_TX` reader - Status bits, for transmission transfers"] pub type StatTxR = crate :: FieldReader ;
#[doc = "Field `STAT_TX` writer - Status bits, for transmission transfers"] pub type StatTxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_TX` reader - Data Toggle, for transmission transfers"] pub type DtogTxR = crate :: BitReader ;
#[doc = "Field `DTOG_TX` writer - Data Toggle, for transmission transfers"] pub type DtogTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_TX` reader - Correct Transfer for transmission"] pub type CtrTxR = crate :: BitReader ;
#[doc = "Field `CTR_TX` writer - Correct Transfer for transmission"] pub type CtrTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_KIND` reader - Endpoint kind"] pub type EpKindR = crate :: BitReader ;
#[doc = "Field `EP_KIND` writer - Endpoint kind"] pub type EpKindW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_TYPE` reader - Endpoint type"] pub type EpTypeR = crate :: FieldReader ;
#[doc = "Field `EP_TYPE` writer - Endpoint type"] pub type EpTypeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `SETUP` reader - Setup transaction completed"] pub type SetupR = crate :: BitReader ;
#[doc = "Field `SETUP` writer - Setup transaction completed"] pub type SetupW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STAT_RX` reader - Status bits, for reception transfers"] pub type StatRxR = crate :: FieldReader ;
#[doc = "Field `STAT_RX` writer - Status bits, for reception transfers"] pub type StatRxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_RX` reader - Data Toggle, for reception transfers"] pub type DtogRxR = crate :: BitReader ;
#[doc = "Field `DTOG_RX` writer - Data Toggle, for reception transfers"] pub type DtogRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_RX` reader - Correct transfer for reception"] pub type CtrRxR = crate :: BitReader ;
#[doc = "Field `CTR_RX` writer - Correct transfer for reception"] pub type CtrRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& self) -> EaR { EaR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& self) -> StatTxR { StatTxR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& self) -> DtogTxR { DtogTxR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& self) -> CtrTxR { CtrTxR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& self) -> EpKindR { EpKindR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& self) -> EpTypeR { EpTypeR :: new (((self . bits >> 9) & 3) as u8) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& self) -> SetupR { SetupR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& self) -> StatRxR { StatRxR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& self) -> DtogRxR { DtogRxR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& self) -> CtrRxR { CtrRxR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& mut self) -> EaW < '_ , Ep5rSpec > { EaW :: new (self , 0) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& mut self) -> StatTxW < '_ , Ep5rSpec > { StatTxW :: new (self , 4) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& mut self) -> DtogTxW < '_ , Ep5rSpec > { DtogTxW :: new (self , 6) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& mut self) -> CtrTxW < '_ , Ep5rSpec > { CtrTxW :: new (self , 7) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& mut self) -> EpKindW < '_ , Ep5rSpec > { EpKindW :: new (self , 8) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& mut self) -> EpTypeW < '_ , Ep5rSpec > { EpTypeW :: new (self , 9) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& mut self) -> SetupW < '_ , Ep5rSpec > { SetupW :: new (self , 11) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& mut self) -> StatRxW < '_ , Ep5rSpec > { StatRxW :: new (self , 12) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& mut self) -> DtogRxW < '_ , Ep5rSpec > { DtogRxW :: new (self , 14) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& mut self) -> CtrRxW < '_ , Ep5rSpec > { CtrRxW :: new (self , 15) } }
#[doc = "endpoint 5 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep5r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep5r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ep5rSpec ; impl crate :: RegisterSpec for Ep5rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ep5r::R`](R) reader structure"] impl crate :: Readable for Ep5rSpec { }
#[doc = "`write(|w| ..)` method takes [`ep5r::W`](W) writer structure"] impl crate :: Writable for Ep5rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EP5R to value 0"] impl crate :: Resettable for Ep5rSpec { } }
#[doc = "EP6R (rw) register accessor: endpoint 6 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep6r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep6r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ep6r`] module"]
#[doc (alias = "EP6R")] pub type Ep6r = crate :: Reg < ep6r :: Ep6rSpec > ;
#[doc = "endpoint 6 register"] pub mod ep6r {
#[doc = "Register `EP6R` reader"] pub type R = crate :: R < Ep6rSpec > ;
#[doc = "Register `EP6R` writer"] pub type W = crate :: W < Ep6rSpec > ;
#[doc = "Field `EA` reader - Endpoint address"] pub type EaR = crate :: FieldReader ;
#[doc = "Field `EA` writer - Endpoint address"] pub type EaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `STAT_TX` reader - Status bits, for transmission transfers"] pub type StatTxR = crate :: FieldReader ;
#[doc = "Field `STAT_TX` writer - Status bits, for transmission transfers"] pub type StatTxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_TX` reader - Data Toggle, for transmission transfers"] pub type DtogTxR = crate :: BitReader ;
#[doc = "Field `DTOG_TX` writer - Data Toggle, for transmission transfers"] pub type DtogTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_TX` reader - Correct Transfer for transmission"] pub type CtrTxR = crate :: BitReader ;
#[doc = "Field `CTR_TX` writer - Correct Transfer for transmission"] pub type CtrTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_KIND` reader - Endpoint kind"] pub type EpKindR = crate :: BitReader ;
#[doc = "Field `EP_KIND` writer - Endpoint kind"] pub type EpKindW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_TYPE` reader - Endpoint type"] pub type EpTypeR = crate :: FieldReader ;
#[doc = "Field `EP_TYPE` writer - Endpoint type"] pub type EpTypeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `SETUP` reader - Setup transaction completed"] pub type SetupR = crate :: BitReader ;
#[doc = "Field `SETUP` writer - Setup transaction completed"] pub type SetupW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STAT_RX` reader - Status bits, for reception transfers"] pub type StatRxR = crate :: FieldReader ;
#[doc = "Field `STAT_RX` writer - Status bits, for reception transfers"] pub type StatRxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_RX` reader - Data Toggle, for reception transfers"] pub type DtogRxR = crate :: BitReader ;
#[doc = "Field `DTOG_RX` writer - Data Toggle, for reception transfers"] pub type DtogRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_RX` reader - Correct transfer for reception"] pub type CtrRxR = crate :: BitReader ;
#[doc = "Field `CTR_RX` writer - Correct transfer for reception"] pub type CtrRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& self) -> EaR { EaR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& self) -> StatTxR { StatTxR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& self) -> DtogTxR { DtogTxR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& self) -> CtrTxR { CtrTxR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& self) -> EpKindR { EpKindR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& self) -> EpTypeR { EpTypeR :: new (((self . bits >> 9) & 3) as u8) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& self) -> SetupR { SetupR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& self) -> StatRxR { StatRxR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& self) -> DtogRxR { DtogRxR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& self) -> CtrRxR { CtrRxR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& mut self) -> EaW < '_ , Ep6rSpec > { EaW :: new (self , 0) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& mut self) -> StatTxW < '_ , Ep6rSpec > { StatTxW :: new (self , 4) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& mut self) -> DtogTxW < '_ , Ep6rSpec > { DtogTxW :: new (self , 6) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& mut self) -> CtrTxW < '_ , Ep6rSpec > { CtrTxW :: new (self , 7) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& mut self) -> EpKindW < '_ , Ep6rSpec > { EpKindW :: new (self , 8) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& mut self) -> EpTypeW < '_ , Ep6rSpec > { EpTypeW :: new (self , 9) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& mut self) -> SetupW < '_ , Ep6rSpec > { SetupW :: new (self , 11) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& mut self) -> StatRxW < '_ , Ep6rSpec > { StatRxW :: new (self , 12) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& mut self) -> DtogRxW < '_ , Ep6rSpec > { DtogRxW :: new (self , 14) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& mut self) -> CtrRxW < '_ , Ep6rSpec > { CtrRxW :: new (self , 15) } }
#[doc = "endpoint 6 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep6r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep6r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ep6rSpec ; impl crate :: RegisterSpec for Ep6rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ep6r::R`](R) reader structure"] impl crate :: Readable for Ep6rSpec { }
#[doc = "`write(|w| ..)` method takes [`ep6r::W`](W) writer structure"] impl crate :: Writable for Ep6rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EP6R to value 0"] impl crate :: Resettable for Ep6rSpec { } }
#[doc = "EP7R (rw) register accessor: endpoint 7 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep7r::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep7r::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ep7r`] module"]
#[doc (alias = "EP7R")] pub type Ep7r = crate :: Reg < ep7r :: Ep7rSpec > ;
#[doc = "endpoint 7 register"] pub mod ep7r {
#[doc = "Register `EP7R` reader"] pub type R = crate :: R < Ep7rSpec > ;
#[doc = "Register `EP7R` writer"] pub type W = crate :: W < Ep7rSpec > ;
#[doc = "Field `EA` reader - Endpoint address"] pub type EaR = crate :: FieldReader ;
#[doc = "Field `EA` writer - Endpoint address"] pub type EaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `STAT_TX` reader - Status bits, for transmission transfers"] pub type StatTxR = crate :: FieldReader ;
#[doc = "Field `STAT_TX` writer - Status bits, for transmission transfers"] pub type StatTxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_TX` reader - Data Toggle, for transmission transfers"] pub type DtogTxR = crate :: BitReader ;
#[doc = "Field `DTOG_TX` writer - Data Toggle, for transmission transfers"] pub type DtogTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_TX` reader - Correct Transfer for transmission"] pub type CtrTxR = crate :: BitReader ;
#[doc = "Field `CTR_TX` writer - Correct Transfer for transmission"] pub type CtrTxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_KIND` reader - Endpoint kind"] pub type EpKindR = crate :: BitReader ;
#[doc = "Field `EP_KIND` writer - Endpoint kind"] pub type EpKindW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EP_TYPE` reader - Endpoint type"] pub type EpTypeR = crate :: FieldReader ;
#[doc = "Field `EP_TYPE` writer - Endpoint type"] pub type EpTypeW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `SETUP` reader - Setup transaction completed"] pub type SetupR = crate :: BitReader ;
#[doc = "Field `SETUP` writer - Setup transaction completed"] pub type SetupW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STAT_RX` reader - Status bits, for reception transfers"] pub type StatRxR = crate :: FieldReader ;
#[doc = "Field `STAT_RX` writer - Status bits, for reception transfers"] pub type StatRxW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DTOG_RX` reader - Data Toggle, for reception transfers"] pub type DtogRxR = crate :: BitReader ;
#[doc = "Field `DTOG_RX` writer - Data Toggle, for reception transfers"] pub type DtogRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR_RX` reader - Correct transfer for reception"] pub type CtrRxR = crate :: BitReader ;
#[doc = "Field `CTR_RX` writer - Correct transfer for reception"] pub type CtrRxW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& self) -> EaR { EaR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& self) -> StatTxR { StatTxR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& self) -> DtogTxR { DtogTxR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& self) -> CtrTxR { CtrTxR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& self) -> EpKindR { EpKindR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& self) -> EpTypeR { EpTypeR :: new (((self . bits >> 9) & 3) as u8) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& self) -> SetupR { SetupR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& self) -> StatRxR { StatRxR :: new (((self . bits >> 12) & 3) as u8) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& self) -> DtogRxR { DtogRxR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& self) -> CtrRxR { CtrRxR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:3 - Endpoint address"]
#[inline (always)] pub fn ea (& mut self) -> EaW < '_ , Ep7rSpec > { EaW :: new (self , 0) }
#[doc = "Bits 4:5 - Status bits, for transmission transfers"]
#[inline (always)] pub fn stat_tx (& mut self) -> StatTxW < '_ , Ep7rSpec > { StatTxW :: new (self , 4) }
#[doc = "Bit 6 - Data Toggle, for transmission transfers"]
#[inline (always)] pub fn dtog_tx (& mut self) -> DtogTxW < '_ , Ep7rSpec > { DtogTxW :: new (self , 6) }
#[doc = "Bit 7 - Correct Transfer for transmission"]
#[inline (always)] pub fn ctr_tx (& mut self) -> CtrTxW < '_ , Ep7rSpec > { CtrTxW :: new (self , 7) }
#[doc = "Bit 8 - Endpoint kind"]
#[inline (always)] pub fn ep_kind (& mut self) -> EpKindW < '_ , Ep7rSpec > { EpKindW :: new (self , 8) }
#[doc = "Bits 9:10 - Endpoint type"]
#[inline (always)] pub fn ep_type (& mut self) -> EpTypeW < '_ , Ep7rSpec > { EpTypeW :: new (self , 9) }
#[doc = "Bit 11 - Setup transaction completed"]
#[inline (always)] pub fn setup (& mut self) -> SetupW < '_ , Ep7rSpec > { SetupW :: new (self , 11) }
#[doc = "Bits 12:13 - Status bits, for reception transfers"]
#[inline (always)] pub fn stat_rx (& mut self) -> StatRxW < '_ , Ep7rSpec > { StatRxW :: new (self , 12) }
#[doc = "Bit 14 - Data Toggle, for reception transfers"]
#[inline (always)] pub fn dtog_rx (& mut self) -> DtogRxW < '_ , Ep7rSpec > { DtogRxW :: new (self , 14) }
#[doc = "Bit 15 - Correct transfer for reception"]
#[inline (always)] pub fn ctr_rx (& mut self) -> CtrRxW < '_ , Ep7rSpec > { CtrRxW :: new (self , 15) } }
#[doc = "endpoint 7 register\n\nYou can [`read`](crate::Reg::read) this register and get [`ep7r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ep7r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Ep7rSpec ; impl crate :: RegisterSpec for Ep7rSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ep7r::R`](R) reader structure"] impl crate :: Readable for Ep7rSpec { }
#[doc = "`write(|w| ..)` method takes [`ep7r::W`](W) writer structure"] impl crate :: Writable for Ep7rSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets EP7R to value 0"] impl crate :: Resettable for Ep7rSpec { } }
#[doc = "CNTR (rw) register accessor: control register\n\nYou can [`read`](crate::Reg::read) this register and get [`cntr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cntr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cntr`] module"]
#[doc (alias = "CNTR")] pub type Cntr = crate :: Reg < cntr :: CntrSpec > ;
#[doc = "control register"] pub mod cntr {
#[doc = "Register `CNTR` reader"] pub type R = crate :: R < CntrSpec > ;
#[doc = "Register `CNTR` writer"] pub type W = crate :: W < CntrSpec > ;
#[doc = "Field `FRES` reader - Force USB Reset"] pub type FresR = crate :: BitReader ;
#[doc = "Field `FRES` writer - Force USB Reset"] pub type FresW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PDWN` reader - Power down"] pub type PdwnR = crate :: BitReader ;
#[doc = "Field `PDWN` writer - Power down"] pub type PdwnW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LPMODE` reader - Low-power mode"] pub type LpmodeR = crate :: BitReader ;
#[doc = "Field `LPMODE` writer - Low-power mode"] pub type LpmodeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FSUSP` reader - Force suspend"] pub type FsuspR = crate :: BitReader ;
#[doc = "Field `FSUSP` writer - Force suspend"] pub type FsuspW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RESUME` reader - Resume request"] pub type ResumeR = crate :: BitReader ;
#[doc = "Field `RESUME` writer - Resume request"] pub type ResumeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ESOFM` reader - Expected start of frame interrupt mask"] pub type EsofmR = crate :: BitReader ;
#[doc = "Field `ESOFM` writer - Expected start of frame interrupt mask"] pub type EsofmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SOFM` reader - Start of frame interrupt mask"] pub type SofmR = crate :: BitReader ;
#[doc = "Field `SOFM` writer - Start of frame interrupt mask"] pub type SofmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RESETM` reader - USB reset interrupt mask"] pub type ResetmR = crate :: BitReader ;
#[doc = "Field `RESETM` writer - USB reset interrupt mask"] pub type ResetmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SUSPM` reader - Suspend mode interrupt mask"] pub type SuspmR = crate :: BitReader ;
#[doc = "Field `SUSPM` writer - Suspend mode interrupt mask"] pub type SuspmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WKUPM` reader - Wakeup interrupt mask"] pub type WkupmR = crate :: BitReader ;
#[doc = "Field `WKUPM` writer - Wakeup interrupt mask"] pub type WkupmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ERRM` reader - Error interrupt mask"] pub type ErrmR = crate :: BitReader ;
#[doc = "Field `ERRM` writer - Error interrupt mask"] pub type ErrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PMAOVRM` reader - Packet memory area over / underrun interrupt mask"] pub type PmaovrmR = crate :: BitReader ;
#[doc = "Field `PMAOVRM` writer - Packet memory area over / underrun interrupt mask"] pub type PmaovrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTRM` reader - Correct transfer interrupt mask"] pub type CtrmR = crate :: BitReader ;
#[doc = "Field `CTRM` writer - Correct transfer interrupt mask"] pub type CtrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Force USB Reset"]
#[inline (always)] pub fn fres (& self) -> FresR { FresR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Power down"]
#[inline (always)] pub fn pdwn (& self) -> PdwnR { PdwnR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Low-power mode"]
#[inline (always)] pub fn lpmode (& self) -> LpmodeR { LpmodeR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Force suspend"]
#[inline (always)] pub fn fsusp (& self) -> FsuspR { FsuspR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Resume request"]
#[inline (always)] pub fn resume (& self) -> ResumeR { ResumeR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 8 - Expected start of frame interrupt mask"]
#[inline (always)] pub fn esofm (& self) -> EsofmR { EsofmR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Start of frame interrupt mask"]
#[inline (always)] pub fn sofm (& self) -> SofmR { SofmR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - USB reset interrupt mask"]
#[inline (always)] pub fn resetm (& self) -> ResetmR { ResetmR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Suspend mode interrupt mask"]
#[inline (always)] pub fn suspm (& self) -> SuspmR { SuspmR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Wakeup interrupt mask"]
#[inline (always)] pub fn wkupm (& self) -> WkupmR { WkupmR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Error interrupt mask"]
#[inline (always)] pub fn errm (& self) -> ErrmR { ErrmR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Packet memory area over / underrun interrupt mask"]
#[inline (always)] pub fn pmaovrm (& self) -> PmaovrmR { PmaovrmR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Correct transfer interrupt mask"]
#[inline (always)] pub fn ctrm (& self) -> CtrmR { CtrmR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Force USB Reset"]
#[inline (always)] pub fn fres (& mut self) -> FresW < '_ , CntrSpec > { FresW :: new (self , 0) }
#[doc = "Bit 1 - Power down"]
#[inline (always)] pub fn pdwn (& mut self) -> PdwnW < '_ , CntrSpec > { PdwnW :: new (self , 1) }
#[doc = "Bit 2 - Low-power mode"]
#[inline (always)] pub fn lpmode (& mut self) -> LpmodeW < '_ , CntrSpec > { LpmodeW :: new (self , 2) }
#[doc = "Bit 3 - Force suspend"]
#[inline (always)] pub fn fsusp (& mut self) -> FsuspW < '_ , CntrSpec > { FsuspW :: new (self , 3) }
#[doc = "Bit 4 - Resume request"]
#[inline (always)] pub fn resume (& mut self) -> ResumeW < '_ , CntrSpec > { ResumeW :: new (self , 4) }
#[doc = "Bit 8 - Expected start of frame interrupt mask"]
#[inline (always)] pub fn esofm (& mut self) -> EsofmW < '_ , CntrSpec > { EsofmW :: new (self , 8) }
#[doc = "Bit 9 - Start of frame interrupt mask"]
#[inline (always)] pub fn sofm (& mut self) -> SofmW < '_ , CntrSpec > { SofmW :: new (self , 9) }
#[doc = "Bit 10 - USB reset interrupt mask"]
#[inline (always)] pub fn resetm (& mut self) -> ResetmW < '_ , CntrSpec > { ResetmW :: new (self , 10) }
#[doc = "Bit 11 - Suspend mode interrupt mask"]
#[inline (always)] pub fn suspm (& mut self) -> SuspmW < '_ , CntrSpec > { SuspmW :: new (self , 11) }
#[doc = "Bit 12 - Wakeup interrupt mask"]
#[inline (always)] pub fn wkupm (& mut self) -> WkupmW < '_ , CntrSpec > { WkupmW :: new (self , 12) }
#[doc = "Bit 13 - Error interrupt mask"]
#[inline (always)] pub fn errm (& mut self) -> ErrmW < '_ , CntrSpec > { ErrmW :: new (self , 13) }
#[doc = "Bit 14 - Packet memory area over / underrun interrupt mask"]
#[inline (always)] pub fn pmaovrm (& mut self) -> PmaovrmW < '_ , CntrSpec > { PmaovrmW :: new (self , 14) }
#[doc = "Bit 15 - Correct transfer interrupt mask"]
#[inline (always)] pub fn ctrm (& mut self) -> CtrmW < '_ , CntrSpec > { CtrmW :: new (self , 15) } }
#[doc = "control register\n\nYou can [`read`](crate::Reg::read) this register and get [`cntr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cntr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CntrSpec ; impl crate :: RegisterSpec for CntrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`cntr::R`](R) reader structure"] impl crate :: Readable for CntrSpec { }
#[doc = "`write(|w| ..)` method takes [`cntr::W`](W) writer structure"] impl crate :: Writable for CntrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CNTR to value 0x03"] impl crate :: Resettable for CntrSpec { const RESET_VALUE : u32 = 0x03 ; } }
#[doc = "ISTR (rw) register accessor: interrupt status register\n\nYou can [`read`](crate::Reg::read) this register and get [`istr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`istr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@istr`] module"]
#[doc (alias = "ISTR")] pub type Istr = crate :: Reg < istr :: IstrSpec > ;
#[doc = "interrupt status register"] pub mod istr {
#[doc = "Register `ISTR` reader"] pub type R = crate :: R < IstrSpec > ;
#[doc = "Register `ISTR` writer"] pub type W = crate :: W < IstrSpec > ;
#[doc = "Field `EP_ID` reader - Endpoint Identifier"] pub type EpIdR = crate :: FieldReader ;
#[doc = "Field `EP_ID` writer - Endpoint Identifier"] pub type EpIdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `DIR` reader - Direction of transaction"] pub type DirR = crate :: BitReader ;
#[doc = "Field `DIR` writer - Direction of transaction"] pub type DirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ESOF` reader - Expected start frame"] pub type EsofR = crate :: BitReader ;
#[doc = "Field `ESOF` writer - Expected start frame"] pub type EsofW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SOF` reader - start of frame"] pub type SofR = crate :: BitReader ;
#[doc = "Field `SOF` writer - start of frame"] pub type SofW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RESET` reader - reset request"] pub type ResetR = crate :: BitReader ;
#[doc = "Field `RESET` writer - reset request"] pub type ResetW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SUSP` reader - Suspend mode request"] pub type SuspR = crate :: BitReader ;
#[doc = "Field `SUSP` writer - Suspend mode request"] pub type SuspW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WKUP` reader - Wakeup"] pub type WkupR = crate :: BitReader ;
#[doc = "Field `WKUP` writer - Wakeup"] pub type WkupW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ERR` reader - Error"] pub type ErrR = crate :: BitReader ;
#[doc = "Field `ERR` writer - Error"] pub type ErrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PMAOVR` reader - Packet memory area over / underrun"] pub type PmaovrR = crate :: BitReader ;
#[doc = "Field `PMAOVR` writer - Packet memory area over / underrun"] pub type PmaovrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTR` reader - Correct transfer"] pub type CtrR = crate :: BitReader ;
#[doc = "Field `CTR` writer - Correct transfer"] pub type CtrW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:3 - Endpoint Identifier"]
#[inline (always)] pub fn ep_id (& self) -> EpIdR { EpIdR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bit 4 - Direction of transaction"]
#[inline (always)] pub fn dir (& self) -> DirR { DirR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 8 - Expected start frame"]
#[inline (always)] pub fn esof (& self) -> EsofR { EsofR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - start of frame"]
#[inline (always)] pub fn sof (& self) -> SofR { SofR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - reset request"]
#[inline (always)] pub fn reset (& self) -> ResetR { ResetR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Suspend mode request"]
#[inline (always)] pub fn susp (& self) -> SuspR { SuspR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Wakeup"]
#[inline (always)] pub fn wkup (& self) -> WkupR { WkupR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Error"]
#[inline (always)] pub fn err (& self) -> ErrR { ErrR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Packet memory area over / underrun"]
#[inline (always)] pub fn pmaovr (& self) -> PmaovrR { PmaovrR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Correct transfer"]
#[inline (always)] pub fn ctr (& self) -> CtrR { CtrR :: new (((self . bits >> 15) & 1) != 0) } } impl W {
#[doc = "Bits 0:3 - Endpoint Identifier"]
#[inline (always)] pub fn ep_id (& mut self) -> EpIdW < '_ , IstrSpec > { EpIdW :: new (self , 0) }
#[doc = "Bit 4 - Direction of transaction"]
#[inline (always)] pub fn dir (& mut self) -> DirW < '_ , IstrSpec > { DirW :: new (self , 4) }
#[doc = "Bit 8 - Expected start frame"]
#[inline (always)] pub fn esof (& mut self) -> EsofW < '_ , IstrSpec > { EsofW :: new (self , 8) }
#[doc = "Bit 9 - start of frame"]
#[inline (always)] pub fn sof (& mut self) -> SofW < '_ , IstrSpec > { SofW :: new (self , 9) }
#[doc = "Bit 10 - reset request"]
#[inline (always)] pub fn reset (& mut self) -> ResetW < '_ , IstrSpec > { ResetW :: new (self , 10) }
#[doc = "Bit 11 - Suspend mode request"]
#[inline (always)] pub fn susp (& mut self) -> SuspW < '_ , IstrSpec > { SuspW :: new (self , 11) }
#[doc = "Bit 12 - Wakeup"]
#[inline (always)] pub fn wkup (& mut self) -> WkupW < '_ , IstrSpec > { WkupW :: new (self , 12) }
#[doc = "Bit 13 - Error"]
#[inline (always)] pub fn err (& mut self) -> ErrW < '_ , IstrSpec > { ErrW :: new (self , 13) }
#[doc = "Bit 14 - Packet memory area over / underrun"]
#[inline (always)] pub fn pmaovr (& mut self) -> PmaovrW < '_ , IstrSpec > { PmaovrW :: new (self , 14) }
#[doc = "Bit 15 - Correct transfer"]
#[inline (always)] pub fn ctr (& mut self) -> CtrW < '_ , IstrSpec > { CtrW :: new (self , 15) } }
#[doc = "interrupt status register\n\nYou can [`read`](crate::Reg::read) this register and get [`istr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`istr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct IstrSpec ; impl crate :: RegisterSpec for IstrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`istr::R`](R) reader structure"] impl crate :: Readable for IstrSpec { }
#[doc = "`write(|w| ..)` method takes [`istr::W`](W) writer structure"] impl crate :: Writable for IstrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets ISTR to value 0"] impl crate :: Resettable for IstrSpec { } }
#[doc = "FNR (r) register accessor: frame number register\n\nYou can [`read`](crate::Reg::read) this register and get [`fnr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fnr`] module"]
#[doc (alias = "FNR")] pub type Fnr = crate :: Reg < fnr :: FnrSpec > ;
#[doc = "frame number register"] pub mod fnr {
#[doc = "Register `FNR` reader"] pub type R = crate :: R < FnrSpec > ;
#[doc = "Field `FN` reader - Frame number"] pub type FnR = crate :: FieldReader < u16 > ;
#[doc = "Field `LSOF` reader - Lost SOF"] pub type LsofR = crate :: FieldReader ;
#[doc = "Field `LCK` reader - Locked"] pub type LckR = crate :: BitReader ;
#[doc = "Field `RXDM` reader - Receive data - line status"] pub type RxdmR = crate :: BitReader ;
#[doc = "Field `RXDP` reader - Receive data + line status"] pub type RxdpR = crate :: BitReader ; impl R {
#[doc = "Bits 0:10 - Frame number"]
#[inline (always)] pub fn fn_ (& self) -> FnR { FnR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bits 11:12 - Lost SOF"]
#[inline (always)] pub fn lsof (& self) -> LsofR { LsofR :: new (((self . bits >> 11) & 3) as u8) }
#[doc = "Bit 13 - Locked"]
#[inline (always)] pub fn lck (& self) -> LckR { LckR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Receive data - line status"]
#[inline (always)] pub fn rxdm (& self) -> RxdmR { RxdmR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Receive data + line status"]
#[inline (always)] pub fn rxdp (& self) -> RxdpR { RxdpR :: new (((self . bits >> 15) & 1) != 0) } }
#[doc = "frame number register\n\nYou can [`read`](crate::Reg::read) this register and get [`fnr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FnrSpec ; impl crate :: RegisterSpec for FnrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fnr::R`](R) reader structure"] impl crate :: Readable for FnrSpec { }
#[doc = "`reset()` method sets FNR to value 0"] impl crate :: Resettable for FnrSpec { } }
#[doc = "DADDR (rw) register accessor: device address\n\nYou can [`read`](crate::Reg::read) this register and get [`daddr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`daddr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@daddr`] module"]
#[doc (alias = "DADDR")] pub type Daddr = crate :: Reg < daddr :: DaddrSpec > ;
#[doc = "device address"] pub mod daddr {
#[doc = "Register `DADDR` reader"] pub type R = crate :: R < DaddrSpec > ;
#[doc = "Register `DADDR` writer"] pub type W = crate :: W < DaddrSpec > ;
#[doc = "Field `ADD` reader - Device address"] pub type AddR = crate :: FieldReader ;
#[doc = "Field `ADD` writer - Device address"] pub type AddW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `EF` reader - Enable function"] pub type EfR = crate :: BitReader ;
#[doc = "Field `EF` writer - Enable function"] pub type EfW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:6 - Device address"]
#[inline (always)] pub fn add (& self) -> AddR { AddR :: new ((self . bits & 0x7f) as u8) }
#[doc = "Bit 7 - Enable function"]
#[inline (always)] pub fn ef (& self) -> EfR { EfR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bits 0:6 - Device address"]
#[inline (always)] pub fn add (& mut self) -> AddW < '_ , DaddrSpec > { AddW :: new (self , 0) }
#[doc = "Bit 7 - Enable function"]
#[inline (always)] pub fn ef (& mut self) -> EfW < '_ , DaddrSpec > { EfW :: new (self , 7) } }
#[doc = "device address\n\nYou can [`read`](crate::Reg::read) this register and get [`daddr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`daddr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DaddrSpec ; impl crate :: RegisterSpec for DaddrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`daddr::R`](R) reader structure"] impl crate :: Readable for DaddrSpec { }
#[doc = "`write(|w| ..)` method takes [`daddr::W`](W) writer structure"] impl crate :: Writable for DaddrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DADDR to value 0"] impl crate :: Resettable for DaddrSpec { } }
#[doc = "BTABLE (rw) register accessor: Buffer table address\n\nYou can [`read`](crate::Reg::read) this register and get [`btable::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`btable::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@btable`] module"]
#[doc (alias = "BTABLE")] pub type Btable = crate :: Reg < btable :: BtableSpec > ;
#[doc = "Buffer table address"] pub mod btable {
#[doc = "Register `BTABLE` reader"] pub type R = crate :: R < BtableSpec > ;
#[doc = "Register `BTABLE` writer"] pub type W = crate :: W < BtableSpec > ;
#[doc = "Field `BTABLE` reader - Buffer table"] pub type BtableR = crate :: FieldReader < u16 > ;
#[doc = "Field `BTABLE` writer - Buffer table"] pub type BtableW < 'a , REG > = crate :: FieldWriter < 'a , REG , 13 , u16 > ; impl R {
#[doc = "Bits 3:15 - Buffer table"]
#[inline (always)] pub fn btable (& self) -> BtableR { BtableR :: new (((self . bits >> 3) & 0x1fff) as u16) } } impl W {
#[doc = "Bits 3:15 - Buffer table"]
#[inline (always)] pub fn btable (& mut self) -> BtableW < '_ , BtableSpec > { BtableW :: new (self , 3) } }
#[doc = "Buffer table address\n\nYou can [`read`](crate::Reg::read) this register and get [`btable::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`btable::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct BtableSpec ; impl crate :: RegisterSpec for BtableSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`btable::R`](R) reader structure"] impl crate :: Readable for BtableSpec { }
#[doc = "`write(|w| ..)` method takes [`btable::W`](W) writer structure"] impl crate :: Writable for BtableSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets BTABLE to value 0"] impl crate :: Resettable for BtableSpec { } } }
#[doc = "USB on the go full speed"] pub type OtgFsDevice = crate :: Periph < otg_fs_device :: RegisterBlock , 0x5000_0800 > ; impl core :: fmt :: Debug for OtgFsDevice { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("OtgFsDevice") . finish () } }
#[doc = "USB on the go full speed"] pub mod otg_fs_device {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { fs_dcfg : FsDcfg , fs_dctl : FsDctl , fs_dsts : FsDsts , _reserved3 : [u8 ; 0x04] , fs_diepmsk : FsDiepmsk , fs_doepmsk : FsDoepmsk , fs_daint : FsDaint , fs_daintmsk : FsDaintmsk , _reserved7 : [u8 ; 0x08] , dvbusdis : Dvbusdis , dvbuspulse : Dvbuspulse , _reserved9 : [u8 ; 0x04] , diepempmsk : Diepempmsk , _reserved10 : [u8 ; 0xc8] , fs_diepctl0 : FsDiepctl0 , _reserved11 : [u8 ; 0x04] , diepint0 : Diepint0 , _reserved12 : [u8 ; 0x04] , dieptsiz0 : Dieptsiz0 , _reserved13 : [u8 ; 0x04] , dtxfsts0 : Dtxfsts0 , _reserved14 : [u8 ; 0x04] , diepctl1 : Diepctl1 , _reserved15 : [u8 ; 0x04] , diepint1 : Diepint1 , _reserved16 : [u8 ; 0x04] , dieptsiz1 : Dieptsiz1 , _reserved17 : [u8 ; 0x04] , dtxfsts1 : Dtxfsts1 , _reserved18 : [u8 ; 0x04] , diepctl2 : Diepctl2 , _reserved19 : [u8 ; 0x04] , diepint2 : Diepint2 , _reserved20 : [u8 ; 0x04] , dieptsiz2 : Dieptsiz2 , _reserved21 : [u8 ; 0x04] , dtxfsts2 : Dtxfsts2 , _reserved22 : [u8 ; 0x04] , diepctl3 : Diepctl3 , _reserved23 : [u8 ; 0x04] , diepint3 : Diepint3 , _reserved24 : [u8 ; 0x04] , dieptsiz3 : Dieptsiz3 , _reserved25 : [u8 ; 0x04] , dtxfsts3 : Dtxfsts3 , _reserved26 : [u8 ; 0x0184] , doepctl0 : Doepctl0 , _reserved27 : [u8 ; 0x04] , doepint0 : Doepint0 , _reserved28 : [u8 ; 0x04] , doeptsiz0 : Doeptsiz0 , _reserved29 : [u8 ; 0x0c] , doepctl1 : Doepctl1 , _reserved30 : [u8 ; 0x04] , doepint1 : Doepint1 , _reserved31 : [u8 ; 0x04] , doeptsiz1 : Doeptsiz1 , _reserved32 : [u8 ; 0x0c] , doepctl2 : Doepctl2 , _reserved33 : [u8 ; 0x04] , doepint2 : Doepint2 , _reserved34 : [u8 ; 0x04] , doeptsiz2 : Doeptsiz2 , _reserved35 : [u8 ; 0x0c] , doepctl3 : Doepctl3 , _reserved36 : [u8 ; 0x04] , doepint3 : Doepint3 , _reserved37 : [u8 ; 0x04] , doeptsiz3 : Doeptsiz3 , } impl RegisterBlock {
#[doc = "0x00 - OTG_FS device configuration register (OTG_FS_DCFG)"]
#[inline (always)] pub const fn fs_dcfg (& self) -> & FsDcfg { & self . fs_dcfg }
#[doc = "0x04 - OTG_FS device control register (OTG_FS_DCTL)"]
#[inline (always)] pub const fn fs_dctl (& self) -> & FsDctl { & self . fs_dctl }
#[doc = "0x08 - OTG_FS device status register (OTG_FS_DSTS)"]
#[inline (always)] pub const fn fs_dsts (& self) -> & FsDsts { & self . fs_dsts }
#[doc = "0x10 - OTG_FS device IN endpoint common interrupt mask register (OTG_FS_DIEPMSK)"]
#[inline (always)] pub const fn fs_diepmsk (& self) -> & FsDiepmsk { & self . fs_diepmsk }
#[doc = "0x14 - OTG_FS device OUT endpoint common interrupt mask register (OTG_FS_DOEPMSK)"]
#[inline (always)] pub const fn fs_doepmsk (& self) -> & FsDoepmsk { & self . fs_doepmsk }
#[doc = "0x18 - OTG_FS device all endpoints interrupt register (OTG_FS_DAINT)"]
#[inline (always)] pub const fn fs_daint (& self) -> & FsDaint { & self . fs_daint }
#[doc = "0x1c - OTG_FS all endpoints interrupt mask register (OTG_FS_DAINTMSK)"]
#[inline (always)] pub const fn fs_daintmsk (& self) -> & FsDaintmsk { & self . fs_daintmsk }
#[doc = "0x28 - OTG_FS device VBUS discharge time register"]
#[inline (always)] pub const fn dvbusdis (& self) -> & Dvbusdis { & self . dvbusdis }
#[doc = "0x2c - OTG_FS device VBUS pulsing time register"]
#[inline (always)] pub const fn dvbuspulse (& self) -> & Dvbuspulse { & self . dvbuspulse }
#[doc = "0x34 - OTG_FS device IN endpoint FIFO empty interrupt mask register"]
#[inline (always)] pub const fn diepempmsk (& self) -> & Diepempmsk { & self . diepempmsk }
#[doc = "0x100 - OTG_FS device control IN endpoint 0 control register (OTG_FS_DIEPCTL0)"]
#[inline (always)] pub const fn fs_diepctl0 (& self) -> & FsDiepctl0 { & self . fs_diepctl0 }
#[doc = "0x108 - device endpoint-x interrupt register"]
#[inline (always)] pub const fn diepint0 (& self) -> & Diepint0 { & self . diepint0 }
#[doc = "0x110 - device endpoint-0 transfer size register"]
#[inline (always)] pub const fn dieptsiz0 (& self) -> & Dieptsiz0 { & self . dieptsiz0 }
#[doc = "0x118 - OTG_FS device IN endpoint transmit FIFO status register"]
#[inline (always)] pub const fn dtxfsts0 (& self) -> & Dtxfsts0 { & self . dtxfsts0 }
#[doc = "0x120 - OTG device endpoint-1 control register"]
#[inline (always)] pub const fn diepctl1 (& self) -> & Diepctl1 { & self . diepctl1 }
#[doc = "0x128 - device endpoint-1 interrupt register"]
#[inline (always)] pub const fn diepint1 (& self) -> & Diepint1 { & self . diepint1 }
#[doc = "0x130 - device endpoint-1 transfer size register"]
#[inline (always)] pub const fn dieptsiz1 (& self) -> & Dieptsiz1 { & self . dieptsiz1 }
#[doc = "0x138 - OTG_FS device IN endpoint transmit FIFO status register"]
#[inline (always)] pub const fn dtxfsts1 (& self) -> & Dtxfsts1 { & self . dtxfsts1 }
#[doc = "0x140 - OTG device endpoint-2 control register"]
#[inline (always)] pub const fn diepctl2 (& self) -> & Diepctl2 { & self . diepctl2 }
#[doc = "0x148 - device endpoint-2 interrupt register"]
#[inline (always)] pub const fn diepint2 (& self) -> & Diepint2 { & self . diepint2 }
#[doc = "0x150 - device endpoint-2 transfer size register"]
#[inline (always)] pub const fn dieptsiz2 (& self) -> & Dieptsiz2 { & self . dieptsiz2 }
#[doc = "0x158 - OTG_FS device IN endpoint transmit FIFO status register"]
#[inline (always)] pub const fn dtxfsts2 (& self) -> & Dtxfsts2 { & self . dtxfsts2 }
#[doc = "0x160 - OTG device endpoint-3 control register"]
#[inline (always)] pub const fn diepctl3 (& self) -> & Diepctl3 { & self . diepctl3 }
#[doc = "0x168 - device endpoint-3 interrupt register"]
#[inline (always)] pub const fn diepint3 (& self) -> & Diepint3 { & self . diepint3 }
#[doc = "0x170 - device endpoint-3 transfer size register"]
#[inline (always)] pub const fn dieptsiz3 (& self) -> & Dieptsiz3 { & self . dieptsiz3 }
#[doc = "0x178 - OTG_FS device IN endpoint transmit FIFO status register"]
#[inline (always)] pub const fn dtxfsts3 (& self) -> & Dtxfsts3 { & self . dtxfsts3 }
#[doc = "0x300 - device endpoint-0 control register"]
#[inline (always)] pub const fn doepctl0 (& self) -> & Doepctl0 { & self . doepctl0 }
#[doc = "0x308 - device endpoint-0 interrupt register"]
#[inline (always)] pub const fn doepint0 (& self) -> & Doepint0 { & self . doepint0 }
#[doc = "0x310 - device OUT endpoint-0 transfer size register"]
#[inline (always)] pub const fn doeptsiz0 (& self) -> & Doeptsiz0 { & self . doeptsiz0 }
#[doc = "0x320 - device endpoint-1 control register"]
#[inline (always)] pub const fn doepctl1 (& self) -> & Doepctl1 { & self . doepctl1 }
#[doc = "0x328 - device endpoint-1 interrupt register"]
#[inline (always)] pub const fn doepint1 (& self) -> & Doepint1 { & self . doepint1 }
#[doc = "0x330 - device OUT endpoint-1 transfer size register"]
#[inline (always)] pub const fn doeptsiz1 (& self) -> & Doeptsiz1 { & self . doeptsiz1 }
#[doc = "0x340 - device endpoint-2 control register"]
#[inline (always)] pub const fn doepctl2 (& self) -> & Doepctl2 { & self . doepctl2 }
#[doc = "0x348 - device endpoint-2 interrupt register"]
#[inline (always)] pub const fn doepint2 (& self) -> & Doepint2 { & self . doepint2 }
#[doc = "0x350 - device OUT endpoint-2 transfer size register"]
#[inline (always)] pub const fn doeptsiz2 (& self) -> & Doeptsiz2 { & self . doeptsiz2 }
#[doc = "0x360 - device endpoint-3 control register"]
#[inline (always)] pub const fn doepctl3 (& self) -> & Doepctl3 { & self . doepctl3 }
#[doc = "0x368 - device endpoint-3 interrupt register"]
#[inline (always)] pub const fn doepint3 (& self) -> & Doepint3 { & self . doepint3 }
#[doc = "0x370 - device OUT endpoint-3 transfer size register"]
#[inline (always)] pub const fn doeptsiz3 (& self) -> & Doeptsiz3 { & self . doeptsiz3 } }
#[doc = "FS_DCFG (rw) register accessor: OTG_FS device configuration register (OTG_FS_DCFG)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_dcfg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_dcfg::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_dcfg`] module"]
#[doc (alias = "FS_DCFG")] pub type FsDcfg = crate :: Reg < fs_dcfg :: FsDcfgSpec > ;
#[doc = "OTG_FS device configuration register (OTG_FS_DCFG)"] pub mod fs_dcfg {
#[doc = "Register `FS_DCFG` reader"] pub type R = crate :: R < FsDcfgSpec > ;
#[doc = "Register `FS_DCFG` writer"] pub type W = crate :: W < FsDcfgSpec > ;
#[doc = "Field `DSPD` reader - Device speed"] pub type DspdR = crate :: FieldReader ;
#[doc = "Field `DSPD` writer - Device speed"] pub type DspdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `NZLSOHSK` reader - Non-zero-length status OUT handshake"] pub type NzlsohskR = crate :: BitReader ;
#[doc = "Field `NZLSOHSK` writer - Non-zero-length status OUT handshake"] pub type NzlsohskW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DAD` reader - Device address"] pub type DadR = crate :: FieldReader ;
#[doc = "Field `DAD` writer - Device address"] pub type DadW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `PFIVL` reader - Periodic frame interval"] pub type PfivlR = crate :: FieldReader ;
#[doc = "Field `PFIVL` writer - Periodic frame interval"] pub type PfivlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:1 - Device speed"]
#[inline (always)] pub fn dspd (& self) -> DspdR { DspdR :: new ((self . bits & 3) as u8) }
#[doc = "Bit 2 - Non-zero-length status OUT handshake"]
#[inline (always)] pub fn nzlsohsk (& self) -> NzlsohskR { NzlsohskR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bits 4:10 - Device address"]
#[inline (always)] pub fn dad (& self) -> DadR { DadR :: new (((self . bits >> 4) & 0x7f) as u8) }
#[doc = "Bits 11:12 - Periodic frame interval"]
#[inline (always)] pub fn pfivl (& self) -> PfivlR { PfivlR :: new (((self . bits >> 11) & 3) as u8) } } impl W {
#[doc = "Bits 0:1 - Device speed"]
#[inline (always)] pub fn dspd (& mut self) -> DspdW < '_ , FsDcfgSpec > { DspdW :: new (self , 0) }
#[doc = "Bit 2 - Non-zero-length status OUT handshake"]
#[inline (always)] pub fn nzlsohsk (& mut self) -> NzlsohskW < '_ , FsDcfgSpec > { NzlsohskW :: new (self , 2) }
#[doc = "Bits 4:10 - Device address"]
#[inline (always)] pub fn dad (& mut self) -> DadW < '_ , FsDcfgSpec > { DadW :: new (self , 4) }
#[doc = "Bits 11:12 - Periodic frame interval"]
#[inline (always)] pub fn pfivl (& mut self) -> PfivlW < '_ , FsDcfgSpec > { PfivlW :: new (self , 11) } }
#[doc = "OTG_FS device configuration register (OTG_FS_DCFG)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_dcfg::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_dcfg::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsDcfgSpec ; impl crate :: RegisterSpec for FsDcfgSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_dcfg::R`](R) reader structure"] impl crate :: Readable for FsDcfgSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_dcfg::W`](W) writer structure"] impl crate :: Writable for FsDcfgSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_DCFG to value 0x0220_0000"] impl crate :: Resettable for FsDcfgSpec { const RESET_VALUE : u32 = 0x0220_0000 ; } }
#[doc = "FS_DCTL (rw) register accessor: OTG_FS device control register (OTG_FS_DCTL)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_dctl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_dctl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_dctl`] module"]
#[doc (alias = "FS_DCTL")] pub type FsDctl = crate :: Reg < fs_dctl :: FsDctlSpec > ;
#[doc = "OTG_FS device control register (OTG_FS_DCTL)"] pub mod fs_dctl {
#[doc = "Register `FS_DCTL` reader"] pub type R = crate :: R < FsDctlSpec > ;
#[doc = "Register `FS_DCTL` writer"] pub type W = crate :: W < FsDctlSpec > ;
#[doc = "Field `RWUSIG` reader - Remote wakeup signaling"] pub type RwusigR = crate :: BitReader ;
#[doc = "Field `RWUSIG` writer - Remote wakeup signaling"] pub type RwusigW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SDIS` reader - Soft disconnect"] pub type SdisR = crate :: BitReader ;
#[doc = "Field `SDIS` writer - Soft disconnect"] pub type SdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `GINSTS` reader - Global IN NAK status"] pub type GinstsR = crate :: BitReader ;
#[doc = "Field `GONSTS` reader - Global OUT NAK status"] pub type GonstsR = crate :: BitReader ;
#[doc = "Field `TCTL` reader - Test control"] pub type TctlR = crate :: FieldReader ;
#[doc = "Field `TCTL` writer - Test control"] pub type TctlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `SGINAK` reader - Set global IN NAK"] pub type SginakR = crate :: BitReader ;
#[doc = "Field `SGINAK` writer - Set global IN NAK"] pub type SginakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CGINAK` reader - Clear global IN NAK"] pub type CginakR = crate :: BitReader ;
#[doc = "Field `CGINAK` writer - Clear global IN NAK"] pub type CginakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SGONAK` reader - Set global OUT NAK"] pub type SgonakR = crate :: BitReader ;
#[doc = "Field `SGONAK` writer - Set global OUT NAK"] pub type SgonakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CGONAK` reader - Clear global OUT NAK"] pub type CgonakR = crate :: BitReader ;
#[doc = "Field `CGONAK` writer - Clear global OUT NAK"] pub type CgonakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `POPRGDNE` reader - Power-on programming done"] pub type PoprgdneR = crate :: BitReader ;
#[doc = "Field `POPRGDNE` writer - Power-on programming done"] pub type PoprgdneW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Remote wakeup signaling"]
#[inline (always)] pub fn rwusig (& self) -> RwusigR { RwusigR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Soft disconnect"]
#[inline (always)] pub fn sdis (& self) -> SdisR { SdisR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Global IN NAK status"]
#[inline (always)] pub fn ginsts (& self) -> GinstsR { GinstsR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Global OUT NAK status"]
#[inline (always)] pub fn gonsts (& self) -> GonstsR { GonstsR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:6 - Test control"]
#[inline (always)] pub fn tctl (& self) -> TctlR { TctlR :: new (((self . bits >> 4) & 7) as u8) }
#[doc = "Bit 7 - Set global IN NAK"]
#[inline (always)] pub fn sginak (& self) -> SginakR { SginakR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Clear global IN NAK"]
#[inline (always)] pub fn cginak (& self) -> CginakR { CginakR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Set global OUT NAK"]
#[inline (always)] pub fn sgonak (& self) -> SgonakR { SgonakR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Clear global OUT NAK"]
#[inline (always)] pub fn cgonak (& self) -> CgonakR { CgonakR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Power-on programming done"]
#[inline (always)] pub fn poprgdne (& self) -> PoprgdneR { PoprgdneR :: new (((self . bits >> 11) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Remote wakeup signaling"]
#[inline (always)] pub fn rwusig (& mut self) -> RwusigW < '_ , FsDctlSpec > { RwusigW :: new (self , 0) }
#[doc = "Bit 1 - Soft disconnect"]
#[inline (always)] pub fn sdis (& mut self) -> SdisW < '_ , FsDctlSpec > { SdisW :: new (self , 1) }
#[doc = "Bits 4:6 - Test control"]
#[inline (always)] pub fn tctl (& mut self) -> TctlW < '_ , FsDctlSpec > { TctlW :: new (self , 4) }
#[doc = "Bit 7 - Set global IN NAK"]
#[inline (always)] pub fn sginak (& mut self) -> SginakW < '_ , FsDctlSpec > { SginakW :: new (self , 7) }
#[doc = "Bit 8 - Clear global IN NAK"]
#[inline (always)] pub fn cginak (& mut self) -> CginakW < '_ , FsDctlSpec > { CginakW :: new (self , 8) }
#[doc = "Bit 9 - Set global OUT NAK"]
#[inline (always)] pub fn sgonak (& mut self) -> SgonakW < '_ , FsDctlSpec > { SgonakW :: new (self , 9) }
#[doc = "Bit 10 - Clear global OUT NAK"]
#[inline (always)] pub fn cgonak (& mut self) -> CgonakW < '_ , FsDctlSpec > { CgonakW :: new (self , 10) }
#[doc = "Bit 11 - Power-on programming done"]
#[inline (always)] pub fn poprgdne (& mut self) -> PoprgdneW < '_ , FsDctlSpec > { PoprgdneW :: new (self , 11) } }
#[doc = "OTG_FS device control register (OTG_FS_DCTL)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_dctl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_dctl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsDctlSpec ; impl crate :: RegisterSpec for FsDctlSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_dctl::R`](R) reader structure"] impl crate :: Readable for FsDctlSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_dctl::W`](W) writer structure"] impl crate :: Writable for FsDctlSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_DCTL to value 0"] impl crate :: Resettable for FsDctlSpec { } }
#[doc = "FS_DSTS (r) register accessor: OTG_FS device status register (OTG_FS_DSTS)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_dsts::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_dsts`] module"]
#[doc (alias = "FS_DSTS")] pub type FsDsts = crate :: Reg < fs_dsts :: FsDstsSpec > ;
#[doc = "OTG_FS device status register (OTG_FS_DSTS)"] pub mod fs_dsts {
#[doc = "Register `FS_DSTS` reader"] pub type R = crate :: R < FsDstsSpec > ;
#[doc = "Field `SUSPSTS` reader - Suspend status"] pub type SuspstsR = crate :: BitReader ;
#[doc = "Field `ENUMSPD` reader - Enumerated speed"] pub type EnumspdR = crate :: FieldReader ;
#[doc = "Field `EERR` reader - Erratic error"] pub type EerrR = crate :: BitReader ;
#[doc = "Field `FNSOF` reader - Frame number of the received SOF"] pub type FnsofR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bit 0 - Suspend status"]
#[inline (always)] pub fn suspsts (& self) -> SuspstsR { SuspstsR :: new ((self . bits & 1) != 0) }
#[doc = "Bits 1:2 - Enumerated speed"]
#[inline (always)] pub fn enumspd (& self) -> EnumspdR { EnumspdR :: new (((self . bits >> 1) & 3) as u8) }
#[doc = "Bit 3 - Erratic error"]
#[inline (always)] pub fn eerr (& self) -> EerrR { EerrR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 8:21 - Frame number of the received SOF"]
#[inline (always)] pub fn fnsof (& self) -> FnsofR { FnsofR :: new (((self . bits >> 8) & 0x3fff) as u16) } }
#[doc = "OTG_FS device status register (OTG_FS_DSTS)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_dsts::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsDstsSpec ; impl crate :: RegisterSpec for FsDstsSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_dsts::R`](R) reader structure"] impl crate :: Readable for FsDstsSpec { }
#[doc = "`reset()` method sets FS_DSTS to value 0x10"] impl crate :: Resettable for FsDstsSpec { const RESET_VALUE : u32 = 0x10 ; } }
#[doc = "FS_DIEPMSK (rw) register accessor: OTG_FS device IN endpoint common interrupt mask register (OTG_FS_DIEPMSK)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_diepmsk::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_diepmsk::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_diepmsk`] module"]
#[doc (alias = "FS_DIEPMSK")] pub type FsDiepmsk = crate :: Reg < fs_diepmsk :: FsDiepmskSpec > ;
#[doc = "OTG_FS device IN endpoint common interrupt mask register (OTG_FS_DIEPMSK)"] pub mod fs_diepmsk {
#[doc = "Register `FS_DIEPMSK` reader"] pub type R = crate :: R < FsDiepmskSpec > ;
#[doc = "Register `FS_DIEPMSK` writer"] pub type W = crate :: W < FsDiepmskSpec > ;
#[doc = "Field `XFRCM` reader - Transfer completed interrupt mask"] pub type XfrcmR = crate :: BitReader ;
#[doc = "Field `XFRCM` writer - Transfer completed interrupt mask"] pub type XfrcmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDM` reader - Endpoint disabled interrupt mask"] pub type EpdmR = crate :: BitReader ;
#[doc = "Field `EPDM` writer - Endpoint disabled interrupt mask"] pub type EpdmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TOM` reader - Timeout condition mask (Non-isochronous endpoints)"] pub type TomR = crate :: BitReader ;
#[doc = "Field `TOM` writer - Timeout condition mask (Non-isochronous endpoints)"] pub type TomW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ITTXFEMSK` reader - IN token received when TxFIFO empty mask"] pub type IttxfemskR = crate :: BitReader ;
#[doc = "Field `ITTXFEMSK` writer - IN token received when TxFIFO empty mask"] pub type IttxfemskW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `INEPNMM` reader - IN token received with EP mismatch mask"] pub type InepnmmR = crate :: BitReader ;
#[doc = "Field `INEPNMM` writer - IN token received with EP mismatch mask"] pub type InepnmmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `INEPNEM` reader - IN endpoint NAK effective mask"] pub type InepnemR = crate :: BitReader ;
#[doc = "Field `INEPNEM` writer - IN endpoint NAK effective mask"] pub type InepnemW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed interrupt mask"]
#[inline (always)] pub fn xfrcm (& self) -> XfrcmR { XfrcmR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Endpoint disabled interrupt mask"]
#[inline (always)] pub fn epdm (& self) -> EpdmR { EpdmR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - Timeout condition mask (Non-isochronous endpoints)"]
#[inline (always)] pub fn tom (& self) -> TomR { TomR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - IN token received when TxFIFO empty mask"]
#[inline (always)] pub fn ittxfemsk (& self) -> IttxfemskR { IttxfemskR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - IN token received with EP mismatch mask"]
#[inline (always)] pub fn inepnmm (& self) -> InepnmmR { InepnmmR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - IN endpoint NAK effective mask"]
#[inline (always)] pub fn inepnem (& self) -> InepnemR { InepnemR :: new (((self . bits >> 6) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed interrupt mask"]
#[inline (always)] pub fn xfrcm (& mut self) -> XfrcmW < '_ , FsDiepmskSpec > { XfrcmW :: new (self , 0) }
#[doc = "Bit 1 - Endpoint disabled interrupt mask"]
#[inline (always)] pub fn epdm (& mut self) -> EpdmW < '_ , FsDiepmskSpec > { EpdmW :: new (self , 1) }
#[doc = "Bit 3 - Timeout condition mask (Non-isochronous endpoints)"]
#[inline (always)] pub fn tom (& mut self) -> TomW < '_ , FsDiepmskSpec > { TomW :: new (self , 3) }
#[doc = "Bit 4 - IN token received when TxFIFO empty mask"]
#[inline (always)] pub fn ittxfemsk (& mut self) -> IttxfemskW < '_ , FsDiepmskSpec > { IttxfemskW :: new (self , 4) }
#[doc = "Bit 5 - IN token received with EP mismatch mask"]
#[inline (always)] pub fn inepnmm (& mut self) -> InepnmmW < '_ , FsDiepmskSpec > { InepnmmW :: new (self , 5) }
#[doc = "Bit 6 - IN endpoint NAK effective mask"]
#[inline (always)] pub fn inepnem (& mut self) -> InepnemW < '_ , FsDiepmskSpec > { InepnemW :: new (self , 6) } }
#[doc = "OTG_FS device IN endpoint common interrupt mask register (OTG_FS_DIEPMSK)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_diepmsk::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_diepmsk::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsDiepmskSpec ; impl crate :: RegisterSpec for FsDiepmskSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_diepmsk::R`](R) reader structure"] impl crate :: Readable for FsDiepmskSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_diepmsk::W`](W) writer structure"] impl crate :: Writable for FsDiepmskSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_DIEPMSK to value 0"] impl crate :: Resettable for FsDiepmskSpec { } }
#[doc = "FS_DOEPMSK (rw) register accessor: OTG_FS device OUT endpoint common interrupt mask register (OTG_FS_DOEPMSK)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_doepmsk::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_doepmsk::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_doepmsk`] module"]
#[doc (alias = "FS_DOEPMSK")] pub type FsDoepmsk = crate :: Reg < fs_doepmsk :: FsDoepmskSpec > ;
#[doc = "OTG_FS device OUT endpoint common interrupt mask register (OTG_FS_DOEPMSK)"] pub mod fs_doepmsk {
#[doc = "Register `FS_DOEPMSK` reader"] pub type R = crate :: R < FsDoepmskSpec > ;
#[doc = "Register `FS_DOEPMSK` writer"] pub type W = crate :: W < FsDoepmskSpec > ;
#[doc = "Field `XFRCM` reader - Transfer completed interrupt mask"] pub type XfrcmR = crate :: BitReader ;
#[doc = "Field `XFRCM` writer - Transfer completed interrupt mask"] pub type XfrcmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDM` reader - Endpoint disabled interrupt mask"] pub type EpdmR = crate :: BitReader ;
#[doc = "Field `EPDM` writer - Endpoint disabled interrupt mask"] pub type EpdmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STUPM` reader - SETUP phase done mask"] pub type StupmR = crate :: BitReader ;
#[doc = "Field `STUPM` writer - SETUP phase done mask"] pub type StupmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OTEPDM` reader - OUT token received when endpoint disabled mask"] pub type OtepdmR = crate :: BitReader ;
#[doc = "Field `OTEPDM` writer - OUT token received when endpoint disabled mask"] pub type OtepdmW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed interrupt mask"]
#[inline (always)] pub fn xfrcm (& self) -> XfrcmR { XfrcmR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Endpoint disabled interrupt mask"]
#[inline (always)] pub fn epdm (& self) -> EpdmR { EpdmR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - SETUP phase done mask"]
#[inline (always)] pub fn stupm (& self) -> StupmR { StupmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - OUT token received when endpoint disabled mask"]
#[inline (always)] pub fn otepdm (& self) -> OtepdmR { OtepdmR :: new (((self . bits >> 4) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed interrupt mask"]
#[inline (always)] pub fn xfrcm (& mut self) -> XfrcmW < '_ , FsDoepmskSpec > { XfrcmW :: new (self , 0) }
#[doc = "Bit 1 - Endpoint disabled interrupt mask"]
#[inline (always)] pub fn epdm (& mut self) -> EpdmW < '_ , FsDoepmskSpec > { EpdmW :: new (self , 1) }
#[doc = "Bit 3 - SETUP phase done mask"]
#[inline (always)] pub fn stupm (& mut self) -> StupmW < '_ , FsDoepmskSpec > { StupmW :: new (self , 3) }
#[doc = "Bit 4 - OUT token received when endpoint disabled mask"]
#[inline (always)] pub fn otepdm (& mut self) -> OtepdmW < '_ , FsDoepmskSpec > { OtepdmW :: new (self , 4) } }
#[doc = "OTG_FS device OUT endpoint common interrupt mask register (OTG_FS_DOEPMSK)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_doepmsk::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_doepmsk::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsDoepmskSpec ; impl crate :: RegisterSpec for FsDoepmskSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_doepmsk::R`](R) reader structure"] impl crate :: Readable for FsDoepmskSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_doepmsk::W`](W) writer structure"] impl crate :: Writable for FsDoepmskSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_DOEPMSK to value 0"] impl crate :: Resettable for FsDoepmskSpec { } }
#[doc = "FS_DAINT (r) register accessor: OTG_FS device all endpoints interrupt register (OTG_FS_DAINT)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_daint::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_daint`] module"]
#[doc (alias = "FS_DAINT")] pub type FsDaint = crate :: Reg < fs_daint :: FsDaintSpec > ;
#[doc = "OTG_FS device all endpoints interrupt register (OTG_FS_DAINT)"] pub mod fs_daint {
#[doc = "Register `FS_DAINT` reader"] pub type R = crate :: R < FsDaintSpec > ;
#[doc = "Field `IEPINT` reader - IN endpoint interrupt bits"] pub type IepintR = crate :: FieldReader < u16 > ;
#[doc = "Field `OEPINT` reader - OUT endpoint interrupt bits"] pub type OepintR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - IN endpoint interrupt bits"]
#[inline (always)] pub fn iepint (& self) -> IepintR { IepintR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 16:31 - OUT endpoint interrupt bits"]
#[inline (always)] pub fn oepint (& self) -> OepintR { OepintR :: new (((self . bits >> 16) & 0xffff) as u16) } }
#[doc = "OTG_FS device all endpoints interrupt register (OTG_FS_DAINT)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_daint::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsDaintSpec ; impl crate :: RegisterSpec for FsDaintSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_daint::R`](R) reader structure"] impl crate :: Readable for FsDaintSpec { }
#[doc = "`reset()` method sets FS_DAINT to value 0"] impl crate :: Resettable for FsDaintSpec { } }
#[doc = "FS_DAINTMSK (rw) register accessor: OTG_FS all endpoints interrupt mask register (OTG_FS_DAINTMSK)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_daintmsk::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_daintmsk::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_daintmsk`] module"]
#[doc (alias = "FS_DAINTMSK")] pub type FsDaintmsk = crate :: Reg < fs_daintmsk :: FsDaintmskSpec > ;
#[doc = "OTG_FS all endpoints interrupt mask register (OTG_FS_DAINTMSK)"] pub mod fs_daintmsk {
#[doc = "Register `FS_DAINTMSK` reader"] pub type R = crate :: R < FsDaintmskSpec > ;
#[doc = "Register `FS_DAINTMSK` writer"] pub type W = crate :: W < FsDaintmskSpec > ;
#[doc = "Field `IEPM` reader - IN EP interrupt mask bits"] pub type IepmR = crate :: FieldReader < u16 > ;
#[doc = "Field `IEPM` writer - IN EP interrupt mask bits"] pub type IepmW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ;
#[doc = "Field `OEPINT` reader - OUT endpoint interrupt bits"] pub type OepintR = crate :: FieldReader < u16 > ;
#[doc = "Field `OEPINT` writer - OUT endpoint interrupt bits"] pub type OepintW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - IN EP interrupt mask bits"]
#[inline (always)] pub fn iepm (& self) -> IepmR { IepmR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 16:31 - OUT endpoint interrupt bits"]
#[inline (always)] pub fn oepint (& self) -> OepintR { OepintR :: new (((self . bits >> 16) & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - IN EP interrupt mask bits"]
#[inline (always)] pub fn iepm (& mut self) -> IepmW < '_ , FsDaintmskSpec > { IepmW :: new (self , 0) }
#[doc = "Bits 16:31 - OUT endpoint interrupt bits"]
#[inline (always)] pub fn oepint (& mut self) -> OepintW < '_ , FsDaintmskSpec > { OepintW :: new (self , 16) } }
#[doc = "OTG_FS all endpoints interrupt mask register (OTG_FS_DAINTMSK)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_daintmsk::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_daintmsk::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsDaintmskSpec ; impl crate :: RegisterSpec for FsDaintmskSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_daintmsk::R`](R) reader structure"] impl crate :: Readable for FsDaintmskSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_daintmsk::W`](W) writer structure"] impl crate :: Writable for FsDaintmskSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_DAINTMSK to value 0"] impl crate :: Resettable for FsDaintmskSpec { } }
#[doc = "DVBUSDIS (rw) register accessor: OTG_FS device VBUS discharge time register\n\nYou can [`read`](crate::Reg::read) this register and get [`dvbusdis::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dvbusdis::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dvbusdis`] module"]
#[doc (alias = "DVBUSDIS")] pub type Dvbusdis = crate :: Reg < dvbusdis :: DvbusdisSpec > ;
#[doc = "OTG_FS device VBUS discharge time register"] pub mod dvbusdis {
#[doc = "Register `DVBUSDIS` reader"] pub type R = crate :: R < DvbusdisSpec > ;
#[doc = "Register `DVBUSDIS` writer"] pub type W = crate :: W < DvbusdisSpec > ;
#[doc = "Field `VBUSDT` reader - Device VBUS discharge time"] pub type VbusdtR = crate :: FieldReader < u16 > ;
#[doc = "Field `VBUSDT` writer - Device VBUS discharge time"] pub type VbusdtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Device VBUS discharge time"]
#[inline (always)] pub fn vbusdt (& self) -> VbusdtR { VbusdtR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Device VBUS discharge time"]
#[inline (always)] pub fn vbusdt (& mut self) -> VbusdtW < '_ , DvbusdisSpec > { VbusdtW :: new (self , 0) } }
#[doc = "OTG_FS device VBUS discharge time register\n\nYou can [`read`](crate::Reg::read) this register and get [`dvbusdis::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dvbusdis::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DvbusdisSpec ; impl crate :: RegisterSpec for DvbusdisSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dvbusdis::R`](R) reader structure"] impl crate :: Readable for DvbusdisSpec { }
#[doc = "`write(|w| ..)` method takes [`dvbusdis::W`](W) writer structure"] impl crate :: Writable for DvbusdisSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DVBUSDIS to value 0x17d7"] impl crate :: Resettable for DvbusdisSpec { const RESET_VALUE : u32 = 0x17d7 ; } }
#[doc = "DVBUSPULSE (rw) register accessor: OTG_FS device VBUS pulsing time register\n\nYou can [`read`](crate::Reg::read) this register and get [`dvbuspulse::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dvbuspulse::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dvbuspulse`] module"]
#[doc (alias = "DVBUSPULSE")] pub type Dvbuspulse = crate :: Reg < dvbuspulse :: DvbuspulseSpec > ;
#[doc = "OTG_FS device VBUS pulsing time register"] pub mod dvbuspulse {
#[doc = "Register `DVBUSPULSE` reader"] pub type R = crate :: R < DvbuspulseSpec > ;
#[doc = "Register `DVBUSPULSE` writer"] pub type W = crate :: W < DvbuspulseSpec > ;
#[doc = "Field `DVBUSP` reader - Device VBUS pulsing time"] pub type DvbuspR = crate :: FieldReader < u16 > ;
#[doc = "Field `DVBUSP` writer - Device VBUS pulsing time"] pub type DvbuspW < 'a , REG > = crate :: FieldWriter < 'a , REG , 12 , u16 > ; impl R {
#[doc = "Bits 0:11 - Device VBUS pulsing time"]
#[inline (always)] pub fn dvbusp (& self) -> DvbuspR { DvbuspR :: new ((self . bits & 0x0fff) as u16) } } impl W {
#[doc = "Bits 0:11 - Device VBUS pulsing time"]
#[inline (always)] pub fn dvbusp (& mut self) -> DvbuspW < '_ , DvbuspulseSpec > { DvbuspW :: new (self , 0) } }
#[doc = "OTG_FS device VBUS pulsing time register\n\nYou can [`read`](crate::Reg::read) this register and get [`dvbuspulse::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dvbuspulse::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DvbuspulseSpec ; impl crate :: RegisterSpec for DvbuspulseSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dvbuspulse::R`](R) reader structure"] impl crate :: Readable for DvbuspulseSpec { }
#[doc = "`write(|w| ..)` method takes [`dvbuspulse::W`](W) writer structure"] impl crate :: Writable for DvbuspulseSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DVBUSPULSE to value 0x05b8"] impl crate :: Resettable for DvbuspulseSpec { const RESET_VALUE : u32 = 0x05b8 ; } }
#[doc = "DIEPEMPMSK (rw) register accessor: OTG_FS device IN endpoint FIFO empty interrupt mask register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepempmsk::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepempmsk::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@diepempmsk`] module"]
#[doc (alias = "DIEPEMPMSK")] pub type Diepempmsk = crate :: Reg < diepempmsk :: DiepempmskSpec > ;
#[doc = "OTG_FS device IN endpoint FIFO empty interrupt mask register"] pub mod diepempmsk {
#[doc = "Register `DIEPEMPMSK` reader"] pub type R = crate :: R < DiepempmskSpec > ;
#[doc = "Register `DIEPEMPMSK` writer"] pub type W = crate :: W < DiepempmskSpec > ;
#[doc = "Field `INEPTXFEM` reader - IN EP Tx FIFO empty interrupt mask bits"] pub type IneptxfemR = crate :: FieldReader < u16 > ;
#[doc = "Field `INEPTXFEM` writer - IN EP Tx FIFO empty interrupt mask bits"] pub type IneptxfemW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - IN EP Tx FIFO empty interrupt mask bits"]
#[inline (always)] pub fn ineptxfem (& self) -> IneptxfemR { IneptxfemR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - IN EP Tx FIFO empty interrupt mask bits"]
#[inline (always)] pub fn ineptxfem (& mut self) -> IneptxfemW < '_ , DiepempmskSpec > { IneptxfemW :: new (self , 0) } }
#[doc = "OTG_FS device IN endpoint FIFO empty interrupt mask register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepempmsk::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepempmsk::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DiepempmskSpec ; impl crate :: RegisterSpec for DiepempmskSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`diepempmsk::R`](R) reader structure"] impl crate :: Readable for DiepempmskSpec { }
#[doc = "`write(|w| ..)` method takes [`diepempmsk::W`](W) writer structure"] impl crate :: Writable for DiepempmskSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIEPEMPMSK to value 0"] impl crate :: Resettable for DiepempmskSpec { } }
#[doc = "FS_DIEPCTL0 (rw) register accessor: OTG_FS device control IN endpoint 0 control register (OTG_FS_DIEPCTL0)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_diepctl0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_diepctl0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_diepctl0`] module"]
#[doc (alias = "FS_DIEPCTL0")] pub type FsDiepctl0 = crate :: Reg < fs_diepctl0 :: FsDiepctl0Spec > ;
#[doc = "OTG_FS device control IN endpoint 0 control register (OTG_FS_DIEPCTL0)"] pub mod fs_diepctl0 {
#[doc = "Register `FS_DIEPCTL0` reader"] pub type R = crate :: R < FsDiepctl0Spec > ;
#[doc = "Register `FS_DIEPCTL0` writer"] pub type W = crate :: W < FsDiepctl0Spec > ;
#[doc = "Field `MPSIZ` reader - Maximum packet size"] pub type MpsizR = crate :: FieldReader ;
#[doc = "Field `MPSIZ` writer - Maximum packet size"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `USBAEP` reader - USB active endpoint"] pub type UsbaepR = crate :: BitReader ;
#[doc = "Field `NAKSTS` reader - NAK status"] pub type NakstsR = crate :: BitReader ;
#[doc = "Field `EPTYP` reader - Endpoint type"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `STALL` reader - STALL handshake"] pub type StallR = crate :: BitReader ;
#[doc = "Field `STALL` writer - STALL handshake"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFNUM` reader - TxFIFO number"] pub type TxfnumR = crate :: FieldReader ;
#[doc = "Field `TXFNUM` writer - TxFIFO number"] pub type TxfnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `CNAK` writer - Clear NAK"] pub type CnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SNAK` writer - Set NAK"] pub type SnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDIS` reader - Endpoint disable"] pub type EpdisR = crate :: BitReader ;
#[doc = "Field `EPENA` reader - Endpoint enable"] pub type EpenaR = crate :: BitReader ; impl R {
#[doc = "Bits 0:1 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 3) as u8) }
#[doc = "Bit 15 - USB active endpoint"]
#[inline (always)] pub fn usbaep (& self) -> UsbaepR { UsbaepR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 17 - NAK status"]
#[inline (always)] pub fn naksts (& self) -> NakstsR { NakstsR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bit 21 - STALL handshake"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bits 22:25 - TxFIFO number"]
#[inline (always)] pub fn txfnum (& self) -> TxfnumR { TxfnumR :: new (((self . bits >> 22) & 0x0f) as u8) }
#[doc = "Bit 30 - Endpoint disable"]
#[inline (always)] pub fn epdis (& self) -> EpdisR { EpdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Endpoint enable"]
#[inline (always)] pub fn epena (& self) -> EpenaR { EpenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:1 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , FsDiepctl0Spec > { MpsizW :: new (self , 0) }
#[doc = "Bit 21 - STALL handshake"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , FsDiepctl0Spec > { StallW :: new (self , 21) }
#[doc = "Bits 22:25 - TxFIFO number"]
#[inline (always)] pub fn txfnum (& mut self) -> TxfnumW < '_ , FsDiepctl0Spec > { TxfnumW :: new (self , 22) }
#[doc = "Bit 26 - Clear NAK"]
#[inline (always)] pub fn cnak (& mut self) -> CnakW < '_ , FsDiepctl0Spec > { CnakW :: new (self , 26) }
#[doc = "Bit 27 - Set NAK"]
#[inline (always)] pub fn snak (& mut self) -> SnakW < '_ , FsDiepctl0Spec > { SnakW :: new (self , 27) } }
#[doc = "OTG_FS device control IN endpoint 0 control register (OTG_FS_DIEPCTL0)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_diepctl0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_diepctl0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsDiepctl0Spec ; impl crate :: RegisterSpec for FsDiepctl0Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_diepctl0::R`](R) reader structure"] impl crate :: Readable for FsDiepctl0Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_diepctl0::W`](W) writer structure"] impl crate :: Writable for FsDiepctl0Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_DIEPCTL0 to value 0"] impl crate :: Resettable for FsDiepctl0Spec { } }
#[doc = "DIEPCTL1 (rw) register accessor: OTG device endpoint-1 control register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepctl1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepctl1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@diepctl1`] module"]
#[doc (alias = "DIEPCTL1")] pub type Diepctl1 = crate :: Reg < diepctl1 :: Diepctl1Spec > ;
#[doc = "OTG device endpoint-1 control register"] pub mod diepctl1 {
#[doc = "Register `DIEPCTL1` reader"] pub type R = crate :: R < Diepctl1Spec > ;
#[doc = "Register `DIEPCTL1` writer"] pub type W = crate :: W < Diepctl1Spec > ;
#[doc = "Field `MPSIZ` reader - MPSIZ"] pub type MpsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `MPSIZ` writer - MPSIZ"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ;
#[doc = "Field `USBAEP` reader - USBAEP"] pub type UsbaepR = crate :: BitReader ;
#[doc = "Field `USBAEP` writer - USBAEP"] pub type UsbaepW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EONUM_DPID` reader - EONUM/DPID"] pub type EonumDpidR = crate :: BitReader ;
#[doc = "Field `NAKSTS` reader - NAKSTS"] pub type NakstsR = crate :: BitReader ;
#[doc = "Field `EPTYP` reader - EPTYP"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `EPTYP` writer - EPTYP"] pub type EptypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `Stall` reader - Stall"] pub type StallR = crate :: BitReader ;
#[doc = "Field `Stall` writer - Stall"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFNUM` reader - TXFNUM"] pub type TxfnumR = crate :: FieldReader ;
#[doc = "Field `TXFNUM` writer - TXFNUM"] pub type TxfnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `CNAK` writer - CNAK"] pub type CnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SNAK` writer - SNAK"] pub type SnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SD0PID_SEVNFRM` writer - SD0PID/SEVNFRM"] pub type Sd0pidSevnfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SODDFRM_SD1PID` writer - SODDFRM/SD1PID"] pub type SoddfrmSd1pidW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDIS` reader - EPDIS"] pub type EpdisR = crate :: BitReader ;
#[doc = "Field `EPDIS` writer - EPDIS"] pub type EpdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPENA` reader - EPENA"] pub type EpenaR = crate :: BitReader ;
#[doc = "Field `EPENA` writer - EPENA"] pub type EpenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:10 - MPSIZ"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bit 15 - USBAEP"]
#[inline (always)] pub fn usbaep (& self) -> UsbaepR { UsbaepR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - EONUM/DPID"]
#[inline (always)] pub fn eonum_dpid (& self) -> EonumDpidR { EonumDpidR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - NAKSTS"]
#[inline (always)] pub fn naksts (& self) -> NakstsR { NakstsR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - EPTYP"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bit 21 - Stall"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bits 22:25 - TXFNUM"]
#[inline (always)] pub fn txfnum (& self) -> TxfnumR { TxfnumR :: new (((self . bits >> 22) & 0x0f) as u8) }
#[doc = "Bit 30 - EPDIS"]
#[inline (always)] pub fn epdis (& self) -> EpdisR { EpdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - EPENA"]
#[inline (always)] pub fn epena (& self) -> EpenaR { EpenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:10 - MPSIZ"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , Diepctl1Spec > { MpsizW :: new (self , 0) }
#[doc = "Bit 15 - USBAEP"]
#[inline (always)] pub fn usbaep (& mut self) -> UsbaepW < '_ , Diepctl1Spec > { UsbaepW :: new (self , 15) }
#[doc = "Bits 18:19 - EPTYP"]
#[inline (always)] pub fn eptyp (& mut self) -> EptypW < '_ , Diepctl1Spec > { EptypW :: new (self , 18) }
#[doc = "Bit 21 - Stall"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , Diepctl1Spec > { StallW :: new (self , 21) }
#[doc = "Bits 22:25 - TXFNUM"]
#[inline (always)] pub fn txfnum (& mut self) -> TxfnumW < '_ , Diepctl1Spec > { TxfnumW :: new (self , 22) }
#[doc = "Bit 26 - CNAK"]
#[inline (always)] pub fn cnak (& mut self) -> CnakW < '_ , Diepctl1Spec > { CnakW :: new (self , 26) }
#[doc = "Bit 27 - SNAK"]
#[inline (always)] pub fn snak (& mut self) -> SnakW < '_ , Diepctl1Spec > { SnakW :: new (self , 27) }
#[doc = "Bit 28 - SD0PID/SEVNFRM"]
#[inline (always)] pub fn sd0pid_sevnfrm (& mut self) -> Sd0pidSevnfrmW < '_ , Diepctl1Spec > { Sd0pidSevnfrmW :: new (self , 28) }
#[doc = "Bit 29 - SODDFRM/SD1PID"]
#[inline (always)] pub fn soddfrm_sd1pid (& mut self) -> SoddfrmSd1pidW < '_ , Diepctl1Spec > { SoddfrmSd1pidW :: new (self , 29) }
#[doc = "Bit 30 - EPDIS"]
#[inline (always)] pub fn epdis (& mut self) -> EpdisW < '_ , Diepctl1Spec > { EpdisW :: new (self , 30) }
#[doc = "Bit 31 - EPENA"]
#[inline (always)] pub fn epena (& mut self) -> EpenaW < '_ , Diepctl1Spec > { EpenaW :: new (self , 31) } }
#[doc = "OTG device endpoint-1 control register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepctl1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepctl1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Diepctl1Spec ; impl crate :: RegisterSpec for Diepctl1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`diepctl1::R`](R) reader structure"] impl crate :: Readable for Diepctl1Spec { }
#[doc = "`write(|w| ..)` method takes [`diepctl1::W`](W) writer structure"] impl crate :: Writable for Diepctl1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIEPCTL1 to value 0"] impl crate :: Resettable for Diepctl1Spec { } }
#[doc = "DIEPCTL2 (rw) register accessor: OTG device endpoint-2 control register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepctl2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepctl2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@diepctl2`] module"]
#[doc (alias = "DIEPCTL2")] pub type Diepctl2 = crate :: Reg < diepctl2 :: Diepctl2Spec > ;
#[doc = "OTG device endpoint-2 control register"] pub mod diepctl2 {
#[doc = "Register `DIEPCTL2` reader"] pub type R = crate :: R < Diepctl2Spec > ;
#[doc = "Register `DIEPCTL2` writer"] pub type W = crate :: W < Diepctl2Spec > ;
#[doc = "Field `MPSIZ` reader - MPSIZ"] pub type MpsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `MPSIZ` writer - MPSIZ"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ;
#[doc = "Field `USBAEP` reader - USBAEP"] pub type UsbaepR = crate :: BitReader ;
#[doc = "Field `USBAEP` writer - USBAEP"] pub type UsbaepW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EONUM_DPID` reader - EONUM/DPID"] pub type EonumDpidR = crate :: BitReader ;
#[doc = "Field `NAKSTS` reader - NAKSTS"] pub type NakstsR = crate :: BitReader ;
#[doc = "Field `EPTYP` reader - EPTYP"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `EPTYP` writer - EPTYP"] pub type EptypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `Stall` reader - Stall"] pub type StallR = crate :: BitReader ;
#[doc = "Field `Stall` writer - Stall"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFNUM` reader - TXFNUM"] pub type TxfnumR = crate :: FieldReader ;
#[doc = "Field `TXFNUM` writer - TXFNUM"] pub type TxfnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `CNAK` writer - CNAK"] pub type CnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SNAK` writer - SNAK"] pub type SnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SD0PID_SEVNFRM` writer - SD0PID/SEVNFRM"] pub type Sd0pidSevnfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SODDFRM` writer - SODDFRM"] pub type SoddfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDIS` reader - EPDIS"] pub type EpdisR = crate :: BitReader ;
#[doc = "Field `EPDIS` writer - EPDIS"] pub type EpdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPENA` reader - EPENA"] pub type EpenaR = crate :: BitReader ;
#[doc = "Field `EPENA` writer - EPENA"] pub type EpenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:10 - MPSIZ"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bit 15 - USBAEP"]
#[inline (always)] pub fn usbaep (& self) -> UsbaepR { UsbaepR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - EONUM/DPID"]
#[inline (always)] pub fn eonum_dpid (& self) -> EonumDpidR { EonumDpidR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - NAKSTS"]
#[inline (always)] pub fn naksts (& self) -> NakstsR { NakstsR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - EPTYP"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bit 21 - Stall"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bits 22:25 - TXFNUM"]
#[inline (always)] pub fn txfnum (& self) -> TxfnumR { TxfnumR :: new (((self . bits >> 22) & 0x0f) as u8) }
#[doc = "Bit 30 - EPDIS"]
#[inline (always)] pub fn epdis (& self) -> EpdisR { EpdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - EPENA"]
#[inline (always)] pub fn epena (& self) -> EpenaR { EpenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:10 - MPSIZ"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , Diepctl2Spec > { MpsizW :: new (self , 0) }
#[doc = "Bit 15 - USBAEP"]
#[inline (always)] pub fn usbaep (& mut self) -> UsbaepW < '_ , Diepctl2Spec > { UsbaepW :: new (self , 15) }
#[doc = "Bits 18:19 - EPTYP"]
#[inline (always)] pub fn eptyp (& mut self) -> EptypW < '_ , Diepctl2Spec > { EptypW :: new (self , 18) }
#[doc = "Bit 21 - Stall"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , Diepctl2Spec > { StallW :: new (self , 21) }
#[doc = "Bits 22:25 - TXFNUM"]
#[inline (always)] pub fn txfnum (& mut self) -> TxfnumW < '_ , Diepctl2Spec > { TxfnumW :: new (self , 22) }
#[doc = "Bit 26 - CNAK"]
#[inline (always)] pub fn cnak (& mut self) -> CnakW < '_ , Diepctl2Spec > { CnakW :: new (self , 26) }
#[doc = "Bit 27 - SNAK"]
#[inline (always)] pub fn snak (& mut self) -> SnakW < '_ , Diepctl2Spec > { SnakW :: new (self , 27) }
#[doc = "Bit 28 - SD0PID/SEVNFRM"]
#[inline (always)] pub fn sd0pid_sevnfrm (& mut self) -> Sd0pidSevnfrmW < '_ , Diepctl2Spec > { Sd0pidSevnfrmW :: new (self , 28) }
#[doc = "Bit 29 - SODDFRM"]
#[inline (always)] pub fn soddfrm (& mut self) -> SoddfrmW < '_ , Diepctl2Spec > { SoddfrmW :: new (self , 29) }
#[doc = "Bit 30 - EPDIS"]
#[inline (always)] pub fn epdis (& mut self) -> EpdisW < '_ , Diepctl2Spec > { EpdisW :: new (self , 30) }
#[doc = "Bit 31 - EPENA"]
#[inline (always)] pub fn epena (& mut self) -> EpenaW < '_ , Diepctl2Spec > { EpenaW :: new (self , 31) } }
#[doc = "OTG device endpoint-2 control register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepctl2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepctl2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Diepctl2Spec ; impl crate :: RegisterSpec for Diepctl2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`diepctl2::R`](R) reader structure"] impl crate :: Readable for Diepctl2Spec { }
#[doc = "`write(|w| ..)` method takes [`diepctl2::W`](W) writer structure"] impl crate :: Writable for Diepctl2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIEPCTL2 to value 0"] impl crate :: Resettable for Diepctl2Spec { } }
#[doc = "DIEPCTL3 (rw) register accessor: OTG device endpoint-3 control register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepctl3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepctl3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@diepctl3`] module"]
#[doc (alias = "DIEPCTL3")] pub type Diepctl3 = crate :: Reg < diepctl3 :: Diepctl3Spec > ;
#[doc = "OTG device endpoint-3 control register"] pub mod diepctl3 {
#[doc = "Register `DIEPCTL3` reader"] pub type R = crate :: R < Diepctl3Spec > ;
#[doc = "Register `DIEPCTL3` writer"] pub type W = crate :: W < Diepctl3Spec > ;
#[doc = "Field `MPSIZ` reader - MPSIZ"] pub type MpsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `MPSIZ` writer - MPSIZ"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ;
#[doc = "Field `USBAEP` reader - USBAEP"] pub type UsbaepR = crate :: BitReader ;
#[doc = "Field `USBAEP` writer - USBAEP"] pub type UsbaepW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EONUM_DPID` reader - EONUM/DPID"] pub type EonumDpidR = crate :: BitReader ;
#[doc = "Field `NAKSTS` reader - NAKSTS"] pub type NakstsR = crate :: BitReader ;
#[doc = "Field `EPTYP` reader - EPTYP"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `EPTYP` writer - EPTYP"] pub type EptypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `Stall` reader - Stall"] pub type StallR = crate :: BitReader ;
#[doc = "Field `Stall` writer - Stall"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFNUM` reader - TXFNUM"] pub type TxfnumR = crate :: FieldReader ;
#[doc = "Field `TXFNUM` writer - TXFNUM"] pub type TxfnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `CNAK` writer - CNAK"] pub type CnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SNAK` writer - SNAK"] pub type SnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SD0PID_SEVNFRM` writer - SD0PID/SEVNFRM"] pub type Sd0pidSevnfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SODDFRM` writer - SODDFRM"] pub type SoddfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDIS` reader - EPDIS"] pub type EpdisR = crate :: BitReader ;
#[doc = "Field `EPDIS` writer - EPDIS"] pub type EpdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPENA` reader - EPENA"] pub type EpenaR = crate :: BitReader ;
#[doc = "Field `EPENA` writer - EPENA"] pub type EpenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:10 - MPSIZ"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bit 15 - USBAEP"]
#[inline (always)] pub fn usbaep (& self) -> UsbaepR { UsbaepR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - EONUM/DPID"]
#[inline (always)] pub fn eonum_dpid (& self) -> EonumDpidR { EonumDpidR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - NAKSTS"]
#[inline (always)] pub fn naksts (& self) -> NakstsR { NakstsR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - EPTYP"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bit 21 - Stall"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bits 22:25 - TXFNUM"]
#[inline (always)] pub fn txfnum (& self) -> TxfnumR { TxfnumR :: new (((self . bits >> 22) & 0x0f) as u8) }
#[doc = "Bit 30 - EPDIS"]
#[inline (always)] pub fn epdis (& self) -> EpdisR { EpdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - EPENA"]
#[inline (always)] pub fn epena (& self) -> EpenaR { EpenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:10 - MPSIZ"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , Diepctl3Spec > { MpsizW :: new (self , 0) }
#[doc = "Bit 15 - USBAEP"]
#[inline (always)] pub fn usbaep (& mut self) -> UsbaepW < '_ , Diepctl3Spec > { UsbaepW :: new (self , 15) }
#[doc = "Bits 18:19 - EPTYP"]
#[inline (always)] pub fn eptyp (& mut self) -> EptypW < '_ , Diepctl3Spec > { EptypW :: new (self , 18) }
#[doc = "Bit 21 - Stall"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , Diepctl3Spec > { StallW :: new (self , 21) }
#[doc = "Bits 22:25 - TXFNUM"]
#[inline (always)] pub fn txfnum (& mut self) -> TxfnumW < '_ , Diepctl3Spec > { TxfnumW :: new (self , 22) }
#[doc = "Bit 26 - CNAK"]
#[inline (always)] pub fn cnak (& mut self) -> CnakW < '_ , Diepctl3Spec > { CnakW :: new (self , 26) }
#[doc = "Bit 27 - SNAK"]
#[inline (always)] pub fn snak (& mut self) -> SnakW < '_ , Diepctl3Spec > { SnakW :: new (self , 27) }
#[doc = "Bit 28 - SD0PID/SEVNFRM"]
#[inline (always)] pub fn sd0pid_sevnfrm (& mut self) -> Sd0pidSevnfrmW < '_ , Diepctl3Spec > { Sd0pidSevnfrmW :: new (self , 28) }
#[doc = "Bit 29 - SODDFRM"]
#[inline (always)] pub fn soddfrm (& mut self) -> SoddfrmW < '_ , Diepctl3Spec > { SoddfrmW :: new (self , 29) }
#[doc = "Bit 30 - EPDIS"]
#[inline (always)] pub fn epdis (& mut self) -> EpdisW < '_ , Diepctl3Spec > { EpdisW :: new (self , 30) }
#[doc = "Bit 31 - EPENA"]
#[inline (always)] pub fn epena (& mut self) -> EpenaW < '_ , Diepctl3Spec > { EpenaW :: new (self , 31) } }
#[doc = "OTG device endpoint-3 control register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepctl3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepctl3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Diepctl3Spec ; impl crate :: RegisterSpec for Diepctl3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`diepctl3::R`](R) reader structure"] impl crate :: Readable for Diepctl3Spec { }
#[doc = "`write(|w| ..)` method takes [`diepctl3::W`](W) writer structure"] impl crate :: Writable for Diepctl3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIEPCTL3 to value 0"] impl crate :: Resettable for Diepctl3Spec { } }
#[doc = "DOEPCTL0 (rw) register accessor: device endpoint-0 control register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepctl0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepctl0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doepctl0`] module"]
#[doc (alias = "DOEPCTL0")] pub type Doepctl0 = crate :: Reg < doepctl0 :: Doepctl0Spec > ;
#[doc = "device endpoint-0 control register"] pub mod doepctl0 {
#[doc = "Register `DOEPCTL0` reader"] pub type R = crate :: R < Doepctl0Spec > ;
#[doc = "Register `DOEPCTL0` writer"] pub type W = crate :: W < Doepctl0Spec > ;
#[doc = "Field `MPSIZ` reader - MPSIZ"] pub type MpsizR = crate :: FieldReader ;
#[doc = "Field `USBAEP` reader - USBAEP"] pub type UsbaepR = crate :: BitReader ;
#[doc = "Field `NAKSTS` reader - NAKSTS"] pub type NakstsR = crate :: BitReader ;
#[doc = "Field `EPTYP` reader - EPTYP"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `SNPM` reader - SNPM"] pub type SnpmR = crate :: BitReader ;
#[doc = "Field `SNPM` writer - SNPM"] pub type SnpmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `Stall` reader - Stall"] pub type StallR = crate :: BitReader ;
#[doc = "Field `Stall` writer - Stall"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CNAK` writer - CNAK"] pub type CnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SNAK` writer - SNAK"] pub type SnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDIS` reader - EPDIS"] pub type EpdisR = crate :: BitReader ;
#[doc = "Field `EPENA` writer - EPENA"] pub type EpenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:1 - MPSIZ"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 3) as u8) }
#[doc = "Bit 15 - USBAEP"]
#[inline (always)] pub fn usbaep (& self) -> UsbaepR { UsbaepR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 17 - NAKSTS"]
#[inline (always)] pub fn naksts (& self) -> NakstsR { NakstsR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - EPTYP"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bit 20 - SNPM"]
#[inline (always)] pub fn snpm (& self) -> SnpmR { SnpmR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Stall"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 30 - EPDIS"]
#[inline (always)] pub fn epdis (& self) -> EpdisR { EpdisR :: new (((self . bits >> 30) & 1) != 0) } } impl W {
#[doc = "Bit 20 - SNPM"]
#[inline (always)] pub fn snpm (& mut self) -> SnpmW < '_ , Doepctl0Spec > { SnpmW :: new (self , 20) }
#[doc = "Bit 21 - Stall"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , Doepctl0Spec > { StallW :: new (self , 21) }
#[doc = "Bit 26 - CNAK"]
#[inline (always)] pub fn cnak (& mut self) -> CnakW < '_ , Doepctl0Spec > { CnakW :: new (self , 26) }
#[doc = "Bit 27 - SNAK"]
#[inline (always)] pub fn snak (& mut self) -> SnakW < '_ , Doepctl0Spec > { SnakW :: new (self , 27) }
#[doc = "Bit 31 - EPENA"]
#[inline (always)] pub fn epena (& mut self) -> EpenaW < '_ , Doepctl0Spec > { EpenaW :: new (self , 31) } }
#[doc = "device endpoint-0 control register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepctl0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepctl0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Doepctl0Spec ; impl crate :: RegisterSpec for Doepctl0Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`doepctl0::R`](R) reader structure"] impl crate :: Readable for Doepctl0Spec { }
#[doc = "`write(|w| ..)` method takes [`doepctl0::W`](W) writer structure"] impl crate :: Writable for Doepctl0Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DOEPCTL0 to value 0x8000"] impl crate :: Resettable for Doepctl0Spec { const RESET_VALUE : u32 = 0x8000 ; } }
#[doc = "DOEPCTL1 (rw) register accessor: device endpoint-1 control register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepctl1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepctl1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doepctl1`] module"]
#[doc (alias = "DOEPCTL1")] pub type Doepctl1 = crate :: Reg < doepctl1 :: Doepctl1Spec > ;
#[doc = "device endpoint-1 control register"] pub mod doepctl1 {
#[doc = "Register `DOEPCTL1` reader"] pub type R = crate :: R < Doepctl1Spec > ;
#[doc = "Register `DOEPCTL1` writer"] pub type W = crate :: W < Doepctl1Spec > ;
#[doc = "Field `MPSIZ` reader - MPSIZ"] pub type MpsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `MPSIZ` writer - MPSIZ"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ;
#[doc = "Field `USBAEP` reader - USBAEP"] pub type UsbaepR = crate :: BitReader ;
#[doc = "Field `USBAEP` writer - USBAEP"] pub type UsbaepW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EONUM_DPID` reader - EONUM/DPID"] pub type EonumDpidR = crate :: BitReader ;
#[doc = "Field `NAKSTS` reader - NAKSTS"] pub type NakstsR = crate :: BitReader ;
#[doc = "Field `EPTYP` reader - EPTYP"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `EPTYP` writer - EPTYP"] pub type EptypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `SNPM` reader - SNPM"] pub type SnpmR = crate :: BitReader ;
#[doc = "Field `SNPM` writer - SNPM"] pub type SnpmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `Stall` reader - Stall"] pub type StallR = crate :: BitReader ;
#[doc = "Field `Stall` writer - Stall"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CNAK` writer - CNAK"] pub type CnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SNAK` writer - SNAK"] pub type SnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SD0PID_SEVNFRM` writer - SD0PID/SEVNFRM"] pub type Sd0pidSevnfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SODDFRM` writer - SODDFRM"] pub type SoddfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDIS` reader - EPDIS"] pub type EpdisR = crate :: BitReader ;
#[doc = "Field `EPDIS` writer - EPDIS"] pub type EpdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPENA` reader - EPENA"] pub type EpenaR = crate :: BitReader ;
#[doc = "Field `EPENA` writer - EPENA"] pub type EpenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:10 - MPSIZ"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bit 15 - USBAEP"]
#[inline (always)] pub fn usbaep (& self) -> UsbaepR { UsbaepR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - EONUM/DPID"]
#[inline (always)] pub fn eonum_dpid (& self) -> EonumDpidR { EonumDpidR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - NAKSTS"]
#[inline (always)] pub fn naksts (& self) -> NakstsR { NakstsR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - EPTYP"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bit 20 - SNPM"]
#[inline (always)] pub fn snpm (& self) -> SnpmR { SnpmR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Stall"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 30 - EPDIS"]
#[inline (always)] pub fn epdis (& self) -> EpdisR { EpdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - EPENA"]
#[inline (always)] pub fn epena (& self) -> EpenaR { EpenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:10 - MPSIZ"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , Doepctl1Spec > { MpsizW :: new (self , 0) }
#[doc = "Bit 15 - USBAEP"]
#[inline (always)] pub fn usbaep (& mut self) -> UsbaepW < '_ , Doepctl1Spec > { UsbaepW :: new (self , 15) }
#[doc = "Bits 18:19 - EPTYP"]
#[inline (always)] pub fn eptyp (& mut self) -> EptypW < '_ , Doepctl1Spec > { EptypW :: new (self , 18) }
#[doc = "Bit 20 - SNPM"]
#[inline (always)] pub fn snpm (& mut self) -> SnpmW < '_ , Doepctl1Spec > { SnpmW :: new (self , 20) }
#[doc = "Bit 21 - Stall"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , Doepctl1Spec > { StallW :: new (self , 21) }
#[doc = "Bit 26 - CNAK"]
#[inline (always)] pub fn cnak (& mut self) -> CnakW < '_ , Doepctl1Spec > { CnakW :: new (self , 26) }
#[doc = "Bit 27 - SNAK"]
#[inline (always)] pub fn snak (& mut self) -> SnakW < '_ , Doepctl1Spec > { SnakW :: new (self , 27) }
#[doc = "Bit 28 - SD0PID/SEVNFRM"]
#[inline (always)] pub fn sd0pid_sevnfrm (& mut self) -> Sd0pidSevnfrmW < '_ , Doepctl1Spec > { Sd0pidSevnfrmW :: new (self , 28) }
#[doc = "Bit 29 - SODDFRM"]
#[inline (always)] pub fn soddfrm (& mut self) -> SoddfrmW < '_ , Doepctl1Spec > { SoddfrmW :: new (self , 29) }
#[doc = "Bit 30 - EPDIS"]
#[inline (always)] pub fn epdis (& mut self) -> EpdisW < '_ , Doepctl1Spec > { EpdisW :: new (self , 30) }
#[doc = "Bit 31 - EPENA"]
#[inline (always)] pub fn epena (& mut self) -> EpenaW < '_ , Doepctl1Spec > { EpenaW :: new (self , 31) } }
#[doc = "device endpoint-1 control register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepctl1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepctl1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Doepctl1Spec ; impl crate :: RegisterSpec for Doepctl1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`doepctl1::R`](R) reader structure"] impl crate :: Readable for Doepctl1Spec { }
#[doc = "`write(|w| ..)` method takes [`doepctl1::W`](W) writer structure"] impl crate :: Writable for Doepctl1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DOEPCTL1 to value 0"] impl crate :: Resettable for Doepctl1Spec { } }
#[doc = "DOEPCTL2 (rw) register accessor: device endpoint-2 control register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepctl2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepctl2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doepctl2`] module"]
#[doc (alias = "DOEPCTL2")] pub type Doepctl2 = crate :: Reg < doepctl2 :: Doepctl2Spec > ;
#[doc = "device endpoint-2 control register"] pub mod doepctl2 {
#[doc = "Register `DOEPCTL2` reader"] pub type R = crate :: R < Doepctl2Spec > ;
#[doc = "Register `DOEPCTL2` writer"] pub type W = crate :: W < Doepctl2Spec > ;
#[doc = "Field `MPSIZ` reader - MPSIZ"] pub type MpsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `MPSIZ` writer - MPSIZ"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ;
#[doc = "Field `USBAEP` reader - USBAEP"] pub type UsbaepR = crate :: BitReader ;
#[doc = "Field `USBAEP` writer - USBAEP"] pub type UsbaepW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EONUM_DPID` reader - EONUM/DPID"] pub type EonumDpidR = crate :: BitReader ;
#[doc = "Field `NAKSTS` reader - NAKSTS"] pub type NakstsR = crate :: BitReader ;
#[doc = "Field `EPTYP` reader - EPTYP"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `EPTYP` writer - EPTYP"] pub type EptypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `SNPM` reader - SNPM"] pub type SnpmR = crate :: BitReader ;
#[doc = "Field `SNPM` writer - SNPM"] pub type SnpmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `Stall` reader - Stall"] pub type StallR = crate :: BitReader ;
#[doc = "Field `Stall` writer - Stall"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CNAK` writer - CNAK"] pub type CnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SNAK` writer - SNAK"] pub type SnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SD0PID_SEVNFRM` writer - SD0PID/SEVNFRM"] pub type Sd0pidSevnfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SODDFRM` writer - SODDFRM"] pub type SoddfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDIS` reader - EPDIS"] pub type EpdisR = crate :: BitReader ;
#[doc = "Field `EPDIS` writer - EPDIS"] pub type EpdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPENA` reader - EPENA"] pub type EpenaR = crate :: BitReader ;
#[doc = "Field `EPENA` writer - EPENA"] pub type EpenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:10 - MPSIZ"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bit 15 - USBAEP"]
#[inline (always)] pub fn usbaep (& self) -> UsbaepR { UsbaepR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - EONUM/DPID"]
#[inline (always)] pub fn eonum_dpid (& self) -> EonumDpidR { EonumDpidR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - NAKSTS"]
#[inline (always)] pub fn naksts (& self) -> NakstsR { NakstsR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - EPTYP"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bit 20 - SNPM"]
#[inline (always)] pub fn snpm (& self) -> SnpmR { SnpmR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Stall"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 30 - EPDIS"]
#[inline (always)] pub fn epdis (& self) -> EpdisR { EpdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - EPENA"]
#[inline (always)] pub fn epena (& self) -> EpenaR { EpenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:10 - MPSIZ"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , Doepctl2Spec > { MpsizW :: new (self , 0) }
#[doc = "Bit 15 - USBAEP"]
#[inline (always)] pub fn usbaep (& mut self) -> UsbaepW < '_ , Doepctl2Spec > { UsbaepW :: new (self , 15) }
#[doc = "Bits 18:19 - EPTYP"]
#[inline (always)] pub fn eptyp (& mut self) -> EptypW < '_ , Doepctl2Spec > { EptypW :: new (self , 18) }
#[doc = "Bit 20 - SNPM"]
#[inline (always)] pub fn snpm (& mut self) -> SnpmW < '_ , Doepctl2Spec > { SnpmW :: new (self , 20) }
#[doc = "Bit 21 - Stall"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , Doepctl2Spec > { StallW :: new (self , 21) }
#[doc = "Bit 26 - CNAK"]
#[inline (always)] pub fn cnak (& mut self) -> CnakW < '_ , Doepctl2Spec > { CnakW :: new (self , 26) }
#[doc = "Bit 27 - SNAK"]
#[inline (always)] pub fn snak (& mut self) -> SnakW < '_ , Doepctl2Spec > { SnakW :: new (self , 27) }
#[doc = "Bit 28 - SD0PID/SEVNFRM"]
#[inline (always)] pub fn sd0pid_sevnfrm (& mut self) -> Sd0pidSevnfrmW < '_ , Doepctl2Spec > { Sd0pidSevnfrmW :: new (self , 28) }
#[doc = "Bit 29 - SODDFRM"]
#[inline (always)] pub fn soddfrm (& mut self) -> SoddfrmW < '_ , Doepctl2Spec > { SoddfrmW :: new (self , 29) }
#[doc = "Bit 30 - EPDIS"]
#[inline (always)] pub fn epdis (& mut self) -> EpdisW < '_ , Doepctl2Spec > { EpdisW :: new (self , 30) }
#[doc = "Bit 31 - EPENA"]
#[inline (always)] pub fn epena (& mut self) -> EpenaW < '_ , Doepctl2Spec > { EpenaW :: new (self , 31) } }
#[doc = "device endpoint-2 control register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepctl2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepctl2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Doepctl2Spec ; impl crate :: RegisterSpec for Doepctl2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`doepctl2::R`](R) reader structure"] impl crate :: Readable for Doepctl2Spec { }
#[doc = "`write(|w| ..)` method takes [`doepctl2::W`](W) writer structure"] impl crate :: Writable for Doepctl2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DOEPCTL2 to value 0"] impl crate :: Resettable for Doepctl2Spec { } }
#[doc = "DOEPCTL3 (rw) register accessor: device endpoint-3 control register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepctl3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepctl3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doepctl3`] module"]
#[doc (alias = "DOEPCTL3")] pub type Doepctl3 = crate :: Reg < doepctl3 :: Doepctl3Spec > ;
#[doc = "device endpoint-3 control register"] pub mod doepctl3 {
#[doc = "Register `DOEPCTL3` reader"] pub type R = crate :: R < Doepctl3Spec > ;
#[doc = "Register `DOEPCTL3` writer"] pub type W = crate :: W < Doepctl3Spec > ;
#[doc = "Field `MPSIZ` reader - MPSIZ"] pub type MpsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `MPSIZ` writer - MPSIZ"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ;
#[doc = "Field `USBAEP` reader - USBAEP"] pub type UsbaepR = crate :: BitReader ;
#[doc = "Field `USBAEP` writer - USBAEP"] pub type UsbaepW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EONUM_DPID` reader - EONUM/DPID"] pub type EonumDpidR = crate :: BitReader ;
#[doc = "Field `NAKSTS` reader - NAKSTS"] pub type NakstsR = crate :: BitReader ;
#[doc = "Field `EPTYP` reader - EPTYP"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `EPTYP` writer - EPTYP"] pub type EptypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `SNPM` reader - SNPM"] pub type SnpmR = crate :: BitReader ;
#[doc = "Field `SNPM` writer - SNPM"] pub type SnpmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `Stall` reader - Stall"] pub type StallR = crate :: BitReader ;
#[doc = "Field `Stall` writer - Stall"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CNAK` writer - CNAK"] pub type CnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SNAK` writer - SNAK"] pub type SnakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SD0PID_SEVNFRM` writer - SD0PID/SEVNFRM"] pub type Sd0pidSevnfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SODDFRM` writer - SODDFRM"] pub type SoddfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDIS` reader - EPDIS"] pub type EpdisR = crate :: BitReader ;
#[doc = "Field `EPDIS` writer - EPDIS"] pub type EpdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPENA` reader - EPENA"] pub type EpenaR = crate :: BitReader ;
#[doc = "Field `EPENA` writer - EPENA"] pub type EpenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:10 - MPSIZ"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bit 15 - USBAEP"]
#[inline (always)] pub fn usbaep (& self) -> UsbaepR { UsbaepR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - EONUM/DPID"]
#[inline (always)] pub fn eonum_dpid (& self) -> EonumDpidR { EonumDpidR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - NAKSTS"]
#[inline (always)] pub fn naksts (& self) -> NakstsR { NakstsR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - EPTYP"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bit 20 - SNPM"]
#[inline (always)] pub fn snpm (& self) -> SnpmR { SnpmR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Stall"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 30 - EPDIS"]
#[inline (always)] pub fn epdis (& self) -> EpdisR { EpdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - EPENA"]
#[inline (always)] pub fn epena (& self) -> EpenaR { EpenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:10 - MPSIZ"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , Doepctl3Spec > { MpsizW :: new (self , 0) }
#[doc = "Bit 15 - USBAEP"]
#[inline (always)] pub fn usbaep (& mut self) -> UsbaepW < '_ , Doepctl3Spec > { UsbaepW :: new (self , 15) }
#[doc = "Bits 18:19 - EPTYP"]
#[inline (always)] pub fn eptyp (& mut self) -> EptypW < '_ , Doepctl3Spec > { EptypW :: new (self , 18) }
#[doc = "Bit 20 - SNPM"]
#[inline (always)] pub fn snpm (& mut self) -> SnpmW < '_ , Doepctl3Spec > { SnpmW :: new (self , 20) }
#[doc = "Bit 21 - Stall"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , Doepctl3Spec > { StallW :: new (self , 21) }
#[doc = "Bit 26 - CNAK"]
#[inline (always)] pub fn cnak (& mut self) -> CnakW < '_ , Doepctl3Spec > { CnakW :: new (self , 26) }
#[doc = "Bit 27 - SNAK"]
#[inline (always)] pub fn snak (& mut self) -> SnakW < '_ , Doepctl3Spec > { SnakW :: new (self , 27) }
#[doc = "Bit 28 - SD0PID/SEVNFRM"]
#[inline (always)] pub fn sd0pid_sevnfrm (& mut self) -> Sd0pidSevnfrmW < '_ , Doepctl3Spec > { Sd0pidSevnfrmW :: new (self , 28) }
#[doc = "Bit 29 - SODDFRM"]
#[inline (always)] pub fn soddfrm (& mut self) -> SoddfrmW < '_ , Doepctl3Spec > { SoddfrmW :: new (self , 29) }
#[doc = "Bit 30 - EPDIS"]
#[inline (always)] pub fn epdis (& mut self) -> EpdisW < '_ , Doepctl3Spec > { EpdisW :: new (self , 30) }
#[doc = "Bit 31 - EPENA"]
#[inline (always)] pub fn epena (& mut self) -> EpenaW < '_ , Doepctl3Spec > { EpenaW :: new (self , 31) } }
#[doc = "device endpoint-3 control register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepctl3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepctl3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Doepctl3Spec ; impl crate :: RegisterSpec for Doepctl3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`doepctl3::R`](R) reader structure"] impl crate :: Readable for Doepctl3Spec { }
#[doc = "`write(|w| ..)` method takes [`doepctl3::W`](W) writer structure"] impl crate :: Writable for Doepctl3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DOEPCTL3 to value 0"] impl crate :: Resettable for Doepctl3Spec { } }
#[doc = "DIEPINT0 (rw) register accessor: device endpoint-x interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepint0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepint0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@diepint0`] module"]
#[doc (alias = "DIEPINT0")] pub type Diepint0 = crate :: Reg < diepint0 :: Diepint0Spec > ;
#[doc = "device endpoint-x interrupt register"] pub mod diepint0 {
#[doc = "Register `DIEPINT0` reader"] pub type R = crate :: R < Diepint0Spec > ;
#[doc = "Register `DIEPINT0` writer"] pub type W = crate :: W < Diepint0Spec > ;
#[doc = "Field `XFRC` reader - XFRC"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - XFRC"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDISD` reader - EPDISD"] pub type EpdisdR = crate :: BitReader ;
#[doc = "Field `EPDISD` writer - EPDISD"] pub type EpdisdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TOC` reader - TOC"] pub type TocR = crate :: BitReader ;
#[doc = "Field `TOC` writer - TOC"] pub type TocW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ITTXFE` reader - ITTXFE"] pub type IttxfeR = crate :: BitReader ;
#[doc = "Field `ITTXFE` writer - ITTXFE"] pub type IttxfeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `INEPNE` reader - INEPNE"] pub type InepneR = crate :: BitReader ;
#[doc = "Field `INEPNE` writer - INEPNE"] pub type InepneW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFE` reader - TXFE"] pub type TxfeR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& self) -> EpdisdR { EpdisdR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - TOC"]
#[inline (always)] pub fn toc (& self) -> TocR { TocR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - ITTXFE"]
#[inline (always)] pub fn ittxfe (& self) -> IttxfeR { IttxfeR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 6 - INEPNE"]
#[inline (always)] pub fn inepne (& self) -> InepneR { InepneR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - TXFE"]
#[inline (always)] pub fn txfe (& self) -> TxfeR { TxfeR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , Diepint0Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& mut self) -> EpdisdW < '_ , Diepint0Spec > { EpdisdW :: new (self , 1) }
#[doc = "Bit 3 - TOC"]
#[inline (always)] pub fn toc (& mut self) -> TocW < '_ , Diepint0Spec > { TocW :: new (self , 3) }
#[doc = "Bit 4 - ITTXFE"]
#[inline (always)] pub fn ittxfe (& mut self) -> IttxfeW < '_ , Diepint0Spec > { IttxfeW :: new (self , 4) }
#[doc = "Bit 6 - INEPNE"]
#[inline (always)] pub fn inepne (& mut self) -> InepneW < '_ , Diepint0Spec > { InepneW :: new (self , 6) } }
#[doc = "device endpoint-x interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepint0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepint0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Diepint0Spec ; impl crate :: RegisterSpec for Diepint0Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`diepint0::R`](R) reader structure"] impl crate :: Readable for Diepint0Spec { }
#[doc = "`write(|w| ..)` method takes [`diepint0::W`](W) writer structure"] impl crate :: Writable for Diepint0Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIEPINT0 to value 0x80"] impl crate :: Resettable for Diepint0Spec { const RESET_VALUE : u32 = 0x80 ; } }
#[doc = "DIEPINT1 (rw) register accessor: device endpoint-1 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepint1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepint1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@diepint1`] module"]
#[doc (alias = "DIEPINT1")] pub type Diepint1 = crate :: Reg < diepint1 :: Diepint1Spec > ;
#[doc = "device endpoint-1 interrupt register"] pub mod diepint1 {
#[doc = "Register `DIEPINT1` reader"] pub type R = crate :: R < Diepint1Spec > ;
#[doc = "Register `DIEPINT1` writer"] pub type W = crate :: W < Diepint1Spec > ;
#[doc = "Field `XFRC` reader - XFRC"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - XFRC"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDISD` reader - EPDISD"] pub type EpdisdR = crate :: BitReader ;
#[doc = "Field `EPDISD` writer - EPDISD"] pub type EpdisdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TOC` reader - TOC"] pub type TocR = crate :: BitReader ;
#[doc = "Field `TOC` writer - TOC"] pub type TocW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ITTXFE` reader - ITTXFE"] pub type IttxfeR = crate :: BitReader ;
#[doc = "Field `ITTXFE` writer - ITTXFE"] pub type IttxfeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `INEPNE` reader - INEPNE"] pub type InepneR = crate :: BitReader ;
#[doc = "Field `INEPNE` writer - INEPNE"] pub type InepneW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFE` reader - TXFE"] pub type TxfeR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& self) -> EpdisdR { EpdisdR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - TOC"]
#[inline (always)] pub fn toc (& self) -> TocR { TocR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - ITTXFE"]
#[inline (always)] pub fn ittxfe (& self) -> IttxfeR { IttxfeR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 6 - INEPNE"]
#[inline (always)] pub fn inepne (& self) -> InepneR { InepneR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - TXFE"]
#[inline (always)] pub fn txfe (& self) -> TxfeR { TxfeR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , Diepint1Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& mut self) -> EpdisdW < '_ , Diepint1Spec > { EpdisdW :: new (self , 1) }
#[doc = "Bit 3 - TOC"]
#[inline (always)] pub fn toc (& mut self) -> TocW < '_ , Diepint1Spec > { TocW :: new (self , 3) }
#[doc = "Bit 4 - ITTXFE"]
#[inline (always)] pub fn ittxfe (& mut self) -> IttxfeW < '_ , Diepint1Spec > { IttxfeW :: new (self , 4) }
#[doc = "Bit 6 - INEPNE"]
#[inline (always)] pub fn inepne (& mut self) -> InepneW < '_ , Diepint1Spec > { InepneW :: new (self , 6) } }
#[doc = "device endpoint-1 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepint1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepint1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Diepint1Spec ; impl crate :: RegisterSpec for Diepint1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`diepint1::R`](R) reader structure"] impl crate :: Readable for Diepint1Spec { }
#[doc = "`write(|w| ..)` method takes [`diepint1::W`](W) writer structure"] impl crate :: Writable for Diepint1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIEPINT1 to value 0x80"] impl crate :: Resettable for Diepint1Spec { const RESET_VALUE : u32 = 0x80 ; } }
#[doc = "DIEPINT2 (rw) register accessor: device endpoint-2 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepint2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepint2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@diepint2`] module"]
#[doc (alias = "DIEPINT2")] pub type Diepint2 = crate :: Reg < diepint2 :: Diepint2Spec > ;
#[doc = "device endpoint-2 interrupt register"] pub mod diepint2 {
#[doc = "Register `DIEPINT2` reader"] pub type R = crate :: R < Diepint2Spec > ;
#[doc = "Register `DIEPINT2` writer"] pub type W = crate :: W < Diepint2Spec > ;
#[doc = "Field `XFRC` reader - XFRC"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - XFRC"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDISD` reader - EPDISD"] pub type EpdisdR = crate :: BitReader ;
#[doc = "Field `EPDISD` writer - EPDISD"] pub type EpdisdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TOC` reader - TOC"] pub type TocR = crate :: BitReader ;
#[doc = "Field `TOC` writer - TOC"] pub type TocW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ITTXFE` reader - ITTXFE"] pub type IttxfeR = crate :: BitReader ;
#[doc = "Field `ITTXFE` writer - ITTXFE"] pub type IttxfeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `INEPNE` reader - INEPNE"] pub type InepneR = crate :: BitReader ;
#[doc = "Field `INEPNE` writer - INEPNE"] pub type InepneW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFE` reader - TXFE"] pub type TxfeR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& self) -> EpdisdR { EpdisdR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - TOC"]
#[inline (always)] pub fn toc (& self) -> TocR { TocR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - ITTXFE"]
#[inline (always)] pub fn ittxfe (& self) -> IttxfeR { IttxfeR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 6 - INEPNE"]
#[inline (always)] pub fn inepne (& self) -> InepneR { InepneR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - TXFE"]
#[inline (always)] pub fn txfe (& self) -> TxfeR { TxfeR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , Diepint2Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& mut self) -> EpdisdW < '_ , Diepint2Spec > { EpdisdW :: new (self , 1) }
#[doc = "Bit 3 - TOC"]
#[inline (always)] pub fn toc (& mut self) -> TocW < '_ , Diepint2Spec > { TocW :: new (self , 3) }
#[doc = "Bit 4 - ITTXFE"]
#[inline (always)] pub fn ittxfe (& mut self) -> IttxfeW < '_ , Diepint2Spec > { IttxfeW :: new (self , 4) }
#[doc = "Bit 6 - INEPNE"]
#[inline (always)] pub fn inepne (& mut self) -> InepneW < '_ , Diepint2Spec > { InepneW :: new (self , 6) } }
#[doc = "device endpoint-2 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepint2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepint2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Diepint2Spec ; impl crate :: RegisterSpec for Diepint2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`diepint2::R`](R) reader structure"] impl crate :: Readable for Diepint2Spec { }
#[doc = "`write(|w| ..)` method takes [`diepint2::W`](W) writer structure"] impl crate :: Writable for Diepint2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIEPINT2 to value 0x80"] impl crate :: Resettable for Diepint2Spec { const RESET_VALUE : u32 = 0x80 ; } }
#[doc = "DIEPINT3 (rw) register accessor: device endpoint-3 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepint3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepint3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@diepint3`] module"]
#[doc (alias = "DIEPINT3")] pub type Diepint3 = crate :: Reg < diepint3 :: Diepint3Spec > ;
#[doc = "device endpoint-3 interrupt register"] pub mod diepint3 {
#[doc = "Register `DIEPINT3` reader"] pub type R = crate :: R < Diepint3Spec > ;
#[doc = "Register `DIEPINT3` writer"] pub type W = crate :: W < Diepint3Spec > ;
#[doc = "Field `XFRC` reader - XFRC"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - XFRC"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDISD` reader - EPDISD"] pub type EpdisdR = crate :: BitReader ;
#[doc = "Field `EPDISD` writer - EPDISD"] pub type EpdisdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TOC` reader - TOC"] pub type TocR = crate :: BitReader ;
#[doc = "Field `TOC` writer - TOC"] pub type TocW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ITTXFE` reader - ITTXFE"] pub type IttxfeR = crate :: BitReader ;
#[doc = "Field `ITTXFE` writer - ITTXFE"] pub type IttxfeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `INEPNE` reader - INEPNE"] pub type InepneR = crate :: BitReader ;
#[doc = "Field `INEPNE` writer - INEPNE"] pub type InepneW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFE` reader - TXFE"] pub type TxfeR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& self) -> EpdisdR { EpdisdR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - TOC"]
#[inline (always)] pub fn toc (& self) -> TocR { TocR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - ITTXFE"]
#[inline (always)] pub fn ittxfe (& self) -> IttxfeR { IttxfeR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 6 - INEPNE"]
#[inline (always)] pub fn inepne (& self) -> InepneR { InepneR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - TXFE"]
#[inline (always)] pub fn txfe (& self) -> TxfeR { TxfeR :: new (((self . bits >> 7) & 1) != 0) } } impl W {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , Diepint3Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& mut self) -> EpdisdW < '_ , Diepint3Spec > { EpdisdW :: new (self , 1) }
#[doc = "Bit 3 - TOC"]
#[inline (always)] pub fn toc (& mut self) -> TocW < '_ , Diepint3Spec > { TocW :: new (self , 3) }
#[doc = "Bit 4 - ITTXFE"]
#[inline (always)] pub fn ittxfe (& mut self) -> IttxfeW < '_ , Diepint3Spec > { IttxfeW :: new (self , 4) }
#[doc = "Bit 6 - INEPNE"]
#[inline (always)] pub fn inepne (& mut self) -> InepneW < '_ , Diepint3Spec > { InepneW :: new (self , 6) } }
#[doc = "device endpoint-3 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`diepint3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`diepint3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Diepint3Spec ; impl crate :: RegisterSpec for Diepint3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`diepint3::R`](R) reader structure"] impl crate :: Readable for Diepint3Spec { }
#[doc = "`write(|w| ..)` method takes [`diepint3::W`](W) writer structure"] impl crate :: Writable for Diepint3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIEPINT3 to value 0x80"] impl crate :: Resettable for Diepint3Spec { const RESET_VALUE : u32 = 0x80 ; } }
#[doc = "DOEPINT0 (rw) register accessor: device endpoint-0 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepint0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepint0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doepint0`] module"]
#[doc (alias = "DOEPINT0")] pub type Doepint0 = crate :: Reg < doepint0 :: Doepint0Spec > ;
#[doc = "device endpoint-0 interrupt register"] pub mod doepint0 {
#[doc = "Register `DOEPINT0` reader"] pub type R = crate :: R < Doepint0Spec > ;
#[doc = "Register `DOEPINT0` writer"] pub type W = crate :: W < Doepint0Spec > ;
#[doc = "Field `XFRC` reader - XFRC"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - XFRC"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDISD` reader - EPDISD"] pub type EpdisdR = crate :: BitReader ;
#[doc = "Field `EPDISD` writer - EPDISD"] pub type EpdisdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STUP` reader - STUP"] pub type StupR = crate :: BitReader ;
#[doc = "Field `STUP` writer - STUP"] pub type StupW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OTEPDIS` reader - OTEPDIS"] pub type OtepdisR = crate :: BitReader ;
#[doc = "Field `OTEPDIS` writer - OTEPDIS"] pub type OtepdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `B2BSTUP` reader - B2BSTUP"] pub type B2bstupR = crate :: BitReader ;
#[doc = "Field `B2BSTUP` writer - B2BSTUP"] pub type B2bstupW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& self) -> EpdisdR { EpdisdR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STUP"]
#[inline (always)] pub fn stup (& self) -> StupR { StupR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - OTEPDIS"]
#[inline (always)] pub fn otepdis (& self) -> OtepdisR { OtepdisR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 6 - B2BSTUP"]
#[inline (always)] pub fn b2bstup (& self) -> B2bstupR { B2bstupR :: new (((self . bits >> 6) & 1) != 0) } } impl W {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , Doepint0Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& mut self) -> EpdisdW < '_ , Doepint0Spec > { EpdisdW :: new (self , 1) }
#[doc = "Bit 3 - STUP"]
#[inline (always)] pub fn stup (& mut self) -> StupW < '_ , Doepint0Spec > { StupW :: new (self , 3) }
#[doc = "Bit 4 - OTEPDIS"]
#[inline (always)] pub fn otepdis (& mut self) -> OtepdisW < '_ , Doepint0Spec > { OtepdisW :: new (self , 4) }
#[doc = "Bit 6 - B2BSTUP"]
#[inline (always)] pub fn b2bstup (& mut self) -> B2bstupW < '_ , Doepint0Spec > { B2bstupW :: new (self , 6) } }
#[doc = "device endpoint-0 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepint0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepint0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Doepint0Spec ; impl crate :: RegisterSpec for Doepint0Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`doepint0::R`](R) reader structure"] impl crate :: Readable for Doepint0Spec { }
#[doc = "`write(|w| ..)` method takes [`doepint0::W`](W) writer structure"] impl crate :: Writable for Doepint0Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DOEPINT0 to value 0x80"] impl crate :: Resettable for Doepint0Spec { const RESET_VALUE : u32 = 0x80 ; } }
#[doc = "DOEPINT1 (rw) register accessor: device endpoint-1 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepint1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepint1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doepint1`] module"]
#[doc (alias = "DOEPINT1")] pub type Doepint1 = crate :: Reg < doepint1 :: Doepint1Spec > ;
#[doc = "device endpoint-1 interrupt register"] pub mod doepint1 {
#[doc = "Register `DOEPINT1` reader"] pub type R = crate :: R < Doepint1Spec > ;
#[doc = "Register `DOEPINT1` writer"] pub type W = crate :: W < Doepint1Spec > ;
#[doc = "Field `XFRC` reader - XFRC"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - XFRC"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDISD` reader - EPDISD"] pub type EpdisdR = crate :: BitReader ;
#[doc = "Field `EPDISD` writer - EPDISD"] pub type EpdisdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STUP` reader - STUP"] pub type StupR = crate :: BitReader ;
#[doc = "Field `STUP` writer - STUP"] pub type StupW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OTEPDIS` reader - OTEPDIS"] pub type OtepdisR = crate :: BitReader ;
#[doc = "Field `OTEPDIS` writer - OTEPDIS"] pub type OtepdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `B2BSTUP` reader - B2BSTUP"] pub type B2bstupR = crate :: BitReader ;
#[doc = "Field `B2BSTUP` writer - B2BSTUP"] pub type B2bstupW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& self) -> EpdisdR { EpdisdR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STUP"]
#[inline (always)] pub fn stup (& self) -> StupR { StupR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - OTEPDIS"]
#[inline (always)] pub fn otepdis (& self) -> OtepdisR { OtepdisR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 6 - B2BSTUP"]
#[inline (always)] pub fn b2bstup (& self) -> B2bstupR { B2bstupR :: new (((self . bits >> 6) & 1) != 0) } } impl W {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , Doepint1Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& mut self) -> EpdisdW < '_ , Doepint1Spec > { EpdisdW :: new (self , 1) }
#[doc = "Bit 3 - STUP"]
#[inline (always)] pub fn stup (& mut self) -> StupW < '_ , Doepint1Spec > { StupW :: new (self , 3) }
#[doc = "Bit 4 - OTEPDIS"]
#[inline (always)] pub fn otepdis (& mut self) -> OtepdisW < '_ , Doepint1Spec > { OtepdisW :: new (self , 4) }
#[doc = "Bit 6 - B2BSTUP"]
#[inline (always)] pub fn b2bstup (& mut self) -> B2bstupW < '_ , Doepint1Spec > { B2bstupW :: new (self , 6) } }
#[doc = "device endpoint-1 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepint1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepint1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Doepint1Spec ; impl crate :: RegisterSpec for Doepint1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`doepint1::R`](R) reader structure"] impl crate :: Readable for Doepint1Spec { }
#[doc = "`write(|w| ..)` method takes [`doepint1::W`](W) writer structure"] impl crate :: Writable for Doepint1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DOEPINT1 to value 0x80"] impl crate :: Resettable for Doepint1Spec { const RESET_VALUE : u32 = 0x80 ; } }
#[doc = "DOEPINT2 (rw) register accessor: device endpoint-2 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepint2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepint2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doepint2`] module"]
#[doc (alias = "DOEPINT2")] pub type Doepint2 = crate :: Reg < doepint2 :: Doepint2Spec > ;
#[doc = "device endpoint-2 interrupt register"] pub mod doepint2 {
#[doc = "Register `DOEPINT2` reader"] pub type R = crate :: R < Doepint2Spec > ;
#[doc = "Register `DOEPINT2` writer"] pub type W = crate :: W < Doepint2Spec > ;
#[doc = "Field `XFRC` reader - XFRC"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - XFRC"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDISD` reader - EPDISD"] pub type EpdisdR = crate :: BitReader ;
#[doc = "Field `EPDISD` writer - EPDISD"] pub type EpdisdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STUP` reader - STUP"] pub type StupR = crate :: BitReader ;
#[doc = "Field `STUP` writer - STUP"] pub type StupW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OTEPDIS` reader - OTEPDIS"] pub type OtepdisR = crate :: BitReader ;
#[doc = "Field `OTEPDIS` writer - OTEPDIS"] pub type OtepdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `B2BSTUP` reader - B2BSTUP"] pub type B2bstupR = crate :: BitReader ;
#[doc = "Field `B2BSTUP` writer - B2BSTUP"] pub type B2bstupW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& self) -> EpdisdR { EpdisdR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STUP"]
#[inline (always)] pub fn stup (& self) -> StupR { StupR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - OTEPDIS"]
#[inline (always)] pub fn otepdis (& self) -> OtepdisR { OtepdisR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 6 - B2BSTUP"]
#[inline (always)] pub fn b2bstup (& self) -> B2bstupR { B2bstupR :: new (((self . bits >> 6) & 1) != 0) } } impl W {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , Doepint2Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& mut self) -> EpdisdW < '_ , Doepint2Spec > { EpdisdW :: new (self , 1) }
#[doc = "Bit 3 - STUP"]
#[inline (always)] pub fn stup (& mut self) -> StupW < '_ , Doepint2Spec > { StupW :: new (self , 3) }
#[doc = "Bit 4 - OTEPDIS"]
#[inline (always)] pub fn otepdis (& mut self) -> OtepdisW < '_ , Doepint2Spec > { OtepdisW :: new (self , 4) }
#[doc = "Bit 6 - B2BSTUP"]
#[inline (always)] pub fn b2bstup (& mut self) -> B2bstupW < '_ , Doepint2Spec > { B2bstupW :: new (self , 6) } }
#[doc = "device endpoint-2 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepint2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepint2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Doepint2Spec ; impl crate :: RegisterSpec for Doepint2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`doepint2::R`](R) reader structure"] impl crate :: Readable for Doepint2Spec { }
#[doc = "`write(|w| ..)` method takes [`doepint2::W`](W) writer structure"] impl crate :: Writable for Doepint2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DOEPINT2 to value 0x80"] impl crate :: Resettable for Doepint2Spec { const RESET_VALUE : u32 = 0x80 ; } }
#[doc = "DOEPINT3 (rw) register accessor: device endpoint-3 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepint3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepint3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doepint3`] module"]
#[doc (alias = "DOEPINT3")] pub type Doepint3 = crate :: Reg < doepint3 :: Doepint3Spec > ;
#[doc = "device endpoint-3 interrupt register"] pub mod doepint3 {
#[doc = "Register `DOEPINT3` reader"] pub type R = crate :: R < Doepint3Spec > ;
#[doc = "Register `DOEPINT3` writer"] pub type W = crate :: W < Doepint3Spec > ;
#[doc = "Field `XFRC` reader - XFRC"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - XFRC"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPDISD` reader - EPDISD"] pub type EpdisdR = crate :: BitReader ;
#[doc = "Field `EPDISD` writer - EPDISD"] pub type EpdisdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STUP` reader - STUP"] pub type StupR = crate :: BitReader ;
#[doc = "Field `STUP` writer - STUP"] pub type StupW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OTEPDIS` reader - OTEPDIS"] pub type OtepdisR = crate :: BitReader ;
#[doc = "Field `OTEPDIS` writer - OTEPDIS"] pub type OtepdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `B2BSTUP` reader - B2BSTUP"] pub type B2bstupR = crate :: BitReader ;
#[doc = "Field `B2BSTUP` writer - B2BSTUP"] pub type B2bstupW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& self) -> EpdisdR { EpdisdR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STUP"]
#[inline (always)] pub fn stup (& self) -> StupR { StupR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - OTEPDIS"]
#[inline (always)] pub fn otepdis (& self) -> OtepdisR { OtepdisR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 6 - B2BSTUP"]
#[inline (always)] pub fn b2bstup (& self) -> B2bstupR { B2bstupR :: new (((self . bits >> 6) & 1) != 0) } } impl W {
#[doc = "Bit 0 - XFRC"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , Doepint3Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - EPDISD"]
#[inline (always)] pub fn epdisd (& mut self) -> EpdisdW < '_ , Doepint3Spec > { EpdisdW :: new (self , 1) }
#[doc = "Bit 3 - STUP"]
#[inline (always)] pub fn stup (& mut self) -> StupW < '_ , Doepint3Spec > { StupW :: new (self , 3) }
#[doc = "Bit 4 - OTEPDIS"]
#[inline (always)] pub fn otepdis (& mut self) -> OtepdisW < '_ , Doepint3Spec > { OtepdisW :: new (self , 4) }
#[doc = "Bit 6 - B2BSTUP"]
#[inline (always)] pub fn b2bstup (& mut self) -> B2bstupW < '_ , Doepint3Spec > { B2bstupW :: new (self , 6) } }
#[doc = "device endpoint-3 interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`doepint3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doepint3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Doepint3Spec ; impl crate :: RegisterSpec for Doepint3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`doepint3::R`](R) reader structure"] impl crate :: Readable for Doepint3Spec { }
#[doc = "`write(|w| ..)` method takes [`doepint3::W`](W) writer structure"] impl crate :: Writable for Doepint3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DOEPINT3 to value 0x80"] impl crate :: Resettable for Doepint3Spec { const RESET_VALUE : u32 = 0x80 ; } }
#[doc = "DIEPTSIZ0 (rw) register accessor: device endpoint-0 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`dieptsiz0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dieptsiz0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dieptsiz0`] module"]
#[doc (alias = "DIEPTSIZ0")] pub type Dieptsiz0 = crate :: Reg < dieptsiz0 :: Dieptsiz0Spec > ;
#[doc = "device endpoint-0 transfer size register"] pub mod dieptsiz0 {
#[doc = "Register `DIEPTSIZ0` reader"] pub type R = crate :: R < Dieptsiz0Spec > ;
#[doc = "Register `DIEPTSIZ0` writer"] pub type W = crate :: W < Dieptsiz0Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:6 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new ((self . bits & 0x7f) as u8) }
#[doc = "Bits 19:20 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 3) as u8) } } impl W {
#[doc = "Bits 0:6 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , Dieptsiz0Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:20 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , Dieptsiz0Spec > { PktcntW :: new (self , 19) } }
#[doc = "device endpoint-0 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`dieptsiz0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dieptsiz0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dieptsiz0Spec ; impl crate :: RegisterSpec for Dieptsiz0Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dieptsiz0::R`](R) reader structure"] impl crate :: Readable for Dieptsiz0Spec { }
#[doc = "`write(|w| ..)` method takes [`dieptsiz0::W`](W) writer structure"] impl crate :: Writable for Dieptsiz0Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIEPTSIZ0 to value 0"] impl crate :: Resettable for Dieptsiz0Spec { } }
#[doc = "DOEPTSIZ0 (rw) register accessor: device OUT endpoint-0 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`doeptsiz0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doeptsiz0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doeptsiz0`] module"]
#[doc (alias = "DOEPTSIZ0")] pub type Doeptsiz0 = crate :: Reg < doeptsiz0 :: Doeptsiz0Spec > ;
#[doc = "device OUT endpoint-0 transfer size register"] pub mod doeptsiz0 {
#[doc = "Register `DOEPTSIZ0` reader"] pub type R = crate :: R < Doeptsiz0Spec > ;
#[doc = "Register `DOEPTSIZ0` writer"] pub type W = crate :: W < Doeptsiz0Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: BitReader ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STUPCNT` reader - SETUP packet count"] pub type StupcntR = crate :: FieldReader ;
#[doc = "Field `STUPCNT` writer - SETUP packet count"] pub type StupcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:6 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new ((self . bits & 0x7f) as u8) }
#[doc = "Bit 19 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bits 29:30 - SETUP packet count"]
#[inline (always)] pub fn stupcnt (& self) -> StupcntR { StupcntR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:6 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , Doeptsiz0Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bit 19 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , Doeptsiz0Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - SETUP packet count"]
#[inline (always)] pub fn stupcnt (& mut self) -> StupcntW < '_ , Doeptsiz0Spec > { StupcntW :: new (self , 29) } }
#[doc = "device OUT endpoint-0 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`doeptsiz0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doeptsiz0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Doeptsiz0Spec ; impl crate :: RegisterSpec for Doeptsiz0Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`doeptsiz0::R`](R) reader structure"] impl crate :: Readable for Doeptsiz0Spec { }
#[doc = "`write(|w| ..)` method takes [`doeptsiz0::W`](W) writer structure"] impl crate :: Writable for Doeptsiz0Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DOEPTSIZ0 to value 0"] impl crate :: Resettable for Doeptsiz0Spec { } }
#[doc = "DIEPTSIZ1 (rw) register accessor: device endpoint-1 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`dieptsiz1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dieptsiz1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dieptsiz1`] module"]
#[doc (alias = "DIEPTSIZ1")] pub type Dieptsiz1 = crate :: Reg < dieptsiz1 :: Dieptsiz1Spec > ;
#[doc = "device endpoint-1 transfer size register"] pub mod dieptsiz1 {
#[doc = "Register `DIEPTSIZ1` reader"] pub type R = crate :: R < Dieptsiz1Spec > ;
#[doc = "Register `DIEPTSIZ1` writer"] pub type W = crate :: W < Dieptsiz1Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader < u32 > ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 19 , u32 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `MCNT` reader - Multi count"] pub type McntR = crate :: FieldReader ;
#[doc = "Field `MCNT` writer - Multi count"] pub type McntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new (self . bits & 0x0007_ffff) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 0x03ff) as u16) }
#[doc = "Bits 29:30 - Multi count"]
#[inline (always)] pub fn mcnt (& self) -> McntR { McntR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , Dieptsiz1Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , Dieptsiz1Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - Multi count"]
#[inline (always)] pub fn mcnt (& mut self) -> McntW < '_ , Dieptsiz1Spec > { McntW :: new (self , 29) } }
#[doc = "device endpoint-1 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`dieptsiz1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dieptsiz1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dieptsiz1Spec ; impl crate :: RegisterSpec for Dieptsiz1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dieptsiz1::R`](R) reader structure"] impl crate :: Readable for Dieptsiz1Spec { }
#[doc = "`write(|w| ..)` method takes [`dieptsiz1::W`](W) writer structure"] impl crate :: Writable for Dieptsiz1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIEPTSIZ1 to value 0"] impl crate :: Resettable for Dieptsiz1Spec { } }
#[doc = "DIEPTSIZ2 (rw) register accessor: device endpoint-2 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`dieptsiz2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dieptsiz2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dieptsiz2`] module"]
#[doc (alias = "DIEPTSIZ2")] pub type Dieptsiz2 = crate :: Reg < dieptsiz2 :: Dieptsiz2Spec > ;
#[doc = "device endpoint-2 transfer size register"] pub mod dieptsiz2 {
#[doc = "Register `DIEPTSIZ2` reader"] pub type R = crate :: R < Dieptsiz2Spec > ;
#[doc = "Register `DIEPTSIZ2` writer"] pub type W = crate :: W < Dieptsiz2Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader < u32 > ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 19 , u32 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `MCNT` reader - Multi count"] pub type McntR = crate :: FieldReader ;
#[doc = "Field `MCNT` writer - Multi count"] pub type McntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new (self . bits & 0x0007_ffff) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 0x03ff) as u16) }
#[doc = "Bits 29:30 - Multi count"]
#[inline (always)] pub fn mcnt (& self) -> McntR { McntR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , Dieptsiz2Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , Dieptsiz2Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - Multi count"]
#[inline (always)] pub fn mcnt (& mut self) -> McntW < '_ , Dieptsiz2Spec > { McntW :: new (self , 29) } }
#[doc = "device endpoint-2 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`dieptsiz2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dieptsiz2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dieptsiz2Spec ; impl crate :: RegisterSpec for Dieptsiz2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dieptsiz2::R`](R) reader structure"] impl crate :: Readable for Dieptsiz2Spec { }
#[doc = "`write(|w| ..)` method takes [`dieptsiz2::W`](W) writer structure"] impl crate :: Writable for Dieptsiz2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIEPTSIZ2 to value 0"] impl crate :: Resettable for Dieptsiz2Spec { } }
#[doc = "DIEPTSIZ3 (rw) register accessor: device endpoint-3 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`dieptsiz3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dieptsiz3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dieptsiz3`] module"]
#[doc (alias = "DIEPTSIZ3")] pub type Dieptsiz3 = crate :: Reg < dieptsiz3 :: Dieptsiz3Spec > ;
#[doc = "device endpoint-3 transfer size register"] pub mod dieptsiz3 {
#[doc = "Register `DIEPTSIZ3` reader"] pub type R = crate :: R < Dieptsiz3Spec > ;
#[doc = "Register `DIEPTSIZ3` writer"] pub type W = crate :: W < Dieptsiz3Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader < u32 > ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 19 , u32 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `MCNT` reader - Multi count"] pub type McntR = crate :: FieldReader ;
#[doc = "Field `MCNT` writer - Multi count"] pub type McntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new (self . bits & 0x0007_ffff) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 0x03ff) as u16) }
#[doc = "Bits 29:30 - Multi count"]
#[inline (always)] pub fn mcnt (& self) -> McntR { McntR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , Dieptsiz3Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , Dieptsiz3Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - Multi count"]
#[inline (always)] pub fn mcnt (& mut self) -> McntW < '_ , Dieptsiz3Spec > { McntW :: new (self , 29) } }
#[doc = "device endpoint-3 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`dieptsiz3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dieptsiz3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dieptsiz3Spec ; impl crate :: RegisterSpec for Dieptsiz3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dieptsiz3::R`](R) reader structure"] impl crate :: Readable for Dieptsiz3Spec { }
#[doc = "`write(|w| ..)` method takes [`dieptsiz3::W`](W) writer structure"] impl crate :: Writable for Dieptsiz3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DIEPTSIZ3 to value 0"] impl crate :: Resettable for Dieptsiz3Spec { } }
#[doc = "DTXFSTS0 (r) register accessor: OTG_FS device IN endpoint transmit FIFO status register\n\nYou can [`read`](crate::Reg::read) this register and get [`dtxfsts0::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dtxfsts0`] module"]
#[doc (alias = "DTXFSTS0")] pub type Dtxfsts0 = crate :: Reg < dtxfsts0 :: Dtxfsts0Spec > ;
#[doc = "OTG_FS device IN endpoint transmit FIFO status register"] pub mod dtxfsts0 {
#[doc = "Register `DTXFSTS0` reader"] pub type R = crate :: R < Dtxfsts0Spec > ;
#[doc = "Field `INEPTFSAV` reader - IN endpoint TxFIFO space available"] pub type IneptfsavR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - IN endpoint TxFIFO space available"]
#[inline (always)] pub fn ineptfsav (& self) -> IneptfsavR { IneptfsavR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "OTG_FS device IN endpoint transmit FIFO status register\n\nYou can [`read`](crate::Reg::read) this register and get [`dtxfsts0::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dtxfsts0Spec ; impl crate :: RegisterSpec for Dtxfsts0Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dtxfsts0::R`](R) reader structure"] impl crate :: Readable for Dtxfsts0Spec { }
#[doc = "`reset()` method sets DTXFSTS0 to value 0"] impl crate :: Resettable for Dtxfsts0Spec { } }
#[doc = "DTXFSTS1 (r) register accessor: OTG_FS device IN endpoint transmit FIFO status register\n\nYou can [`read`](crate::Reg::read) this register and get [`dtxfsts1::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dtxfsts1`] module"]
#[doc (alias = "DTXFSTS1")] pub type Dtxfsts1 = crate :: Reg < dtxfsts1 :: Dtxfsts1Spec > ;
#[doc = "OTG_FS device IN endpoint transmit FIFO status register"] pub mod dtxfsts1 {
#[doc = "Register `DTXFSTS1` reader"] pub type R = crate :: R < Dtxfsts1Spec > ;
#[doc = "Field `INEPTFSAV` reader - IN endpoint TxFIFO space available"] pub type IneptfsavR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - IN endpoint TxFIFO space available"]
#[inline (always)] pub fn ineptfsav (& self) -> IneptfsavR { IneptfsavR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "OTG_FS device IN endpoint transmit FIFO status register\n\nYou can [`read`](crate::Reg::read) this register and get [`dtxfsts1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dtxfsts1Spec ; impl crate :: RegisterSpec for Dtxfsts1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dtxfsts1::R`](R) reader structure"] impl crate :: Readable for Dtxfsts1Spec { }
#[doc = "`reset()` method sets DTXFSTS1 to value 0"] impl crate :: Resettable for Dtxfsts1Spec { } }
#[doc = "DTXFSTS2 (r) register accessor: OTG_FS device IN endpoint transmit FIFO status register\n\nYou can [`read`](crate::Reg::read) this register and get [`dtxfsts2::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dtxfsts2`] module"]
#[doc (alias = "DTXFSTS2")] pub type Dtxfsts2 = crate :: Reg < dtxfsts2 :: Dtxfsts2Spec > ;
#[doc = "OTG_FS device IN endpoint transmit FIFO status register"] pub mod dtxfsts2 {
#[doc = "Register `DTXFSTS2` reader"] pub type R = crate :: R < Dtxfsts2Spec > ;
#[doc = "Field `INEPTFSAV` reader - IN endpoint TxFIFO space available"] pub type IneptfsavR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - IN endpoint TxFIFO space available"]
#[inline (always)] pub fn ineptfsav (& self) -> IneptfsavR { IneptfsavR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "OTG_FS device IN endpoint transmit FIFO status register\n\nYou can [`read`](crate::Reg::read) this register and get [`dtxfsts2::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dtxfsts2Spec ; impl crate :: RegisterSpec for Dtxfsts2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dtxfsts2::R`](R) reader structure"] impl crate :: Readable for Dtxfsts2Spec { }
#[doc = "`reset()` method sets DTXFSTS2 to value 0"] impl crate :: Resettable for Dtxfsts2Spec { } }
#[doc = "DTXFSTS3 (r) register accessor: OTG_FS device IN endpoint transmit FIFO status register\n\nYou can [`read`](crate::Reg::read) this register and get [`dtxfsts3::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dtxfsts3`] module"]
#[doc (alias = "DTXFSTS3")] pub type Dtxfsts3 = crate :: Reg < dtxfsts3 :: Dtxfsts3Spec > ;
#[doc = "OTG_FS device IN endpoint transmit FIFO status register"] pub mod dtxfsts3 {
#[doc = "Register `DTXFSTS3` reader"] pub type R = crate :: R < Dtxfsts3Spec > ;
#[doc = "Field `INEPTFSAV` reader - IN endpoint TxFIFO space available"] pub type IneptfsavR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - IN endpoint TxFIFO space available"]
#[inline (always)] pub fn ineptfsav (& self) -> IneptfsavR { IneptfsavR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "OTG_FS device IN endpoint transmit FIFO status register\n\nYou can [`read`](crate::Reg::read) this register and get [`dtxfsts3::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Dtxfsts3Spec ; impl crate :: RegisterSpec for Dtxfsts3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dtxfsts3::R`](R) reader structure"] impl crate :: Readable for Dtxfsts3Spec { }
#[doc = "`reset()` method sets DTXFSTS3 to value 0"] impl crate :: Resettable for Dtxfsts3Spec { } }
#[doc = "DOEPTSIZ1 (rw) register accessor: device OUT endpoint-1 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`doeptsiz1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doeptsiz1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doeptsiz1`] module"]
#[doc (alias = "DOEPTSIZ1")] pub type Doeptsiz1 = crate :: Reg < doeptsiz1 :: Doeptsiz1Spec > ;
#[doc = "device OUT endpoint-1 transfer size register"] pub mod doeptsiz1 {
#[doc = "Register `DOEPTSIZ1` reader"] pub type R = crate :: R < Doeptsiz1Spec > ;
#[doc = "Register `DOEPTSIZ1` writer"] pub type W = crate :: W < Doeptsiz1Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader < u32 > ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 19 , u32 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `RXDPID_STUPCNT` reader - Received data PID/SETUP packet count"] pub type RxdpidStupcntR = crate :: FieldReader ;
#[doc = "Field `RXDPID_STUPCNT` writer - Received data PID/SETUP packet count"] pub type RxdpidStupcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new (self . bits & 0x0007_ffff) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 0x03ff) as u16) }
#[doc = "Bits 29:30 - Received data PID/SETUP packet count"]
#[inline (always)] pub fn rxdpid_stupcnt (& self) -> RxdpidStupcntR { RxdpidStupcntR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , Doeptsiz1Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , Doeptsiz1Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - Received data PID/SETUP packet count"]
#[inline (always)] pub fn rxdpid_stupcnt (& mut self) -> RxdpidStupcntW < '_ , Doeptsiz1Spec > { RxdpidStupcntW :: new (self , 29) } }
#[doc = "device OUT endpoint-1 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`doeptsiz1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doeptsiz1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Doeptsiz1Spec ; impl crate :: RegisterSpec for Doeptsiz1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`doeptsiz1::R`](R) reader structure"] impl crate :: Readable for Doeptsiz1Spec { }
#[doc = "`write(|w| ..)` method takes [`doeptsiz1::W`](W) writer structure"] impl crate :: Writable for Doeptsiz1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DOEPTSIZ1 to value 0"] impl crate :: Resettable for Doeptsiz1Spec { } }
#[doc = "DOEPTSIZ2 (rw) register accessor: device OUT endpoint-2 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`doeptsiz2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doeptsiz2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doeptsiz2`] module"]
#[doc (alias = "DOEPTSIZ2")] pub type Doeptsiz2 = crate :: Reg < doeptsiz2 :: Doeptsiz2Spec > ;
#[doc = "device OUT endpoint-2 transfer size register"] pub mod doeptsiz2 {
#[doc = "Register `DOEPTSIZ2` reader"] pub type R = crate :: R < Doeptsiz2Spec > ;
#[doc = "Register `DOEPTSIZ2` writer"] pub type W = crate :: W < Doeptsiz2Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader < u32 > ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 19 , u32 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `RXDPID_STUPCNT` reader - Received data PID/SETUP packet count"] pub type RxdpidStupcntR = crate :: FieldReader ;
#[doc = "Field `RXDPID_STUPCNT` writer - Received data PID/SETUP packet count"] pub type RxdpidStupcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new (self . bits & 0x0007_ffff) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 0x03ff) as u16) }
#[doc = "Bits 29:30 - Received data PID/SETUP packet count"]
#[inline (always)] pub fn rxdpid_stupcnt (& self) -> RxdpidStupcntR { RxdpidStupcntR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , Doeptsiz2Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , Doeptsiz2Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - Received data PID/SETUP packet count"]
#[inline (always)] pub fn rxdpid_stupcnt (& mut self) -> RxdpidStupcntW < '_ , Doeptsiz2Spec > { RxdpidStupcntW :: new (self , 29) } }
#[doc = "device OUT endpoint-2 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`doeptsiz2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doeptsiz2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Doeptsiz2Spec ; impl crate :: RegisterSpec for Doeptsiz2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`doeptsiz2::R`](R) reader structure"] impl crate :: Readable for Doeptsiz2Spec { }
#[doc = "`write(|w| ..)` method takes [`doeptsiz2::W`](W) writer structure"] impl crate :: Writable for Doeptsiz2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DOEPTSIZ2 to value 0"] impl crate :: Resettable for Doeptsiz2Spec { } }
#[doc = "DOEPTSIZ3 (rw) register accessor: device OUT endpoint-3 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`doeptsiz3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doeptsiz3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@doeptsiz3`] module"]
#[doc (alias = "DOEPTSIZ3")] pub type Doeptsiz3 = crate :: Reg < doeptsiz3 :: Doeptsiz3Spec > ;
#[doc = "device OUT endpoint-3 transfer size register"] pub mod doeptsiz3 {
#[doc = "Register `DOEPTSIZ3` reader"] pub type R = crate :: R < Doeptsiz3Spec > ;
#[doc = "Register `DOEPTSIZ3` writer"] pub type W = crate :: W < Doeptsiz3Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader < u32 > ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 19 , u32 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `RXDPID_STUPCNT` reader - Received data PID/SETUP packet count"] pub type RxdpidStupcntR = crate :: FieldReader ;
#[doc = "Field `RXDPID_STUPCNT` writer - Received data PID/SETUP packet count"] pub type RxdpidStupcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new (self . bits & 0x0007_ffff) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 0x03ff) as u16) }
#[doc = "Bits 29:30 - Received data PID/SETUP packet count"]
#[inline (always)] pub fn rxdpid_stupcnt (& self) -> RxdpidStupcntR { RxdpidStupcntR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , Doeptsiz3Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , Doeptsiz3Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - Received data PID/SETUP packet count"]
#[inline (always)] pub fn rxdpid_stupcnt (& mut self) -> RxdpidStupcntW < '_ , Doeptsiz3Spec > { RxdpidStupcntW :: new (self , 29) } }
#[doc = "device OUT endpoint-3 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`doeptsiz3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`doeptsiz3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Doeptsiz3Spec ; impl crate :: RegisterSpec for Doeptsiz3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`doeptsiz3::R`](R) reader structure"] impl crate :: Readable for Doeptsiz3Spec { }
#[doc = "`write(|w| ..)` method takes [`doeptsiz3::W`](W) writer structure"] impl crate :: Writable for Doeptsiz3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DOEPTSIZ3 to value 0"] impl crate :: Resettable for Doeptsiz3Spec { } } }
#[doc = "USB on the go full speed"] pub type OtgFsGlobal = crate :: Periph < otg_fs_global :: RegisterBlock , 0x5000_0000 > ; impl core :: fmt :: Debug for OtgFsGlobal { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("OtgFsGlobal") . finish () } }
#[doc = "USB on the go full speed"] pub mod otg_fs_global {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { fs_gotgctl : FsGotgctl , fs_gotgint : FsGotgint , fs_gahbcfg : FsGahbcfg , fs_gusbcfg : FsGusbcfg , fs_grstctl : FsGrstctl , fs_gintsts : FsGintsts , fs_gintmsk : FsGintmsk , _reserved_7_fs_grxstsr : [u8 ; 0x04] , _reserved8 : [u8 ; 0x04] , fs_grxfsiz : FsGrxfsiz , _reserved_9_fs_gnptxfsiz : [u8 ; 0x04] , fs_gnptxsts : FsGnptxsts , _reserved11 : [u8 ; 0x08] , fs_gccfg : FsGccfg , fs_cid : FsCid , _reserved13 : [u8 ; 0xc0] , fs_hptxfsiz : FsHptxfsiz , fs_dieptxf1 : FsDieptxf1 , fs_dieptxf2 : FsDieptxf2 , fs_dieptxf3 : FsDieptxf3 , } impl RegisterBlock {
#[doc = "0x00 - OTG_FS control and status register (OTG_FS_GOTGCTL)"]
#[inline (always)] pub const fn fs_gotgctl (& self) -> & FsGotgctl { & self . fs_gotgctl }
#[doc = "0x04 - OTG_FS interrupt register (OTG_FS_GOTGINT)"]
#[inline (always)] pub const fn fs_gotgint (& self) -> & FsGotgint { & self . fs_gotgint }
#[doc = "0x08 - OTG_FS AHB configuration register (OTG_FS_GAHBCFG)"]
#[inline (always)] pub const fn fs_gahbcfg (& self) -> & FsGahbcfg { & self . fs_gahbcfg }
#[doc = "0x0c - OTG_FS USB configuration register (OTG_FS_GUSBCFG)"]
#[inline (always)] pub const fn fs_gusbcfg (& self) -> & FsGusbcfg { & self . fs_gusbcfg }
#[doc = "0x10 - OTG_FS reset register (OTG_FS_GRSTCTL)"]
#[inline (always)] pub const fn fs_grstctl (& self) -> & FsGrstctl { & self . fs_grstctl }
#[doc = "0x14 - OTG_FS core interrupt register (OTG_FS_GINTSTS)"]
#[inline (always)] pub const fn fs_gintsts (& self) -> & FsGintsts { & self . fs_gintsts }
#[doc = "0x18 - OTG_FS interrupt mask register (OTG_FS_GINTMSK)"]
#[inline (always)] pub const fn fs_gintmsk (& self) -> & FsGintmsk { & self . fs_gintmsk }
#[doc = "0x1c - OTG_FS Receive status debug read(Host mode)"]
#[inline (always)] pub const fn fs_grxstsr_host (& self) -> & FsGrxstsrHost { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (28) . cast () } }
#[doc = "0x1c - OTG_FS Receive status debug read(Device mode)"]
#[inline (always)] pub const fn fs_grxstsr_device (& self) -> & FsGrxstsrDevice { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (28) . cast () } }
#[doc = "0x24 - OTG_FS Receive FIFO size register (OTG_FS_GRXFSIZ)"]
#[inline (always)] pub const fn fs_grxfsiz (& self) -> & FsGrxfsiz { & self . fs_grxfsiz }
#[doc = "0x28 - OTG_FS non-periodic transmit FIFO size register (Host mode)"]
#[inline (always)] pub const fn fs_gnptxfsiz_host (& self) -> & FsGnptxfsizHost { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (40) . cast () } }
#[doc = "0x28 - OTG_FS non-periodic transmit FIFO size register (Device mode)"]
#[inline (always)] pub const fn fs_gnptxfsiz_device (& self) -> & FsGnptxfsizDevice { unsafe { & * core :: ptr :: from_ref (self) . cast :: < u8 > () . add (40) . cast () } }
#[doc = "0x2c - OTG_FS non-periodic transmit FIFO/queue status register (OTG_FS_GNPTXSTS)"]
#[inline (always)] pub const fn fs_gnptxsts (& self) -> & FsGnptxsts { & self . fs_gnptxsts }
#[doc = "0x38 - OTG_FS general core configuration register (OTG_FS_GCCFG)"]
#[inline (always)] pub const fn fs_gccfg (& self) -> & FsGccfg { & self . fs_gccfg }
#[doc = "0x3c - core ID register"]
#[inline (always)] pub const fn fs_cid (& self) -> & FsCid { & self . fs_cid }
#[doc = "0x100 - OTG_FS Host periodic transmit FIFO size register (OTG_FS_HPTXFSIZ)"]
#[inline (always)] pub const fn fs_hptxfsiz (& self) -> & FsHptxfsiz { & self . fs_hptxfsiz }
#[doc = "0x104 - OTG_FS device IN endpoint transmit FIFO size register (OTG_FS_DIEPTXF2)"]
#[inline (always)] pub const fn fs_dieptxf1 (& self) -> & FsDieptxf1 { & self . fs_dieptxf1 }
#[doc = "0x108 - OTG_FS device IN endpoint transmit FIFO size register (OTG_FS_DIEPTXF3)"]
#[inline (always)] pub const fn fs_dieptxf2 (& self) -> & FsDieptxf2 { & self . fs_dieptxf2 }
#[doc = "0x10c - OTG_FS device IN endpoint transmit FIFO size register (OTG_FS_DIEPTXF4)"]
#[inline (always)] pub const fn fs_dieptxf3 (& self) -> & FsDieptxf3 { & self . fs_dieptxf3 } }
#[doc = "FS_GOTGCTL (rw) register accessor: OTG_FS control and status register (OTG_FS_GOTGCTL)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gotgctl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gotgctl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_gotgctl`] module"]
#[doc (alias = "FS_GOTGCTL")] pub type FsGotgctl = crate :: Reg < fs_gotgctl :: FsGotgctlSpec > ;
#[doc = "OTG_FS control and status register (OTG_FS_GOTGCTL)"] pub mod fs_gotgctl {
#[doc = "Register `FS_GOTGCTL` reader"] pub type R = crate :: R < FsGotgctlSpec > ;
#[doc = "Register `FS_GOTGCTL` writer"] pub type W = crate :: W < FsGotgctlSpec > ;
#[doc = "Field `SRQSCS` reader - Session request success"] pub type SrqscsR = crate :: BitReader ;
#[doc = "Field `SRQ` reader - Session request"] pub type SrqR = crate :: BitReader ;
#[doc = "Field `SRQ` writer - Session request"] pub type SrqW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HNGSCS` reader - Host negotiation success"] pub type HngscsR = crate :: BitReader ;
#[doc = "Field `HNPRQ` reader - HNP request"] pub type HnprqR = crate :: BitReader ;
#[doc = "Field `HNPRQ` writer - HNP request"] pub type HnprqW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HSHNPEN` reader - Host set HNP enable"] pub type HshnpenR = crate :: BitReader ;
#[doc = "Field `HSHNPEN` writer - Host set HNP enable"] pub type HshnpenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DHNPEN` reader - Device HNP enabled"] pub type DhnpenR = crate :: BitReader ;
#[doc = "Field `DHNPEN` writer - Device HNP enabled"] pub type DhnpenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CIDSTS` reader - Connector ID status"] pub type CidstsR = crate :: BitReader ;
#[doc = "Field `DBCT` reader - Long/short debounce time"] pub type DbctR = crate :: BitReader ;
#[doc = "Field `ASVLD` reader - A-session valid"] pub type AsvldR = crate :: BitReader ;
#[doc = "Field `BSVLD` reader - B-session valid"] pub type BsvldR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - Session request success"]
#[inline (always)] pub fn srqscs (& self) -> SrqscsR { SrqscsR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Session request"]
#[inline (always)] pub fn srq (& self) -> SrqR { SrqR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 8 - Host negotiation success"]
#[inline (always)] pub fn hngscs (& self) -> HngscsR { HngscsR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - HNP request"]
#[inline (always)] pub fn hnprq (& self) -> HnprqR { HnprqR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Host set HNP enable"]
#[inline (always)] pub fn hshnpen (& self) -> HshnpenR { HshnpenR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Device HNP enabled"]
#[inline (always)] pub fn dhnpen (& self) -> DhnpenR { DhnpenR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 16 - Connector ID status"]
#[inline (always)] pub fn cidsts (& self) -> CidstsR { CidstsR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 17 - Long/short debounce time"]
#[inline (always)] pub fn dbct (& self) -> DbctR { DbctR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - A-session valid"]
#[inline (always)] pub fn asvld (& self) -> AsvldR { AsvldR :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - B-session valid"]
#[inline (always)] pub fn bsvld (& self) -> BsvldR { BsvldR :: new (((self . bits >> 19) & 1) != 0) } } impl W {
#[doc = "Bit 1 - Session request"]
#[inline (always)] pub fn srq (& mut self) -> SrqW < '_ , FsGotgctlSpec > { SrqW :: new (self , 1) }
#[doc = "Bit 9 - HNP request"]
#[inline (always)] pub fn hnprq (& mut self) -> HnprqW < '_ , FsGotgctlSpec > { HnprqW :: new (self , 9) }
#[doc = "Bit 10 - Host set HNP enable"]
#[inline (always)] pub fn hshnpen (& mut self) -> HshnpenW < '_ , FsGotgctlSpec > { HshnpenW :: new (self , 10) }
#[doc = "Bit 11 - Device HNP enabled"]
#[inline (always)] pub fn dhnpen (& mut self) -> DhnpenW < '_ , FsGotgctlSpec > { DhnpenW :: new (self , 11) } }
#[doc = "OTG_FS control and status register (OTG_FS_GOTGCTL)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gotgctl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gotgctl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsGotgctlSpec ; impl crate :: RegisterSpec for FsGotgctlSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_gotgctl::R`](R) reader structure"] impl crate :: Readable for FsGotgctlSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_gotgctl::W`](W) writer structure"] impl crate :: Writable for FsGotgctlSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_GOTGCTL to value 0x0800"] impl crate :: Resettable for FsGotgctlSpec { const RESET_VALUE : u32 = 0x0800 ; } }
#[doc = "FS_GOTGINT (rw) register accessor: OTG_FS interrupt register (OTG_FS_GOTGINT)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gotgint::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gotgint::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_gotgint`] module"]
#[doc (alias = "FS_GOTGINT")] pub type FsGotgint = crate :: Reg < fs_gotgint :: FsGotgintSpec > ;
#[doc = "OTG_FS interrupt register (OTG_FS_GOTGINT)"] pub mod fs_gotgint {
#[doc = "Register `FS_GOTGINT` reader"] pub type R = crate :: R < FsGotgintSpec > ;
#[doc = "Register `FS_GOTGINT` writer"] pub type W = crate :: W < FsGotgintSpec > ;
#[doc = "Field `SEDET` reader - Session end detected"] pub type SedetR = crate :: BitReader ;
#[doc = "Field `SEDET` writer - Session end detected"] pub type SedetW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SRSSCHG` reader - Session request success status change"] pub type SrsschgR = crate :: BitReader ;
#[doc = "Field `SRSSCHG` writer - Session request success status change"] pub type SrsschgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HNSSCHG` reader - Host negotiation success status change"] pub type HnsschgR = crate :: BitReader ;
#[doc = "Field `HNSSCHG` writer - Host negotiation success status change"] pub type HnsschgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HNGDET` reader - Host negotiation detected"] pub type HngdetR = crate :: BitReader ;
#[doc = "Field `HNGDET` writer - Host negotiation detected"] pub type HngdetW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ADTOCHG` reader - A-device timeout change"] pub type AdtochgR = crate :: BitReader ;
#[doc = "Field `ADTOCHG` writer - A-device timeout change"] pub type AdtochgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DBCDNE` reader - Debounce done"] pub type DbcdneR = crate :: BitReader ;
#[doc = "Field `DBCDNE` writer - Debounce done"] pub type DbcdneW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 2 - Session end detected"]
#[inline (always)] pub fn sedet (& self) -> SedetR { SedetR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 8 - Session request success status change"]
#[inline (always)] pub fn srsschg (& self) -> SrsschgR { SrsschgR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Host negotiation success status change"]
#[inline (always)] pub fn hnsschg (& self) -> HnsschgR { HnsschgR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 17 - Host negotiation detected"]
#[inline (always)] pub fn hngdet (& self) -> HngdetR { HngdetR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - A-device timeout change"]
#[inline (always)] pub fn adtochg (& self) -> AdtochgR { AdtochgR :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Debounce done"]
#[inline (always)] pub fn dbcdne (& self) -> DbcdneR { DbcdneR :: new (((self . bits >> 19) & 1) != 0) } } impl W {
#[doc = "Bit 2 - Session end detected"]
#[inline (always)] pub fn sedet (& mut self) -> SedetW < '_ , FsGotgintSpec > { SedetW :: new (self , 2) }
#[doc = "Bit 8 - Session request success status change"]
#[inline (always)] pub fn srsschg (& mut self) -> SrsschgW < '_ , FsGotgintSpec > { SrsschgW :: new (self , 8) }
#[doc = "Bit 9 - Host negotiation success status change"]
#[inline (always)] pub fn hnsschg (& mut self) -> HnsschgW < '_ , FsGotgintSpec > { HnsschgW :: new (self , 9) }
#[doc = "Bit 17 - Host negotiation detected"]
#[inline (always)] pub fn hngdet (& mut self) -> HngdetW < '_ , FsGotgintSpec > { HngdetW :: new (self , 17) }
#[doc = "Bit 18 - A-device timeout change"]
#[inline (always)] pub fn adtochg (& mut self) -> AdtochgW < '_ , FsGotgintSpec > { AdtochgW :: new (self , 18) }
#[doc = "Bit 19 - Debounce done"]
#[inline (always)] pub fn dbcdne (& mut self) -> DbcdneW < '_ , FsGotgintSpec > { DbcdneW :: new (self , 19) } }
#[doc = "OTG_FS interrupt register (OTG_FS_GOTGINT)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gotgint::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gotgint::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsGotgintSpec ; impl crate :: RegisterSpec for FsGotgintSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_gotgint::R`](R) reader structure"] impl crate :: Readable for FsGotgintSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_gotgint::W`](W) writer structure"] impl crate :: Writable for FsGotgintSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_GOTGINT to value 0"] impl crate :: Resettable for FsGotgintSpec { } }
#[doc = "FS_GAHBCFG (rw) register accessor: OTG_FS AHB configuration register (OTG_FS_GAHBCFG)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gahbcfg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gahbcfg::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_gahbcfg`] module"]
#[doc (alias = "FS_GAHBCFG")] pub type FsGahbcfg = crate :: Reg < fs_gahbcfg :: FsGahbcfgSpec > ;
#[doc = "OTG_FS AHB configuration register (OTG_FS_GAHBCFG)"] pub mod fs_gahbcfg {
#[doc = "Register `FS_GAHBCFG` reader"] pub type R = crate :: R < FsGahbcfgSpec > ;
#[doc = "Register `FS_GAHBCFG` writer"] pub type W = crate :: W < FsGahbcfgSpec > ;
#[doc = "Field `GINT` reader - Global interrupt mask"] pub type GintR = crate :: BitReader ;
#[doc = "Field `GINT` writer - Global interrupt mask"] pub type GintW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFELVL` reader - TxFIFO empty level"] pub type TxfelvlR = crate :: BitReader ;
#[doc = "Field `TXFELVL` writer - TxFIFO empty level"] pub type TxfelvlW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PTXFELVL` reader - Periodic TxFIFO empty level"] pub type PtxfelvlR = crate :: BitReader ;
#[doc = "Field `PTXFELVL` writer - Periodic TxFIFO empty level"] pub type PtxfelvlW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Global interrupt mask"]
#[inline (always)] pub fn gint (& self) -> GintR { GintR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 7 - TxFIFO empty level"]
#[inline (always)] pub fn txfelvl (& self) -> TxfelvlR { TxfelvlR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Periodic TxFIFO empty level"]
#[inline (always)] pub fn ptxfelvl (& self) -> PtxfelvlR { PtxfelvlR :: new (((self . bits >> 8) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Global interrupt mask"]
#[inline (always)] pub fn gint (& mut self) -> GintW < '_ , FsGahbcfgSpec > { GintW :: new (self , 0) }
#[doc = "Bit 7 - TxFIFO empty level"]
#[inline (always)] pub fn txfelvl (& mut self) -> TxfelvlW < '_ , FsGahbcfgSpec > { TxfelvlW :: new (self , 7) }
#[doc = "Bit 8 - Periodic TxFIFO empty level"]
#[inline (always)] pub fn ptxfelvl (& mut self) -> PtxfelvlW < '_ , FsGahbcfgSpec > { PtxfelvlW :: new (self , 8) } }
#[doc = "OTG_FS AHB configuration register (OTG_FS_GAHBCFG)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gahbcfg::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gahbcfg::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsGahbcfgSpec ; impl crate :: RegisterSpec for FsGahbcfgSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_gahbcfg::R`](R) reader structure"] impl crate :: Readable for FsGahbcfgSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_gahbcfg::W`](W) writer structure"] impl crate :: Writable for FsGahbcfgSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_GAHBCFG to value 0"] impl crate :: Resettable for FsGahbcfgSpec { } }
#[doc = "FS_GUSBCFG (rw) register accessor: OTG_FS USB configuration register (OTG_FS_GUSBCFG)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gusbcfg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gusbcfg::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_gusbcfg`] module"]
#[doc (alias = "FS_GUSBCFG")] pub type FsGusbcfg = crate :: Reg < fs_gusbcfg :: FsGusbcfgSpec > ;
#[doc = "OTG_FS USB configuration register (OTG_FS_GUSBCFG)"] pub mod fs_gusbcfg {
#[doc = "Register `FS_GUSBCFG` reader"] pub type R = crate :: R < FsGusbcfgSpec > ;
#[doc = "Register `FS_GUSBCFG` writer"] pub type W = crate :: W < FsGusbcfgSpec > ;
#[doc = "Field `TOCAL` reader - FS timeout calibration"] pub type TocalR = crate :: FieldReader ;
#[doc = "Field `TOCAL` writer - FS timeout calibration"] pub type TocalW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `PHYSEL` writer - Full Speed serial transceiver select"] pub type PhyselW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SRPCAP` reader - SRP-capable"] pub type SrpcapR = crate :: BitReader ;
#[doc = "Field `SRPCAP` writer - SRP-capable"] pub type SrpcapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HNPCAP` reader - HNP-capable"] pub type HnpcapR = crate :: BitReader ;
#[doc = "Field `HNPCAP` writer - HNP-capable"] pub type HnpcapW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TRDT` reader - USB turnaround time"] pub type TrdtR = crate :: FieldReader ;
#[doc = "Field `TRDT` writer - USB turnaround time"] pub type TrdtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `FHMOD` reader - Force host mode"] pub type FhmodR = crate :: BitReader ;
#[doc = "Field `FHMOD` writer - Force host mode"] pub type FhmodW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FDMOD` reader - Force device mode"] pub type FdmodR = crate :: BitReader ;
#[doc = "Field `FDMOD` writer - Force device mode"] pub type FdmodW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CTXPKT` reader - Corrupt Tx packet"] pub type CtxpktR = crate :: BitReader ;
#[doc = "Field `CTXPKT` writer - Corrupt Tx packet"] pub type CtxpktW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:2 - FS timeout calibration"]
#[inline (always)] pub fn tocal (& self) -> TocalR { TocalR :: new ((self . bits & 7) as u8) }
#[doc = "Bit 8 - SRP-capable"]
#[inline (always)] pub fn srpcap (& self) -> SrpcapR { SrpcapR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - HNP-capable"]
#[inline (always)] pub fn hnpcap (& self) -> HnpcapR { HnpcapR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bits 10:13 - USB turnaround time"]
#[inline (always)] pub fn trdt (& self) -> TrdtR { TrdtR :: new (((self . bits >> 10) & 0x0f) as u8) }
#[doc = "Bit 29 - Force host mode"]
#[inline (always)] pub fn fhmod (& self) -> FhmodR { FhmodR :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Force device mode"]
#[inline (always)] pub fn fdmod (& self) -> FdmodR { FdmodR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Corrupt Tx packet"]
#[inline (always)] pub fn ctxpkt (& self) -> CtxpktR { CtxpktR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:2 - FS timeout calibration"]
#[inline (always)] pub fn tocal (& mut self) -> TocalW < '_ , FsGusbcfgSpec > { TocalW :: new (self , 0) }
#[doc = "Bit 6 - Full Speed serial transceiver select"]
#[inline (always)] pub fn physel (& mut self) -> PhyselW < '_ , FsGusbcfgSpec > { PhyselW :: new (self , 6) }
#[doc = "Bit 8 - SRP-capable"]
#[inline (always)] pub fn srpcap (& mut self) -> SrpcapW < '_ , FsGusbcfgSpec > { SrpcapW :: new (self , 8) }
#[doc = "Bit 9 - HNP-capable"]
#[inline (always)] pub fn hnpcap (& mut self) -> HnpcapW < '_ , FsGusbcfgSpec > { HnpcapW :: new (self , 9) }
#[doc = "Bits 10:13 - USB turnaround time"]
#[inline (always)] pub fn trdt (& mut self) -> TrdtW < '_ , FsGusbcfgSpec > { TrdtW :: new (self , 10) }
#[doc = "Bit 29 - Force host mode"]
#[inline (always)] pub fn fhmod (& mut self) -> FhmodW < '_ , FsGusbcfgSpec > { FhmodW :: new (self , 29) }
#[doc = "Bit 30 - Force device mode"]
#[inline (always)] pub fn fdmod (& mut self) -> FdmodW < '_ , FsGusbcfgSpec > { FdmodW :: new (self , 30) }
#[doc = "Bit 31 - Corrupt Tx packet"]
#[inline (always)] pub fn ctxpkt (& mut self) -> CtxpktW < '_ , FsGusbcfgSpec > { CtxpktW :: new (self , 31) } }
#[doc = "OTG_FS USB configuration register (OTG_FS_GUSBCFG)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gusbcfg::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gusbcfg::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsGusbcfgSpec ; impl crate :: RegisterSpec for FsGusbcfgSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_gusbcfg::R`](R) reader structure"] impl crate :: Readable for FsGusbcfgSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_gusbcfg::W`](W) writer structure"] impl crate :: Writable for FsGusbcfgSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_GUSBCFG to value 0x0a00"] impl crate :: Resettable for FsGusbcfgSpec { const RESET_VALUE : u32 = 0x0a00 ; } }
#[doc = "FS_GRSTCTL (rw) register accessor: OTG_FS reset register (OTG_FS_GRSTCTL)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_grstctl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_grstctl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_grstctl`] module"]
#[doc (alias = "FS_GRSTCTL")] pub type FsGrstctl = crate :: Reg < fs_grstctl :: FsGrstctlSpec > ;
#[doc = "OTG_FS reset register (OTG_FS_GRSTCTL)"] pub mod fs_grstctl {
#[doc = "Register `FS_GRSTCTL` reader"] pub type R = crate :: R < FsGrstctlSpec > ;
#[doc = "Register `FS_GRSTCTL` writer"] pub type W = crate :: W < FsGrstctlSpec > ;
#[doc = "Field `CSRST` reader - Core soft reset"] pub type CsrstR = crate :: BitReader ;
#[doc = "Field `CSRST` writer - Core soft reset"] pub type CsrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HSRST` reader - HCLK soft reset"] pub type HsrstR = crate :: BitReader ;
#[doc = "Field `HSRST` writer - HCLK soft reset"] pub type HsrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FCRST` reader - Host frame counter reset"] pub type FcrstR = crate :: BitReader ;
#[doc = "Field `FCRST` writer - Host frame counter reset"] pub type FcrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXFFLSH` reader - RxFIFO flush"] pub type RxfflshR = crate :: BitReader ;
#[doc = "Field `RXFFLSH` writer - RxFIFO flush"] pub type RxfflshW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFFLSH` reader - TxFIFO flush"] pub type TxfflshR = crate :: BitReader ;
#[doc = "Field `TXFFLSH` writer - TxFIFO flush"] pub type TxfflshW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXFNUM` reader - TxFIFO number"] pub type TxfnumR = crate :: FieldReader ;
#[doc = "Field `TXFNUM` writer - TxFIFO number"] pub type TxfnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `AHBIDL` reader - AHB master idle"] pub type AhbidlR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - Core soft reset"]
#[inline (always)] pub fn csrst (& self) -> CsrstR { CsrstR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - HCLK soft reset"]
#[inline (always)] pub fn hsrst (& self) -> HsrstR { HsrstR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Host frame counter reset"]
#[inline (always)] pub fn fcrst (& self) -> FcrstR { FcrstR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 4 - RxFIFO flush"]
#[inline (always)] pub fn rxfflsh (& self) -> RxfflshR { RxfflshR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - TxFIFO flush"]
#[inline (always)] pub fn txfflsh (& self) -> TxfflshR { TxfflshR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bits 6:10 - TxFIFO number"]
#[inline (always)] pub fn txfnum (& self) -> TxfnumR { TxfnumR :: new (((self . bits >> 6) & 0x1f) as u8) }
#[doc = "Bit 31 - AHB master idle"]
#[inline (always)] pub fn ahbidl (& self) -> AhbidlR { AhbidlR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Core soft reset"]
#[inline (always)] pub fn csrst (& mut self) -> CsrstW < '_ , FsGrstctlSpec > { CsrstW :: new (self , 0) }
#[doc = "Bit 1 - HCLK soft reset"]
#[inline (always)] pub fn hsrst (& mut self) -> HsrstW < '_ , FsGrstctlSpec > { HsrstW :: new (self , 1) }
#[doc = "Bit 2 - Host frame counter reset"]
#[inline (always)] pub fn fcrst (& mut self) -> FcrstW < '_ , FsGrstctlSpec > { FcrstW :: new (self , 2) }
#[doc = "Bit 4 - RxFIFO flush"]
#[inline (always)] pub fn rxfflsh (& mut self) -> RxfflshW < '_ , FsGrstctlSpec > { RxfflshW :: new (self , 4) }
#[doc = "Bit 5 - TxFIFO flush"]
#[inline (always)] pub fn txfflsh (& mut self) -> TxfflshW < '_ , FsGrstctlSpec > { TxfflshW :: new (self , 5) }
#[doc = "Bits 6:10 - TxFIFO number"]
#[inline (always)] pub fn txfnum (& mut self) -> TxfnumW < '_ , FsGrstctlSpec > { TxfnumW :: new (self , 6) } }
#[doc = "OTG_FS reset register (OTG_FS_GRSTCTL)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_grstctl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_grstctl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsGrstctlSpec ; impl crate :: RegisterSpec for FsGrstctlSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_grstctl::R`](R) reader structure"] impl crate :: Readable for FsGrstctlSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_grstctl::W`](W) writer structure"] impl crate :: Writable for FsGrstctlSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_GRSTCTL to value 0x2000_0000"] impl crate :: Resettable for FsGrstctlSpec { const RESET_VALUE : u32 = 0x2000_0000 ; } }
#[doc = "FS_GINTSTS (rw) register accessor: OTG_FS core interrupt register (OTG_FS_GINTSTS)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gintsts::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gintsts::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_gintsts`] module"]
#[doc (alias = "FS_GINTSTS")] pub type FsGintsts = crate :: Reg < fs_gintsts :: FsGintstsSpec > ;
#[doc = "OTG_FS core interrupt register (OTG_FS_GINTSTS)"] pub mod fs_gintsts {
#[doc = "Register `FS_GINTSTS` reader"] pub type R = crate :: R < FsGintstsSpec > ;
#[doc = "Register `FS_GINTSTS` writer"] pub type W = crate :: W < FsGintstsSpec > ;
#[doc = "Field `CMOD` reader - Current mode of operation"] pub type CmodR = crate :: BitReader ;
#[doc = "Field `MMIS` reader - Mode mismatch interrupt"] pub type MmisR = crate :: BitReader ;
#[doc = "Field `MMIS` writer - Mode mismatch interrupt"] pub type MmisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OTGINT` reader - OTG interrupt"] pub type OtgintR = crate :: BitReader ;
#[doc = "Field `SOF` reader - Start of frame"] pub type SofR = crate :: BitReader ;
#[doc = "Field `SOF` writer - Start of frame"] pub type SofW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXFLVL` reader - RxFIFO non-empty"] pub type RxflvlR = crate :: BitReader ;
#[doc = "Field `NPTXFE` reader - Non-periodic TxFIFO empty"] pub type NptxfeR = crate :: BitReader ;
#[doc = "Field `GINAKEFF` reader - Global IN non-periodic NAK effective"] pub type GinakeffR = crate :: BitReader ;
#[doc = "Field `GOUTNAKEFF` reader - Global OUT NAK effective"] pub type GoutnakeffR = crate :: BitReader ;
#[doc = "Field `ESUSP` reader - Early suspend"] pub type EsuspR = crate :: BitReader ;
#[doc = "Field `ESUSP` writer - Early suspend"] pub type EsuspW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USBSUSP` reader - USB suspend"] pub type UsbsuspR = crate :: BitReader ;
#[doc = "Field `USBSUSP` writer - USB suspend"] pub type UsbsuspW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USBRST` reader - USB reset"] pub type UsbrstR = crate :: BitReader ;
#[doc = "Field `USBRST` writer - USB reset"] pub type UsbrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ENUMDNE` reader - Enumeration done"] pub type EnumdneR = crate :: BitReader ;
#[doc = "Field `ENUMDNE` writer - Enumeration done"] pub type EnumdneW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ISOODRP` reader - Isochronous OUT packet dropped interrupt"] pub type IsoodrpR = crate :: BitReader ;
#[doc = "Field `ISOODRP` writer - Isochronous OUT packet dropped interrupt"] pub type IsoodrpW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EOPF` reader - End of periodic frame interrupt"] pub type EopfR = crate :: BitReader ;
#[doc = "Field `EOPF` writer - End of periodic frame interrupt"] pub type EopfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IEPINT` reader - IN endpoint interrupt"] pub type IepintR = crate :: BitReader ;
#[doc = "Field `OEPINT` reader - OUT endpoint interrupt"] pub type OepintR = crate :: BitReader ;
#[doc = "Field `IISOIXFR` reader - Incomplete isochronous IN transfer"] pub type IisoixfrR = crate :: BitReader ;
#[doc = "Field `IISOIXFR` writer - Incomplete isochronous IN transfer"] pub type IisoixfrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IPXFR_INCOMPISOOUT` reader - Incomplete periodic transfer(Host mode)/Incomplete isochronous OUT transfer(Device mode)"] pub type IpxfrIncompisooutR = crate :: BitReader ;
#[doc = "Field `IPXFR_INCOMPISOOUT` writer - Incomplete periodic transfer(Host mode)/Incomplete isochronous OUT transfer(Device mode)"] pub type IpxfrIncompisooutW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HPRTINT` reader - Host port interrupt"] pub type HprtintR = crate :: BitReader ;
#[doc = "Field `HCINT` reader - Host channels interrupt"] pub type HcintR = crate :: BitReader ;
#[doc = "Field `PTXFE` reader - Periodic TxFIFO empty"] pub type PtxfeR = crate :: BitReader ;
#[doc = "Field `CIDSCHG` reader - Connector ID status change"] pub type CidschgR = crate :: BitReader ;
#[doc = "Field `CIDSCHG` writer - Connector ID status change"] pub type CidschgW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DISCINT` reader - Disconnect detected interrupt"] pub type DiscintR = crate :: BitReader ;
#[doc = "Field `DISCINT` writer - Disconnect detected interrupt"] pub type DiscintW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SRQINT` reader - Session request/new session detected interrupt"] pub type SrqintR = crate :: BitReader ;
#[doc = "Field `SRQINT` writer - Session request/new session detected interrupt"] pub type SrqintW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WKUPINT` reader - Resume/remote wakeup detected interrupt"] pub type WkupintR = crate :: BitReader ;
#[doc = "Field `WKUPINT` writer - Resume/remote wakeup detected interrupt"] pub type WkupintW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Current mode of operation"]
#[inline (always)] pub fn cmod (& self) -> CmodR { CmodR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Mode mismatch interrupt"]
#[inline (always)] pub fn mmis (& self) -> MmisR { MmisR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - OTG interrupt"]
#[inline (always)] pub fn otgint (& self) -> OtgintR { OtgintR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Start of frame"]
#[inline (always)] pub fn sof (& self) -> SofR { SofR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - RxFIFO non-empty"]
#[inline (always)] pub fn rxflvl (& self) -> RxflvlR { RxflvlR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Non-periodic TxFIFO empty"]
#[inline (always)] pub fn nptxfe (& self) -> NptxfeR { NptxfeR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Global IN non-periodic NAK effective"]
#[inline (always)] pub fn ginakeff (& self) -> GinakeffR { GinakeffR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Global OUT NAK effective"]
#[inline (always)] pub fn goutnakeff (& self) -> GoutnakeffR { GoutnakeffR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 10 - Early suspend"]
#[inline (always)] pub fn esusp (& self) -> EsuspR { EsuspR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - USB suspend"]
#[inline (always)] pub fn usbsusp (& self) -> UsbsuspR { UsbsuspR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - USB reset"]
#[inline (always)] pub fn usbrst (& self) -> UsbrstR { UsbrstR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Enumeration done"]
#[inline (always)] pub fn enumdne (& self) -> EnumdneR { EnumdneR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Isochronous OUT packet dropped interrupt"]
#[inline (always)] pub fn isoodrp (& self) -> IsoodrpR { IsoodrpR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - End of periodic frame interrupt"]
#[inline (always)] pub fn eopf (& self) -> EopfR { EopfR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 18 - IN endpoint interrupt"]
#[inline (always)] pub fn iepint (& self) -> IepintR { IepintR :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - OUT endpoint interrupt"]
#[inline (always)] pub fn oepint (& self) -> OepintR { OepintR :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Incomplete isochronous IN transfer"]
#[inline (always)] pub fn iisoixfr (& self) -> IisoixfrR { IisoixfrR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Incomplete periodic transfer(Host mode)/Incomplete isochronous OUT transfer(Device mode)"]
#[inline (always)] pub fn ipxfr_incompisoout (& self) -> IpxfrIncompisooutR { IpxfrIncompisooutR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 24 - Host port interrupt"]
#[inline (always)] pub fn hprtint (& self) -> HprtintR { HprtintR :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Host channels interrupt"]
#[inline (always)] pub fn hcint (& self) -> HcintR { HcintR :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Periodic TxFIFO empty"]
#[inline (always)] pub fn ptxfe (& self) -> PtxfeR { PtxfeR :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 28 - Connector ID status change"]
#[inline (always)] pub fn cidschg (& self) -> CidschgR { CidschgR :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Disconnect detected interrupt"]
#[inline (always)] pub fn discint (& self) -> DiscintR { DiscintR :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Session request/new session detected interrupt"]
#[inline (always)] pub fn srqint (& self) -> SrqintR { SrqintR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Resume/remote wakeup detected interrupt"]
#[inline (always)] pub fn wkupint (& self) -> WkupintR { WkupintR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 1 - Mode mismatch interrupt"]
#[inline (always)] pub fn mmis (& mut self) -> MmisW < '_ , FsGintstsSpec > { MmisW :: new (self , 1) }
#[doc = "Bit 3 - Start of frame"]
#[inline (always)] pub fn sof (& mut self) -> SofW < '_ , FsGintstsSpec > { SofW :: new (self , 3) }
#[doc = "Bit 10 - Early suspend"]
#[inline (always)] pub fn esusp (& mut self) -> EsuspW < '_ , FsGintstsSpec > { EsuspW :: new (self , 10) }
#[doc = "Bit 11 - USB suspend"]
#[inline (always)] pub fn usbsusp (& mut self) -> UsbsuspW < '_ , FsGintstsSpec > { UsbsuspW :: new (self , 11) }
#[doc = "Bit 12 - USB reset"]
#[inline (always)] pub fn usbrst (& mut self) -> UsbrstW < '_ , FsGintstsSpec > { UsbrstW :: new (self , 12) }
#[doc = "Bit 13 - Enumeration done"]
#[inline (always)] pub fn enumdne (& mut self) -> EnumdneW < '_ , FsGintstsSpec > { EnumdneW :: new (self , 13) }
#[doc = "Bit 14 - Isochronous OUT packet dropped interrupt"]
#[inline (always)] pub fn isoodrp (& mut self) -> IsoodrpW < '_ , FsGintstsSpec > { IsoodrpW :: new (self , 14) }
#[doc = "Bit 15 - End of periodic frame interrupt"]
#[inline (always)] pub fn eopf (& mut self) -> EopfW < '_ , FsGintstsSpec > { EopfW :: new (self , 15) }
#[doc = "Bit 20 - Incomplete isochronous IN transfer"]
#[inline (always)] pub fn iisoixfr (& mut self) -> IisoixfrW < '_ , FsGintstsSpec > { IisoixfrW :: new (self , 20) }
#[doc = "Bit 21 - Incomplete periodic transfer(Host mode)/Incomplete isochronous OUT transfer(Device mode)"]
#[inline (always)] pub fn ipxfr_incompisoout (& mut self) -> IpxfrIncompisooutW < '_ , FsGintstsSpec > { IpxfrIncompisooutW :: new (self , 21) }
#[doc = "Bit 28 - Connector ID status change"]
#[inline (always)] pub fn cidschg (& mut self) -> CidschgW < '_ , FsGintstsSpec > { CidschgW :: new (self , 28) }
#[doc = "Bit 29 - Disconnect detected interrupt"]
#[inline (always)] pub fn discint (& mut self) -> DiscintW < '_ , FsGintstsSpec > { DiscintW :: new (self , 29) }
#[doc = "Bit 30 - Session request/new session detected interrupt"]
#[inline (always)] pub fn srqint (& mut self) -> SrqintW < '_ , FsGintstsSpec > { SrqintW :: new (self , 30) }
#[doc = "Bit 31 - Resume/remote wakeup detected interrupt"]
#[inline (always)] pub fn wkupint (& mut self) -> WkupintW < '_ , FsGintstsSpec > { WkupintW :: new (self , 31) } }
#[doc = "OTG_FS core interrupt register (OTG_FS_GINTSTS)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gintsts::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gintsts::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsGintstsSpec ; impl crate :: RegisterSpec for FsGintstsSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_gintsts::R`](R) reader structure"] impl crate :: Readable for FsGintstsSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_gintsts::W`](W) writer structure"] impl crate :: Writable for FsGintstsSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_GINTSTS to value 0x0400_0020"] impl crate :: Resettable for FsGintstsSpec { const RESET_VALUE : u32 = 0x0400_0020 ; } }
#[doc = "FS_GINTMSK (rw) register accessor: OTG_FS interrupt mask register (OTG_FS_GINTMSK)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gintmsk::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gintmsk::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_gintmsk`] module"]
#[doc (alias = "FS_GINTMSK")] pub type FsGintmsk = crate :: Reg < fs_gintmsk :: FsGintmskSpec > ;
#[doc = "OTG_FS interrupt mask register (OTG_FS_GINTMSK)"] pub mod fs_gintmsk {
#[doc = "Register `FS_GINTMSK` reader"] pub type R = crate :: R < FsGintmskSpec > ;
#[doc = "Register `FS_GINTMSK` writer"] pub type W = crate :: W < FsGintmskSpec > ;
#[doc = "Field `MMISM` reader - Mode mismatch interrupt mask"] pub type MmismR = crate :: BitReader ;
#[doc = "Field `MMISM` writer - Mode mismatch interrupt mask"] pub type MmismW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OTGINT` reader - OTG interrupt mask"] pub type OtgintR = crate :: BitReader ;
#[doc = "Field `OTGINT` writer - OTG interrupt mask"] pub type OtgintW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SOFM` reader - Start of frame mask"] pub type SofmR = crate :: BitReader ;
#[doc = "Field `SOFM` writer - Start of frame mask"] pub type SofmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RXFLVLM` reader - Receive FIFO non-empty mask"] pub type RxflvlmR = crate :: BitReader ;
#[doc = "Field `RXFLVLM` writer - Receive FIFO non-empty mask"] pub type RxflvlmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NPTXFEM` reader - Non-periodic TxFIFO empty mask"] pub type NptxfemR = crate :: BitReader ;
#[doc = "Field `NPTXFEM` writer - Non-periodic TxFIFO empty mask"] pub type NptxfemW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `GINAKEFFM` reader - Global non-periodic IN NAK effective mask"] pub type GinakeffmR = crate :: BitReader ;
#[doc = "Field `GINAKEFFM` writer - Global non-periodic IN NAK effective mask"] pub type GinakeffmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `GONAKEFFM` reader - Global OUT NAK effective mask"] pub type GonakeffmR = crate :: BitReader ;
#[doc = "Field `GONAKEFFM` writer - Global OUT NAK effective mask"] pub type GonakeffmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ESUSPM` reader - Early suspend mask"] pub type EsuspmR = crate :: BitReader ;
#[doc = "Field `ESUSPM` writer - Early suspend mask"] pub type EsuspmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USBSUSPM` reader - USB suspend mask"] pub type UsbsuspmR = crate :: BitReader ;
#[doc = "Field `USBSUSPM` writer - USB suspend mask"] pub type UsbsuspmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `USBRST` reader - USB reset mask"] pub type UsbrstR = crate :: BitReader ;
#[doc = "Field `USBRST` writer - USB reset mask"] pub type UsbrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ENUMDNEM` reader - Enumeration done mask"] pub type EnumdnemR = crate :: BitReader ;
#[doc = "Field `ENUMDNEM` writer - Enumeration done mask"] pub type EnumdnemW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ISOODRPM` reader - Isochronous OUT packet dropped interrupt mask"] pub type IsoodrpmR = crate :: BitReader ;
#[doc = "Field `ISOODRPM` writer - Isochronous OUT packet dropped interrupt mask"] pub type IsoodrpmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EOPFM` reader - End of periodic frame interrupt mask"] pub type EopfmR = crate :: BitReader ;
#[doc = "Field `EOPFM` writer - End of periodic frame interrupt mask"] pub type EopfmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPMISM` reader - Endpoint mismatch interrupt mask"] pub type EpmismR = crate :: BitReader ;
#[doc = "Field `EPMISM` writer - Endpoint mismatch interrupt mask"] pub type EpmismW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IEPINT` reader - IN endpoints interrupt mask"] pub type IepintR = crate :: BitReader ;
#[doc = "Field `IEPINT` writer - IN endpoints interrupt mask"] pub type IepintW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OEPINT` reader - OUT endpoints interrupt mask"] pub type OepintR = crate :: BitReader ;
#[doc = "Field `OEPINT` writer - OUT endpoints interrupt mask"] pub type OepintW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IISOIXFRM` reader - Incomplete isochronous IN transfer mask"] pub type IisoixfrmR = crate :: BitReader ;
#[doc = "Field `IISOIXFRM` writer - Incomplete isochronous IN transfer mask"] pub type IisoixfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IPXFRM_IISOOXFRM` reader - Incomplete periodic transfer mask(Host mode)/Incomplete isochronous OUT transfer mask(Device mode)"] pub type IpxfrmIisooxfrmR = crate :: BitReader ;
#[doc = "Field `IPXFRM_IISOOXFRM` writer - Incomplete periodic transfer mask(Host mode)/Incomplete isochronous OUT transfer mask(Device mode)"] pub type IpxfrmIisooxfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PRTIM` reader - Host port interrupt mask"] pub type PrtimR = crate :: BitReader ;
#[doc = "Field `HCIM` reader - Host channels interrupt mask"] pub type HcimR = crate :: BitReader ;
#[doc = "Field `HCIM` writer - Host channels interrupt mask"] pub type HcimW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PTXFEM` reader - Periodic TxFIFO empty mask"] pub type PtxfemR = crate :: BitReader ;
#[doc = "Field `PTXFEM` writer - Periodic TxFIFO empty mask"] pub type PtxfemW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CIDSCHGM` reader - Connector ID status change mask"] pub type CidschgmR = crate :: BitReader ;
#[doc = "Field `CIDSCHGM` writer - Connector ID status change mask"] pub type CidschgmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DISCINT` reader - Disconnect detected interrupt mask"] pub type DiscintR = crate :: BitReader ;
#[doc = "Field `DISCINT` writer - Disconnect detected interrupt mask"] pub type DiscintW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SRQIM` reader - Session request/new session detected interrupt mask"] pub type SrqimR = crate :: BitReader ;
#[doc = "Field `SRQIM` writer - Session request/new session detected interrupt mask"] pub type SrqimW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WUIM` reader - Resume/remote wakeup detected interrupt mask"] pub type WuimR = crate :: BitReader ;
#[doc = "Field `WUIM` writer - Resume/remote wakeup detected interrupt mask"] pub type WuimW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 1 - Mode mismatch interrupt mask"]
#[inline (always)] pub fn mmism (& self) -> MmismR { MmismR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - OTG interrupt mask"]
#[inline (always)] pub fn otgint (& self) -> OtgintR { OtgintR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Start of frame mask"]
#[inline (always)] pub fn sofm (& self) -> SofmR { SofmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Receive FIFO non-empty mask"]
#[inline (always)] pub fn rxflvlm (& self) -> RxflvlmR { RxflvlmR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Non-periodic TxFIFO empty mask"]
#[inline (always)] pub fn nptxfem (& self) -> NptxfemR { NptxfemR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Global non-periodic IN NAK effective mask"]
#[inline (always)] pub fn ginakeffm (& self) -> GinakeffmR { GinakeffmR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Global OUT NAK effective mask"]
#[inline (always)] pub fn gonakeffm (& self) -> GonakeffmR { GonakeffmR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 10 - Early suspend mask"]
#[inline (always)] pub fn esuspm (& self) -> EsuspmR { EsuspmR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - USB suspend mask"]
#[inline (always)] pub fn usbsuspm (& self) -> UsbsuspmR { UsbsuspmR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - USB reset mask"]
#[inline (always)] pub fn usbrst (& self) -> UsbrstR { UsbrstR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Enumeration done mask"]
#[inline (always)] pub fn enumdnem (& self) -> EnumdnemR { EnumdnemR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Isochronous OUT packet dropped interrupt mask"]
#[inline (always)] pub fn isoodrpm (& self) -> IsoodrpmR { IsoodrpmR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - End of periodic frame interrupt mask"]
#[inline (always)] pub fn eopfm (& self) -> EopfmR { EopfmR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 17 - Endpoint mismatch interrupt mask"]
#[inline (always)] pub fn epmism (& self) -> EpmismR { EpmismR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bit 18 - IN endpoints interrupt mask"]
#[inline (always)] pub fn iepint (& self) -> IepintR { IepintR :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - OUT endpoints interrupt mask"]
#[inline (always)] pub fn oepint (& self) -> OepintR { OepintR :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - Incomplete isochronous IN transfer mask"]
#[inline (always)] pub fn iisoixfrm (& self) -> IisoixfrmR { IisoixfrmR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - Incomplete periodic transfer mask(Host mode)/Incomplete isochronous OUT transfer mask(Device mode)"]
#[inline (always)] pub fn ipxfrm_iisooxfrm (& self) -> IpxfrmIisooxfrmR { IpxfrmIisooxfrmR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 24 - Host port interrupt mask"]
#[inline (always)] pub fn prtim (& self) -> PrtimR { PrtimR :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Host channels interrupt mask"]
#[inline (always)] pub fn hcim (& self) -> HcimR { HcimR :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - Periodic TxFIFO empty mask"]
#[inline (always)] pub fn ptxfem (& self) -> PtxfemR { PtxfemR :: new (((self . bits >> 26) & 1) != 0) }
#[doc = "Bit 28 - Connector ID status change mask"]
#[inline (always)] pub fn cidschgm (& self) -> CidschgmR { CidschgmR :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Disconnect detected interrupt mask"]
#[inline (always)] pub fn discint (& self) -> DiscintR { DiscintR :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Session request/new session detected interrupt mask"]
#[inline (always)] pub fn srqim (& self) -> SrqimR { SrqimR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Resume/remote wakeup detected interrupt mask"]
#[inline (always)] pub fn wuim (& self) -> WuimR { WuimR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 1 - Mode mismatch interrupt mask"]
#[inline (always)] pub fn mmism (& mut self) -> MmismW < '_ , FsGintmskSpec > { MmismW :: new (self , 1) }
#[doc = "Bit 2 - OTG interrupt mask"]
#[inline (always)] pub fn otgint (& mut self) -> OtgintW < '_ , FsGintmskSpec > { OtgintW :: new (self , 2) }
#[doc = "Bit 3 - Start of frame mask"]
#[inline (always)] pub fn sofm (& mut self) -> SofmW < '_ , FsGintmskSpec > { SofmW :: new (self , 3) }
#[doc = "Bit 4 - Receive FIFO non-empty mask"]
#[inline (always)] pub fn rxflvlm (& mut self) -> RxflvlmW < '_ , FsGintmskSpec > { RxflvlmW :: new (self , 4) }
#[doc = "Bit 5 - Non-periodic TxFIFO empty mask"]
#[inline (always)] pub fn nptxfem (& mut self) -> NptxfemW < '_ , FsGintmskSpec > { NptxfemW :: new (self , 5) }
#[doc = "Bit 6 - Global non-periodic IN NAK effective mask"]
#[inline (always)] pub fn ginakeffm (& mut self) -> GinakeffmW < '_ , FsGintmskSpec > { GinakeffmW :: new (self , 6) }
#[doc = "Bit 7 - Global OUT NAK effective mask"]
#[inline (always)] pub fn gonakeffm (& mut self) -> GonakeffmW < '_ , FsGintmskSpec > { GonakeffmW :: new (self , 7) }
#[doc = "Bit 10 - Early suspend mask"]
#[inline (always)] pub fn esuspm (& mut self) -> EsuspmW < '_ , FsGintmskSpec > { EsuspmW :: new (self , 10) }
#[doc = "Bit 11 - USB suspend mask"]
#[inline (always)] pub fn usbsuspm (& mut self) -> UsbsuspmW < '_ , FsGintmskSpec > { UsbsuspmW :: new (self , 11) }
#[doc = "Bit 12 - USB reset mask"]
#[inline (always)] pub fn usbrst (& mut self) -> UsbrstW < '_ , FsGintmskSpec > { UsbrstW :: new (self , 12) }
#[doc = "Bit 13 - Enumeration done mask"]
#[inline (always)] pub fn enumdnem (& mut self) -> EnumdnemW < '_ , FsGintmskSpec > { EnumdnemW :: new (self , 13) }
#[doc = "Bit 14 - Isochronous OUT packet dropped interrupt mask"]
#[inline (always)] pub fn isoodrpm (& mut self) -> IsoodrpmW < '_ , FsGintmskSpec > { IsoodrpmW :: new (self , 14) }
#[doc = "Bit 15 - End of periodic frame interrupt mask"]
#[inline (always)] pub fn eopfm (& mut self) -> EopfmW < '_ , FsGintmskSpec > { EopfmW :: new (self , 15) }
#[doc = "Bit 17 - Endpoint mismatch interrupt mask"]
#[inline (always)] pub fn epmism (& mut self) -> EpmismW < '_ , FsGintmskSpec > { EpmismW :: new (self , 17) }
#[doc = "Bit 18 - IN endpoints interrupt mask"]
#[inline (always)] pub fn iepint (& mut self) -> IepintW < '_ , FsGintmskSpec > { IepintW :: new (self , 18) }
#[doc = "Bit 19 - OUT endpoints interrupt mask"]
#[inline (always)] pub fn oepint (& mut self) -> OepintW < '_ , FsGintmskSpec > { OepintW :: new (self , 19) }
#[doc = "Bit 20 - Incomplete isochronous IN transfer mask"]
#[inline (always)] pub fn iisoixfrm (& mut self) -> IisoixfrmW < '_ , FsGintmskSpec > { IisoixfrmW :: new (self , 20) }
#[doc = "Bit 21 - Incomplete periodic transfer mask(Host mode)/Incomplete isochronous OUT transfer mask(Device mode)"]
#[inline (always)] pub fn ipxfrm_iisooxfrm (& mut self) -> IpxfrmIisooxfrmW < '_ , FsGintmskSpec > { IpxfrmIisooxfrmW :: new (self , 21) }
#[doc = "Bit 25 - Host channels interrupt mask"]
#[inline (always)] pub fn hcim (& mut self) -> HcimW < '_ , FsGintmskSpec > { HcimW :: new (self , 25) }
#[doc = "Bit 26 - Periodic TxFIFO empty mask"]
#[inline (always)] pub fn ptxfem (& mut self) -> PtxfemW < '_ , FsGintmskSpec > { PtxfemW :: new (self , 26) }
#[doc = "Bit 28 - Connector ID status change mask"]
#[inline (always)] pub fn cidschgm (& mut self) -> CidschgmW < '_ , FsGintmskSpec > { CidschgmW :: new (self , 28) }
#[doc = "Bit 29 - Disconnect detected interrupt mask"]
#[inline (always)] pub fn discint (& mut self) -> DiscintW < '_ , FsGintmskSpec > { DiscintW :: new (self , 29) }
#[doc = "Bit 30 - Session request/new session detected interrupt mask"]
#[inline (always)] pub fn srqim (& mut self) -> SrqimW < '_ , FsGintmskSpec > { SrqimW :: new (self , 30) }
#[doc = "Bit 31 - Resume/remote wakeup detected interrupt mask"]
#[inline (always)] pub fn wuim (& mut self) -> WuimW < '_ , FsGintmskSpec > { WuimW :: new (self , 31) } }
#[doc = "OTG_FS interrupt mask register (OTG_FS_GINTMSK)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gintmsk::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gintmsk::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsGintmskSpec ; impl crate :: RegisterSpec for FsGintmskSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_gintmsk::R`](R) reader structure"] impl crate :: Readable for FsGintmskSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_gintmsk::W`](W) writer structure"] impl crate :: Writable for FsGintmskSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_GINTMSK to value 0"] impl crate :: Resettable for FsGintmskSpec { } }
#[doc = "FS_GRXSTSR_Device (r) register accessor: OTG_FS Receive status debug read(Device mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_grxstsr_device::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_grxstsr_device`] module"]
#[doc (alias = "FS_GRXSTSR_Device")] pub type FsGrxstsrDevice = crate :: Reg < fs_grxstsr_device :: FsGrxstsrDeviceSpec > ;
#[doc = "OTG_FS Receive status debug read(Device mode)"] pub mod fs_grxstsr_device {
#[doc = "Register `FS_GRXSTSR_Device` reader"] pub type R = crate :: R < FsGrxstsrDeviceSpec > ;
#[doc = "Field `EPNUM` reader - Endpoint number"] pub type EpnumR = crate :: FieldReader ;
#[doc = "Field `BCNT` reader - Byte count"] pub type BcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `DPID` reader - Data PID"] pub type DpidR = crate :: FieldReader ;
#[doc = "Field `PKTSTS` reader - Packet status"] pub type PktstsR = crate :: FieldReader ;
#[doc = "Field `FRMNUM` reader - Frame number"] pub type FrmnumR = crate :: FieldReader ; impl R {
#[doc = "Bits 0:3 - Endpoint number"]
#[inline (always)] pub fn epnum (& self) -> EpnumR { EpnumR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:14 - Byte count"]
#[inline (always)] pub fn bcnt (& self) -> BcntR { BcntR :: new (((self . bits >> 4) & 0x07ff) as u16) }
#[doc = "Bits 15:16 - Data PID"]
#[inline (always)] pub fn dpid (& self) -> DpidR { DpidR :: new (((self . bits >> 15) & 3) as u8) }
#[doc = "Bits 17:20 - Packet status"]
#[inline (always)] pub fn pktsts (& self) -> PktstsR { PktstsR :: new (((self . bits >> 17) & 0x0f) as u8) }
#[doc = "Bits 21:24 - Frame number"]
#[inline (always)] pub fn frmnum (& self) -> FrmnumR { FrmnumR :: new (((self . bits >> 21) & 0x0f) as u8) } }
#[doc = "OTG_FS Receive status debug read(Device mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_grxstsr_device::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsGrxstsrDeviceSpec ; impl crate :: RegisterSpec for FsGrxstsrDeviceSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_grxstsr_device::R`](R) reader structure"] impl crate :: Readable for FsGrxstsrDeviceSpec { }
#[doc = "`reset()` method sets FS_GRXSTSR_Device to value 0"] impl crate :: Resettable for FsGrxstsrDeviceSpec { } }
#[doc = "FS_GRXSTSR_Host (r) register accessor: OTG_FS Receive status debug read(Host mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_grxstsr_host::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_grxstsr_host`] module"]
#[doc (alias = "FS_GRXSTSR_Host")] pub type FsGrxstsrHost = crate :: Reg < fs_grxstsr_host :: FsGrxstsrHostSpec > ;
#[doc = "OTG_FS Receive status debug read(Host mode)"] pub mod fs_grxstsr_host {
#[doc = "Register `FS_GRXSTSR_Host` reader"] pub type R = crate :: R < FsGrxstsrHostSpec > ;
#[doc = "Field `EPNUM` reader - Endpoint number"] pub type EpnumR = crate :: FieldReader ;
#[doc = "Field `BCNT` reader - Byte count"] pub type BcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `DPID` reader - Data PID"] pub type DpidR = crate :: FieldReader ;
#[doc = "Field `PKTSTS` reader - Packet status"] pub type PktstsR = crate :: FieldReader ;
#[doc = "Field `FRMNUM` reader - Frame number"] pub type FrmnumR = crate :: FieldReader ; impl R {
#[doc = "Bits 0:3 - Endpoint number"]
#[inline (always)] pub fn epnum (& self) -> EpnumR { EpnumR :: new ((self . bits & 0x0f) as u8) }
#[doc = "Bits 4:14 - Byte count"]
#[inline (always)] pub fn bcnt (& self) -> BcntR { BcntR :: new (((self . bits >> 4) & 0x07ff) as u16) }
#[doc = "Bits 15:16 - Data PID"]
#[inline (always)] pub fn dpid (& self) -> DpidR { DpidR :: new (((self . bits >> 15) & 3) as u8) }
#[doc = "Bits 17:20 - Packet status"]
#[inline (always)] pub fn pktsts (& self) -> PktstsR { PktstsR :: new (((self . bits >> 17) & 0x0f) as u8) }
#[doc = "Bits 21:24 - Frame number"]
#[inline (always)] pub fn frmnum (& self) -> FrmnumR { FrmnumR :: new (((self . bits >> 21) & 0x0f) as u8) } }
#[doc = "OTG_FS Receive status debug read(Host mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_grxstsr_host::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsGrxstsrHostSpec ; impl crate :: RegisterSpec for FsGrxstsrHostSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_grxstsr_host::R`](R) reader structure"] impl crate :: Readable for FsGrxstsrHostSpec { }
#[doc = "`reset()` method sets FS_GRXSTSR_Host to value 0"] impl crate :: Resettable for FsGrxstsrHostSpec { } }
#[doc = "FS_GRXFSIZ (rw) register accessor: OTG_FS Receive FIFO size register (OTG_FS_GRXFSIZ)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_grxfsiz::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_grxfsiz::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_grxfsiz`] module"]
#[doc (alias = "FS_GRXFSIZ")] pub type FsGrxfsiz = crate :: Reg < fs_grxfsiz :: FsGrxfsizSpec > ;
#[doc = "OTG_FS Receive FIFO size register (OTG_FS_GRXFSIZ)"] pub mod fs_grxfsiz {
#[doc = "Register `FS_GRXFSIZ` reader"] pub type R = crate :: R < FsGrxfsizSpec > ;
#[doc = "Register `FS_GRXFSIZ` writer"] pub type W = crate :: W < FsGrxfsizSpec > ;
#[doc = "Field `RXFD` reader - RxFIFO depth"] pub type RxfdR = crate :: FieldReader < u16 > ;
#[doc = "Field `RXFD` writer - RxFIFO depth"] pub type RxfdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - RxFIFO depth"]
#[inline (always)] pub fn rxfd (& self) -> RxfdR { RxfdR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - RxFIFO depth"]
#[inline (always)] pub fn rxfd (& mut self) -> RxfdW < '_ , FsGrxfsizSpec > { RxfdW :: new (self , 0) } }
#[doc = "OTG_FS Receive FIFO size register (OTG_FS_GRXFSIZ)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_grxfsiz::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_grxfsiz::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsGrxfsizSpec ; impl crate :: RegisterSpec for FsGrxfsizSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_grxfsiz::R`](R) reader structure"] impl crate :: Readable for FsGrxfsizSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_grxfsiz::W`](W) writer structure"] impl crate :: Writable for FsGrxfsizSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_GRXFSIZ to value 0x0200"] impl crate :: Resettable for FsGrxfsizSpec { const RESET_VALUE : u32 = 0x0200 ; } }
#[doc = "FS_GNPTXFSIZ_Device (rw) register accessor: OTG_FS non-periodic transmit FIFO size register (Device mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gnptxfsiz_device::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gnptxfsiz_device::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_gnptxfsiz_device`] module"]
#[doc (alias = "FS_GNPTXFSIZ_Device")] pub type FsGnptxfsizDevice = crate :: Reg < fs_gnptxfsiz_device :: FsGnptxfsizDeviceSpec > ;
#[doc = "OTG_FS non-periodic transmit FIFO size register (Device mode)"] pub mod fs_gnptxfsiz_device {
#[doc = "Register `FS_GNPTXFSIZ_Device` reader"] pub type R = crate :: R < FsGnptxfsizDeviceSpec > ;
#[doc = "Register `FS_GNPTXFSIZ_Device` writer"] pub type W = crate :: W < FsGnptxfsizDeviceSpec > ;
#[doc = "Field `TX0FSA` reader - Endpoint 0 transmit RAM start address"] pub type Tx0fsaR = crate :: FieldReader < u16 > ;
#[doc = "Field `TX0FSA` writer - Endpoint 0 transmit RAM start address"] pub type Tx0fsaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ;
#[doc = "Field `TX0FD` reader - Endpoint 0 TxFIFO depth"] pub type Tx0fdR = crate :: FieldReader < u16 > ;
#[doc = "Field `TX0FD` writer - Endpoint 0 TxFIFO depth"] pub type Tx0fdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Endpoint 0 transmit RAM start address"]
#[inline (always)] pub fn tx0fsa (& self) -> Tx0fsaR { Tx0fsaR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 16:31 - Endpoint 0 TxFIFO depth"]
#[inline (always)] pub fn tx0fd (& self) -> Tx0fdR { Tx0fdR :: new (((self . bits >> 16) & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Endpoint 0 transmit RAM start address"]
#[inline (always)] pub fn tx0fsa (& mut self) -> Tx0fsaW < '_ , FsGnptxfsizDeviceSpec > { Tx0fsaW :: new (self , 0) }
#[doc = "Bits 16:31 - Endpoint 0 TxFIFO depth"]
#[inline (always)] pub fn tx0fd (& mut self) -> Tx0fdW < '_ , FsGnptxfsizDeviceSpec > { Tx0fdW :: new (self , 16) } }
#[doc = "OTG_FS non-periodic transmit FIFO size register (Device mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gnptxfsiz_device::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gnptxfsiz_device::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsGnptxfsizDeviceSpec ; impl crate :: RegisterSpec for FsGnptxfsizDeviceSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_gnptxfsiz_device::R`](R) reader structure"] impl crate :: Readable for FsGnptxfsizDeviceSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_gnptxfsiz_device::W`](W) writer structure"] impl crate :: Writable for FsGnptxfsizDeviceSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_GNPTXFSIZ_Device to value 0x0200"] impl crate :: Resettable for FsGnptxfsizDeviceSpec { const RESET_VALUE : u32 = 0x0200 ; } }
#[doc = "FS_GNPTXFSIZ_Host (rw) register accessor: OTG_FS non-periodic transmit FIFO size register (Host mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gnptxfsiz_host::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gnptxfsiz_host::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_gnptxfsiz_host`] module"]
#[doc (alias = "FS_GNPTXFSIZ_Host")] pub type FsGnptxfsizHost = crate :: Reg < fs_gnptxfsiz_host :: FsGnptxfsizHostSpec > ;
#[doc = "OTG_FS non-periodic transmit FIFO size register (Host mode)"] pub mod fs_gnptxfsiz_host {
#[doc = "Register `FS_GNPTXFSIZ_Host` reader"] pub type R = crate :: R < FsGnptxfsizHostSpec > ;
#[doc = "Register `FS_GNPTXFSIZ_Host` writer"] pub type W = crate :: W < FsGnptxfsizHostSpec > ;
#[doc = "Field `NPTXFSA` reader - Non-periodic transmit RAM start address"] pub type NptxfsaR = crate :: FieldReader < u16 > ;
#[doc = "Field `NPTXFSA` writer - Non-periodic transmit RAM start address"] pub type NptxfsaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ;
#[doc = "Field `NPTXFD` reader - Non-periodic TxFIFO depth"] pub type NptxfdR = crate :: FieldReader < u16 > ;
#[doc = "Field `NPTXFD` writer - Non-periodic TxFIFO depth"] pub type NptxfdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Non-periodic transmit RAM start address"]
#[inline (always)] pub fn nptxfsa (& self) -> NptxfsaR { NptxfsaR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 16:31 - Non-periodic TxFIFO depth"]
#[inline (always)] pub fn nptxfd (& self) -> NptxfdR { NptxfdR :: new (((self . bits >> 16) & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Non-periodic transmit RAM start address"]
#[inline (always)] pub fn nptxfsa (& mut self) -> NptxfsaW < '_ , FsGnptxfsizHostSpec > { NptxfsaW :: new (self , 0) }
#[doc = "Bits 16:31 - Non-periodic TxFIFO depth"]
#[inline (always)] pub fn nptxfd (& mut self) -> NptxfdW < '_ , FsGnptxfsizHostSpec > { NptxfdW :: new (self , 16) } }
#[doc = "OTG_FS non-periodic transmit FIFO size register (Host mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gnptxfsiz_host::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gnptxfsiz_host::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsGnptxfsizHostSpec ; impl crate :: RegisterSpec for FsGnptxfsizHostSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_gnptxfsiz_host::R`](R) reader structure"] impl crate :: Readable for FsGnptxfsizHostSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_gnptxfsiz_host::W`](W) writer structure"] impl crate :: Writable for FsGnptxfsizHostSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_GNPTXFSIZ_Host to value 0x0200"] impl crate :: Resettable for FsGnptxfsizHostSpec { const RESET_VALUE : u32 = 0x0200 ; } }
#[doc = "FS_GNPTXSTS (r) register accessor: OTG_FS non-periodic transmit FIFO/queue status register (OTG_FS_GNPTXSTS)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gnptxsts::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_gnptxsts`] module"]
#[doc (alias = "FS_GNPTXSTS")] pub type FsGnptxsts = crate :: Reg < fs_gnptxsts :: FsGnptxstsSpec > ;
#[doc = "OTG_FS non-periodic transmit FIFO/queue status register (OTG_FS_GNPTXSTS)"] pub mod fs_gnptxsts {
#[doc = "Register `FS_GNPTXSTS` reader"] pub type R = crate :: R < FsGnptxstsSpec > ;
#[doc = "Field `NPTXFSAV` reader - Non-periodic TxFIFO space available"] pub type NptxfsavR = crate :: FieldReader < u16 > ;
#[doc = "Field `NPTQXSAV` reader - Non-periodic transmit request queue space available"] pub type NptqxsavR = crate :: FieldReader ;
#[doc = "Field `NPTXQTOP` reader - Top of the non-periodic transmit request queue"] pub type NptxqtopR = crate :: FieldReader ; impl R {
#[doc = "Bits 0:15 - Non-periodic TxFIFO space available"]
#[inline (always)] pub fn nptxfsav (& self) -> NptxfsavR { NptxfsavR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 16:23 - Non-periodic transmit request queue space available"]
#[inline (always)] pub fn nptqxsav (& self) -> NptqxsavR { NptqxsavR :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:30 - Top of the non-periodic transmit request queue"]
#[inline (always)] pub fn nptxqtop (& self) -> NptxqtopR { NptxqtopR :: new (((self . bits >> 24) & 0x7f) as u8) } }
#[doc = "OTG_FS non-periodic transmit FIFO/queue status register (OTG_FS_GNPTXSTS)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gnptxsts::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsGnptxstsSpec ; impl crate :: RegisterSpec for FsGnptxstsSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_gnptxsts::R`](R) reader structure"] impl crate :: Readable for FsGnptxstsSpec { }
#[doc = "`reset()` method sets FS_GNPTXSTS to value 0x0008_0200"] impl crate :: Resettable for FsGnptxstsSpec { const RESET_VALUE : u32 = 0x0008_0200 ; } }
#[doc = "FS_GCCFG (rw) register accessor: OTG_FS general core configuration register (OTG_FS_GCCFG)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gccfg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gccfg::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_gccfg`] module"]
#[doc (alias = "FS_GCCFG")] pub type FsGccfg = crate :: Reg < fs_gccfg :: FsGccfgSpec > ;
#[doc = "OTG_FS general core configuration register (OTG_FS_GCCFG)"] pub mod fs_gccfg {
#[doc = "Register `FS_GCCFG` reader"] pub type R = crate :: R < FsGccfgSpec > ;
#[doc = "Register `FS_GCCFG` writer"] pub type W = crate :: W < FsGccfgSpec > ;
#[doc = "Field `PWRDWN` reader - Power down"] pub type PwrdwnR = crate :: BitReader ;
#[doc = "Field `PWRDWN` writer - Power down"] pub type PwrdwnW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `VBUSASEN` reader - Enable the VBUS sensing device"] pub type VbusasenR = crate :: BitReader ;
#[doc = "Field `VBUSASEN` writer - Enable the VBUS sensing device"] pub type VbusasenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `VBUSBSEN` reader - Enable the VBUS sensing device"] pub type VbusbsenR = crate :: BitReader ;
#[doc = "Field `VBUSBSEN` writer - Enable the VBUS sensing device"] pub type VbusbsenW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SOFOUTEN` reader - SOF output enable"] pub type SofoutenR = crate :: BitReader ;
#[doc = "Field `SOFOUTEN` writer - SOF output enable"] pub type SofoutenW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 16 - Power down"]
#[inline (always)] pub fn pwrdwn (& self) -> PwrdwnR { PwrdwnR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bit 18 - Enable the VBUS sensing device"]
#[inline (always)] pub fn vbusasen (& self) -> VbusasenR { VbusasenR :: new (((self . bits >> 18) & 1) != 0) }
#[doc = "Bit 19 - Enable the VBUS sensing device"]
#[inline (always)] pub fn vbusbsen (& self) -> VbusbsenR { VbusbsenR :: new (((self . bits >> 19) & 1) != 0) }
#[doc = "Bit 20 - SOF output enable"]
#[inline (always)] pub fn sofouten (& self) -> SofoutenR { SofoutenR :: new (((self . bits >> 20) & 1) != 0) } } impl W {
#[doc = "Bit 16 - Power down"]
#[inline (always)] pub fn pwrdwn (& mut self) -> PwrdwnW < '_ , FsGccfgSpec > { PwrdwnW :: new (self , 16) }
#[doc = "Bit 18 - Enable the VBUS sensing device"]
#[inline (always)] pub fn vbusasen (& mut self) -> VbusasenW < '_ , FsGccfgSpec > { VbusasenW :: new (self , 18) }
#[doc = "Bit 19 - Enable the VBUS sensing device"]
#[inline (always)] pub fn vbusbsen (& mut self) -> VbusbsenW < '_ , FsGccfgSpec > { VbusbsenW :: new (self , 19) }
#[doc = "Bit 20 - SOF output enable"]
#[inline (always)] pub fn sofouten (& mut self) -> SofoutenW < '_ , FsGccfgSpec > { SofoutenW :: new (self , 20) } }
#[doc = "OTG_FS general core configuration register (OTG_FS_GCCFG)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_gccfg::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_gccfg::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsGccfgSpec ; impl crate :: RegisterSpec for FsGccfgSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_gccfg::R`](R) reader structure"] impl crate :: Readable for FsGccfgSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_gccfg::W`](W) writer structure"] impl crate :: Writable for FsGccfgSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_GCCFG to value 0"] impl crate :: Resettable for FsGccfgSpec { } }
#[doc = "FS_CID (rw) register accessor: core ID register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_cid::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_cid::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_cid`] module"]
#[doc (alias = "FS_CID")] pub type FsCid = crate :: Reg < fs_cid :: FsCidSpec > ;
#[doc = "core ID register"] pub mod fs_cid {
#[doc = "Register `FS_CID` reader"] pub type R = crate :: R < FsCidSpec > ;
#[doc = "Register `FS_CID` writer"] pub type W = crate :: W < FsCidSpec > ;
#[doc = "Field `PRODUCT_ID` reader - Product ID field"] pub type ProductIdR = crate :: FieldReader < u32 > ;
#[doc = "Field `PRODUCT_ID` writer - Product ID field"] pub type ProductIdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Product ID field"]
#[inline (always)] pub fn product_id (& self) -> ProductIdR { ProductIdR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Product ID field"]
#[inline (always)] pub fn product_id (& mut self) -> ProductIdW < '_ , FsCidSpec > { ProductIdW :: new (self , 0) } }
#[doc = "core ID register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_cid::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_cid::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsCidSpec ; impl crate :: RegisterSpec for FsCidSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_cid::R`](R) reader structure"] impl crate :: Readable for FsCidSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_cid::W`](W) writer structure"] impl crate :: Writable for FsCidSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_CID to value 0x1000"] impl crate :: Resettable for FsCidSpec { const RESET_VALUE : u32 = 0x1000 ; } }
#[doc = "FS_HPTXFSIZ (rw) register accessor: OTG_FS Host periodic transmit FIFO size register (OTG_FS_HPTXFSIZ)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hptxfsiz::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hptxfsiz::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hptxfsiz`] module"]
#[doc (alias = "FS_HPTXFSIZ")] pub type FsHptxfsiz = crate :: Reg < fs_hptxfsiz :: FsHptxfsizSpec > ;
#[doc = "OTG_FS Host periodic transmit FIFO size register (OTG_FS_HPTXFSIZ)"] pub mod fs_hptxfsiz {
#[doc = "Register `FS_HPTXFSIZ` reader"] pub type R = crate :: R < FsHptxfsizSpec > ;
#[doc = "Register `FS_HPTXFSIZ` writer"] pub type W = crate :: W < FsHptxfsizSpec > ;
#[doc = "Field `PTXSA` reader - Host periodic TxFIFO start address"] pub type PtxsaR = crate :: FieldReader < u16 > ;
#[doc = "Field `PTXSA` writer - Host periodic TxFIFO start address"] pub type PtxsaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ;
#[doc = "Field `PTXFSIZ` reader - Host periodic TxFIFO depth"] pub type PtxfsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `PTXFSIZ` writer - Host periodic TxFIFO depth"] pub type PtxfsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Host periodic TxFIFO start address"]
#[inline (always)] pub fn ptxsa (& self) -> PtxsaR { PtxsaR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 16:31 - Host periodic TxFIFO depth"]
#[inline (always)] pub fn ptxfsiz (& self) -> PtxfsizR { PtxfsizR :: new (((self . bits >> 16) & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Host periodic TxFIFO start address"]
#[inline (always)] pub fn ptxsa (& mut self) -> PtxsaW < '_ , FsHptxfsizSpec > { PtxsaW :: new (self , 0) }
#[doc = "Bits 16:31 - Host periodic TxFIFO depth"]
#[inline (always)] pub fn ptxfsiz (& mut self) -> PtxfsizW < '_ , FsHptxfsizSpec > { PtxfsizW :: new (self , 16) } }
#[doc = "OTG_FS Host periodic transmit FIFO size register (OTG_FS_HPTXFSIZ)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hptxfsiz::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hptxfsiz::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHptxfsizSpec ; impl crate :: RegisterSpec for FsHptxfsizSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hptxfsiz::R`](R) reader structure"] impl crate :: Readable for FsHptxfsizSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_hptxfsiz::W`](W) writer structure"] impl crate :: Writable for FsHptxfsizSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HPTXFSIZ to value 0x0200_0600"] impl crate :: Resettable for FsHptxfsizSpec { const RESET_VALUE : u32 = 0x0200_0600 ; } }
#[doc = "FS_DIEPTXF1 (rw) register accessor: OTG_FS device IN endpoint transmit FIFO size register (OTG_FS_DIEPTXF2)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_dieptxf1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_dieptxf1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_dieptxf1`] module"]
#[doc (alias = "FS_DIEPTXF1")] pub type FsDieptxf1 = crate :: Reg < fs_dieptxf1 :: FsDieptxf1Spec > ;
#[doc = "OTG_FS device IN endpoint transmit FIFO size register (OTG_FS_DIEPTXF2)"] pub mod fs_dieptxf1 {
#[doc = "Register `FS_DIEPTXF1` reader"] pub type R = crate :: R < FsDieptxf1Spec > ;
#[doc = "Register `FS_DIEPTXF1` writer"] pub type W = crate :: W < FsDieptxf1Spec > ;
#[doc = "Field `INEPTXSA` reader - IN endpoint FIFO2 transmit RAM start address"] pub type IneptxsaR = crate :: FieldReader < u16 > ;
#[doc = "Field `INEPTXSA` writer - IN endpoint FIFO2 transmit RAM start address"] pub type IneptxsaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ;
#[doc = "Field `INEPTXFD` reader - IN endpoint TxFIFO depth"] pub type IneptxfdR = crate :: FieldReader < u16 > ;
#[doc = "Field `INEPTXFD` writer - IN endpoint TxFIFO depth"] pub type IneptxfdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - IN endpoint FIFO2 transmit RAM start address"]
#[inline (always)] pub fn ineptxsa (& self) -> IneptxsaR { IneptxsaR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 16:31 - IN endpoint TxFIFO depth"]
#[inline (always)] pub fn ineptxfd (& self) -> IneptxfdR { IneptxfdR :: new (((self . bits >> 16) & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - IN endpoint FIFO2 transmit RAM start address"]
#[inline (always)] pub fn ineptxsa (& mut self) -> IneptxsaW < '_ , FsDieptxf1Spec > { IneptxsaW :: new (self , 0) }
#[doc = "Bits 16:31 - IN endpoint TxFIFO depth"]
#[inline (always)] pub fn ineptxfd (& mut self) -> IneptxfdW < '_ , FsDieptxf1Spec > { IneptxfdW :: new (self , 16) } }
#[doc = "OTG_FS device IN endpoint transmit FIFO size register (OTG_FS_DIEPTXF2)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_dieptxf1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_dieptxf1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsDieptxf1Spec ; impl crate :: RegisterSpec for FsDieptxf1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_dieptxf1::R`](R) reader structure"] impl crate :: Readable for FsDieptxf1Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_dieptxf1::W`](W) writer structure"] impl crate :: Writable for FsDieptxf1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_DIEPTXF1 to value 0x0200_0400"] impl crate :: Resettable for FsDieptxf1Spec { const RESET_VALUE : u32 = 0x0200_0400 ; } }
#[doc = "FS_DIEPTXF2 (rw) register accessor: OTG_FS device IN endpoint transmit FIFO size register (OTG_FS_DIEPTXF3)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_dieptxf2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_dieptxf2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_dieptxf2`] module"]
#[doc (alias = "FS_DIEPTXF2")] pub type FsDieptxf2 = crate :: Reg < fs_dieptxf2 :: FsDieptxf2Spec > ;
#[doc = "OTG_FS device IN endpoint transmit FIFO size register (OTG_FS_DIEPTXF3)"] pub mod fs_dieptxf2 {
#[doc = "Register `FS_DIEPTXF2` reader"] pub type R = crate :: R < FsDieptxf2Spec > ;
#[doc = "Register `FS_DIEPTXF2` writer"] pub type W = crate :: W < FsDieptxf2Spec > ;
#[doc = "Field `INEPTXSA` reader - IN endpoint FIFO3 transmit RAM start address"] pub type IneptxsaR = crate :: FieldReader < u16 > ;
#[doc = "Field `INEPTXSA` writer - IN endpoint FIFO3 transmit RAM start address"] pub type IneptxsaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ;
#[doc = "Field `INEPTXFD` reader - IN endpoint TxFIFO depth"] pub type IneptxfdR = crate :: FieldReader < u16 > ;
#[doc = "Field `INEPTXFD` writer - IN endpoint TxFIFO depth"] pub type IneptxfdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - IN endpoint FIFO3 transmit RAM start address"]
#[inline (always)] pub fn ineptxsa (& self) -> IneptxsaR { IneptxsaR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 16:31 - IN endpoint TxFIFO depth"]
#[inline (always)] pub fn ineptxfd (& self) -> IneptxfdR { IneptxfdR :: new (((self . bits >> 16) & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - IN endpoint FIFO3 transmit RAM start address"]
#[inline (always)] pub fn ineptxsa (& mut self) -> IneptxsaW < '_ , FsDieptxf2Spec > { IneptxsaW :: new (self , 0) }
#[doc = "Bits 16:31 - IN endpoint TxFIFO depth"]
#[inline (always)] pub fn ineptxfd (& mut self) -> IneptxfdW < '_ , FsDieptxf2Spec > { IneptxfdW :: new (self , 16) } }
#[doc = "OTG_FS device IN endpoint transmit FIFO size register (OTG_FS_DIEPTXF3)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_dieptxf2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_dieptxf2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsDieptxf2Spec ; impl crate :: RegisterSpec for FsDieptxf2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_dieptxf2::R`](R) reader structure"] impl crate :: Readable for FsDieptxf2Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_dieptxf2::W`](W) writer structure"] impl crate :: Writable for FsDieptxf2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_DIEPTXF2 to value 0x0200_0400"] impl crate :: Resettable for FsDieptxf2Spec { const RESET_VALUE : u32 = 0x0200_0400 ; } }
#[doc = "FS_DIEPTXF3 (rw) register accessor: OTG_FS device IN endpoint transmit FIFO size register (OTG_FS_DIEPTXF4)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_dieptxf3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_dieptxf3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_dieptxf3`] module"]
#[doc (alias = "FS_DIEPTXF3")] pub type FsDieptxf3 = crate :: Reg < fs_dieptxf3 :: FsDieptxf3Spec > ;
#[doc = "OTG_FS device IN endpoint transmit FIFO size register (OTG_FS_DIEPTXF4)"] pub mod fs_dieptxf3 {
#[doc = "Register `FS_DIEPTXF3` reader"] pub type R = crate :: R < FsDieptxf3Spec > ;
#[doc = "Register `FS_DIEPTXF3` writer"] pub type W = crate :: W < FsDieptxf3Spec > ;
#[doc = "Field `INEPTXSA` reader - IN endpoint FIFO4 transmit RAM start address"] pub type IneptxsaR = crate :: FieldReader < u16 > ;
#[doc = "Field `INEPTXSA` writer - IN endpoint FIFO4 transmit RAM start address"] pub type IneptxsaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ;
#[doc = "Field `INEPTXFD` reader - IN endpoint TxFIFO depth"] pub type IneptxfdR = crate :: FieldReader < u16 > ;
#[doc = "Field `INEPTXFD` writer - IN endpoint TxFIFO depth"] pub type IneptxfdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - IN endpoint FIFO4 transmit RAM start address"]
#[inline (always)] pub fn ineptxsa (& self) -> IneptxsaR { IneptxsaR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 16:31 - IN endpoint TxFIFO depth"]
#[inline (always)] pub fn ineptxfd (& self) -> IneptxfdR { IneptxfdR :: new (((self . bits >> 16) & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - IN endpoint FIFO4 transmit RAM start address"]
#[inline (always)] pub fn ineptxsa (& mut self) -> IneptxsaW < '_ , FsDieptxf3Spec > { IneptxsaW :: new (self , 0) }
#[doc = "Bits 16:31 - IN endpoint TxFIFO depth"]
#[inline (always)] pub fn ineptxfd (& mut self) -> IneptxfdW < '_ , FsDieptxf3Spec > { IneptxfdW :: new (self , 16) } }
#[doc = "OTG_FS device IN endpoint transmit FIFO size register (OTG_FS_DIEPTXF4)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_dieptxf3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_dieptxf3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsDieptxf3Spec ; impl crate :: RegisterSpec for FsDieptxf3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_dieptxf3::R`](R) reader structure"] impl crate :: Readable for FsDieptxf3Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_dieptxf3::W`](W) writer structure"] impl crate :: Writable for FsDieptxf3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_DIEPTXF3 to value 0x0200_0400"] impl crate :: Resettable for FsDieptxf3Spec { const RESET_VALUE : u32 = 0x0200_0400 ; } } }
#[doc = "USB on the go full speed"] pub type OtgFsHost = crate :: Periph < otg_fs_host :: RegisterBlock , 0x5000_0400 > ; impl core :: fmt :: Debug for OtgFsHost { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("OtgFsHost") . finish () } }
#[doc = "USB on the go full speed"] pub mod otg_fs_host {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { fs_hcfg : FsHcfg , hfir : Hfir , fs_hfnum : FsHfnum , _reserved3 : [u8 ; 0x04] , fs_hptxsts : FsHptxsts , haint : Haint , haintmsk : Haintmsk , _reserved6 : [u8 ; 0x24] , fs_hprt : FsHprt , _reserved7 : [u8 ; 0xbc] , fs_hcchar0 : FsHcchar0 , _reserved8 : [u8 ; 0x04] , fs_hcint0 : FsHcint0 , fs_hcintmsk0 : FsHcintmsk0 , fs_hctsiz0 : FsHctsiz0 , _reserved11 : [u8 ; 0x0c] , fs_hcchar1 : FsHcchar1 , _reserved12 : [u8 ; 0x04] , fs_hcint1 : FsHcint1 , fs_hcintmsk1 : FsHcintmsk1 , fs_hctsiz1 : FsHctsiz1 , _reserved15 : [u8 ; 0x0c] , fs_hcchar2 : FsHcchar2 , _reserved16 : [u8 ; 0x04] , fs_hcint2 : FsHcint2 , fs_hcintmsk2 : FsHcintmsk2 , fs_hctsiz2 : FsHctsiz2 , _reserved19 : [u8 ; 0x0c] , fs_hcchar3 : FsHcchar3 , _reserved20 : [u8 ; 0x04] , fs_hcint3 : FsHcint3 , fs_hcintmsk3 : FsHcintmsk3 , fs_hctsiz3 : FsHctsiz3 , _reserved23 : [u8 ; 0x0c] , fs_hcchar4 : FsHcchar4 , _reserved24 : [u8 ; 0x04] , fs_hcint4 : FsHcint4 , fs_hcintmsk4 : FsHcintmsk4 , fs_hctsiz4 : FsHctsiz4 , _reserved27 : [u8 ; 0x0c] , fs_hcchar5 : FsHcchar5 , _reserved28 : [u8 ; 0x04] , fs_hcint5 : FsHcint5 , fs_hcintmsk5 : FsHcintmsk5 , fs_hctsiz5 : FsHctsiz5 , _reserved31 : [u8 ; 0x0c] , fs_hcchar6 : FsHcchar6 , _reserved32 : [u8 ; 0x04] , fs_hcint6 : FsHcint6 , fs_hcintmsk6 : FsHcintmsk6 , fs_hctsiz6 : FsHctsiz6 , _reserved35 : [u8 ; 0x0c] , fs_hcchar7 : FsHcchar7 , _reserved36 : [u8 ; 0x04] , fs_hcint7 : FsHcint7 , fs_hcintmsk7 : FsHcintmsk7 , fs_hctsiz7 : FsHctsiz7 , } impl RegisterBlock {
#[doc = "0x00 - OTG_FS host configuration register (OTG_FS_HCFG)"]
#[inline (always)] pub const fn fs_hcfg (& self) -> & FsHcfg { & self . fs_hcfg }
#[doc = "0x04 - OTG_FS Host frame interval register"]
#[inline (always)] pub const fn hfir (& self) -> & Hfir { & self . hfir }
#[doc = "0x08 - OTG_FS host frame number/frame time remaining register (OTG_FS_HFNUM)"]
#[inline (always)] pub const fn fs_hfnum (& self) -> & FsHfnum { & self . fs_hfnum }
#[doc = "0x10 - OTG_FS_Host periodic transmit FIFO/queue status register (OTG_FS_HPTXSTS)"]
#[inline (always)] pub const fn fs_hptxsts (& self) -> & FsHptxsts { & self . fs_hptxsts }
#[doc = "0x14 - OTG_FS Host all channels interrupt register"]
#[inline (always)] pub const fn haint (& self) -> & Haint { & self . haint }
#[doc = "0x18 - OTG_FS host all channels interrupt mask register"]
#[inline (always)] pub const fn haintmsk (& self) -> & Haintmsk { & self . haintmsk }
#[doc = "0x40 - OTG_FS host port control and status register (OTG_FS_HPRT)"]
#[inline (always)] pub const fn fs_hprt (& self) -> & FsHprt { & self . fs_hprt }
#[doc = "0x100 - OTG_FS host channel-0 characteristics register (OTG_FS_HCCHAR0)"]
#[inline (always)] pub const fn fs_hcchar0 (& self) -> & FsHcchar0 { & self . fs_hcchar0 }
#[doc = "0x108 - OTG_FS host channel-0 interrupt register (OTG_FS_HCINT0)"]
#[inline (always)] pub const fn fs_hcint0 (& self) -> & FsHcint0 { & self . fs_hcint0 }
#[doc = "0x10c - OTG_FS host channel-0 mask register (OTG_FS_HCINTMSK0)"]
#[inline (always)] pub const fn fs_hcintmsk0 (& self) -> & FsHcintmsk0 { & self . fs_hcintmsk0 }
#[doc = "0x110 - OTG_FS host channel-0 transfer size register"]
#[inline (always)] pub const fn fs_hctsiz0 (& self) -> & FsHctsiz0 { & self . fs_hctsiz0 }
#[doc = "0x120 - OTG_FS host channel-1 characteristics register (OTG_FS_HCCHAR1)"]
#[inline (always)] pub const fn fs_hcchar1 (& self) -> & FsHcchar1 { & self . fs_hcchar1 }
#[doc = "0x128 - OTG_FS host channel-1 interrupt register (OTG_FS_HCINT1)"]
#[inline (always)] pub const fn fs_hcint1 (& self) -> & FsHcint1 { & self . fs_hcint1 }
#[doc = "0x12c - OTG_FS host channel-1 mask register (OTG_FS_HCINTMSK1)"]
#[inline (always)] pub const fn fs_hcintmsk1 (& self) -> & FsHcintmsk1 { & self . fs_hcintmsk1 }
#[doc = "0x130 - OTG_FS host channel-1 transfer size register"]
#[inline (always)] pub const fn fs_hctsiz1 (& self) -> & FsHctsiz1 { & self . fs_hctsiz1 }
#[doc = "0x140 - OTG_FS host channel-2 characteristics register (OTG_FS_HCCHAR2)"]
#[inline (always)] pub const fn fs_hcchar2 (& self) -> & FsHcchar2 { & self . fs_hcchar2 }
#[doc = "0x148 - OTG_FS host channel-2 interrupt register (OTG_FS_HCINT2)"]
#[inline (always)] pub const fn fs_hcint2 (& self) -> & FsHcint2 { & self . fs_hcint2 }
#[doc = "0x14c - OTG_FS host channel-2 mask register (OTG_FS_HCINTMSK2)"]
#[inline (always)] pub const fn fs_hcintmsk2 (& self) -> & FsHcintmsk2 { & self . fs_hcintmsk2 }
#[doc = "0x150 - OTG_FS host channel-2 transfer size register"]
#[inline (always)] pub const fn fs_hctsiz2 (& self) -> & FsHctsiz2 { & self . fs_hctsiz2 }
#[doc = "0x160 - OTG_FS host channel-3 characteristics register (OTG_FS_HCCHAR3)"]
#[inline (always)] pub const fn fs_hcchar3 (& self) -> & FsHcchar3 { & self . fs_hcchar3 }
#[doc = "0x168 - OTG_FS host channel-3 interrupt register (OTG_FS_HCINT3)"]
#[inline (always)] pub const fn fs_hcint3 (& self) -> & FsHcint3 { & self . fs_hcint3 }
#[doc = "0x16c - OTG_FS host channel-3 mask register (OTG_FS_HCINTMSK3)"]
#[inline (always)] pub const fn fs_hcintmsk3 (& self) -> & FsHcintmsk3 { & self . fs_hcintmsk3 }
#[doc = "0x170 - OTG_FS host channel-3 transfer size register"]
#[inline (always)] pub const fn fs_hctsiz3 (& self) -> & FsHctsiz3 { & self . fs_hctsiz3 }
#[doc = "0x180 - OTG_FS host channel-4 characteristics register (OTG_FS_HCCHAR4)"]
#[inline (always)] pub const fn fs_hcchar4 (& self) -> & FsHcchar4 { & self . fs_hcchar4 }
#[doc = "0x188 - OTG_FS host channel-4 interrupt register (OTG_FS_HCINT4)"]
#[inline (always)] pub const fn fs_hcint4 (& self) -> & FsHcint4 { & self . fs_hcint4 }
#[doc = "0x18c - OTG_FS host channel-4 mask register (OTG_FS_HCINTMSK4)"]
#[inline (always)] pub const fn fs_hcintmsk4 (& self) -> & FsHcintmsk4 { & self . fs_hcintmsk4 }
#[doc = "0x190 - OTG_FS host channel-x transfer size register"]
#[inline (always)] pub const fn fs_hctsiz4 (& self) -> & FsHctsiz4 { & self . fs_hctsiz4 }
#[doc = "0x1a0 - OTG_FS host channel-5 characteristics register (OTG_FS_HCCHAR5)"]
#[inline (always)] pub const fn fs_hcchar5 (& self) -> & FsHcchar5 { & self . fs_hcchar5 }
#[doc = "0x1a8 - OTG_FS host channel-5 interrupt register (OTG_FS_HCINT5)"]
#[inline (always)] pub const fn fs_hcint5 (& self) -> & FsHcint5 { & self . fs_hcint5 }
#[doc = "0x1ac - OTG_FS host channel-5 mask register (OTG_FS_HCINTMSK5)"]
#[inline (always)] pub const fn fs_hcintmsk5 (& self) -> & FsHcintmsk5 { & self . fs_hcintmsk5 }
#[doc = "0x1b0 - OTG_FS host channel-5 transfer size register"]
#[inline (always)] pub const fn fs_hctsiz5 (& self) -> & FsHctsiz5 { & self . fs_hctsiz5 }
#[doc = "0x1c0 - OTG_FS host channel-6 characteristics register (OTG_FS_HCCHAR6)"]
#[inline (always)] pub const fn fs_hcchar6 (& self) -> & FsHcchar6 { & self . fs_hcchar6 }
#[doc = "0x1c8 - OTG_FS host channel-6 interrupt register (OTG_FS_HCINT6)"]
#[inline (always)] pub const fn fs_hcint6 (& self) -> & FsHcint6 { & self . fs_hcint6 }
#[doc = "0x1cc - OTG_FS host channel-6 mask register (OTG_FS_HCINTMSK6)"]
#[inline (always)] pub const fn fs_hcintmsk6 (& self) -> & FsHcintmsk6 { & self . fs_hcintmsk6 }
#[doc = "0x1d0 - OTG_FS host channel-6 transfer size register"]
#[inline (always)] pub const fn fs_hctsiz6 (& self) -> & FsHctsiz6 { & self . fs_hctsiz6 }
#[doc = "0x1e0 - OTG_FS host channel-7 characteristics register (OTG_FS_HCCHAR7)"]
#[inline (always)] pub const fn fs_hcchar7 (& self) -> & FsHcchar7 { & self . fs_hcchar7 }
#[doc = "0x1e8 - OTG_FS host channel-7 interrupt register (OTG_FS_HCINT7)"]
#[inline (always)] pub const fn fs_hcint7 (& self) -> & FsHcint7 { & self . fs_hcint7 }
#[doc = "0x1ec - OTG_FS host channel-7 mask register (OTG_FS_HCINTMSK7)"]
#[inline (always)] pub const fn fs_hcintmsk7 (& self) -> & FsHcintmsk7 { & self . fs_hcintmsk7 }
#[doc = "0x1f0 - OTG_FS host channel-7 transfer size register"]
#[inline (always)] pub const fn fs_hctsiz7 (& self) -> & FsHctsiz7 { & self . fs_hctsiz7 } }
#[doc = "FS_HCFG (rw) register accessor: OTG_FS host configuration register (OTG_FS_HCFG)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcfg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcfg::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcfg`] module"]
#[doc (alias = "FS_HCFG")] pub type FsHcfg = crate :: Reg < fs_hcfg :: FsHcfgSpec > ;
#[doc = "OTG_FS host configuration register (OTG_FS_HCFG)"] pub mod fs_hcfg {
#[doc = "Register `FS_HCFG` reader"] pub type R = crate :: R < FsHcfgSpec > ;
#[doc = "Register `FS_HCFG` writer"] pub type W = crate :: W < FsHcfgSpec > ;
#[doc = "Field `FSLSPCS` reader - FS/LS PHY clock select"] pub type FslspcsR = crate :: FieldReader ;
#[doc = "Field `FSLSPCS` writer - FS/LS PHY clock select"] pub type FslspcsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `FSLSS` reader - FS- and LS-only support"] pub type FslssR = crate :: BitReader ; impl R {
#[doc = "Bits 0:1 - FS/LS PHY clock select"]
#[inline (always)] pub fn fslspcs (& self) -> FslspcsR { FslspcsR :: new ((self . bits & 3) as u8) }
#[doc = "Bit 2 - FS- and LS-only support"]
#[inline (always)] pub fn fslss (& self) -> FslssR { FslssR :: new (((self . bits >> 2) & 1) != 0) } } impl W {
#[doc = "Bits 0:1 - FS/LS PHY clock select"]
#[inline (always)] pub fn fslspcs (& mut self) -> FslspcsW < '_ , FsHcfgSpec > { FslspcsW :: new (self , 0) } }
#[doc = "OTG_FS host configuration register (OTG_FS_HCFG)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcfg::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcfg::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcfgSpec ; impl crate :: RegisterSpec for FsHcfgSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcfg::R`](R) reader structure"] impl crate :: Readable for FsHcfgSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcfg::W`](W) writer structure"] impl crate :: Writable for FsHcfgSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCFG to value 0"] impl crate :: Resettable for FsHcfgSpec { } }
#[doc = "HFIR (rw) register accessor: OTG_FS Host frame interval register\n\nYou can [`read`](crate::Reg::read) this register and get [`hfir::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfir::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@hfir`] module"]
#[doc (alias = "HFIR")] pub type Hfir = crate :: Reg < hfir :: HfirSpec > ;
#[doc = "OTG_FS Host frame interval register"] pub mod hfir {
#[doc = "Register `HFIR` reader"] pub type R = crate :: R < HfirSpec > ;
#[doc = "Register `HFIR` writer"] pub type W = crate :: W < HfirSpec > ;
#[doc = "Field `FRIVL` reader - Frame interval"] pub type FrivlR = crate :: FieldReader < u16 > ;
#[doc = "Field `FRIVL` writer - Frame interval"] pub type FrivlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Frame interval"]
#[inline (always)] pub fn frivl (& self) -> FrivlR { FrivlR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Frame interval"]
#[inline (always)] pub fn frivl (& mut self) -> FrivlW < '_ , HfirSpec > { FrivlW :: new (self , 0) } }
#[doc = "OTG_FS Host frame interval register\n\nYou can [`read`](crate::Reg::read) this register and get [`hfir::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hfir::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct HfirSpec ; impl crate :: RegisterSpec for HfirSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`hfir::R`](R) reader structure"] impl crate :: Readable for HfirSpec { }
#[doc = "`write(|w| ..)` method takes [`hfir::W`](W) writer structure"] impl crate :: Writable for HfirSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets HFIR to value 0xea60"] impl crate :: Resettable for HfirSpec { const RESET_VALUE : u32 = 0xea60 ; } }
#[doc = "FS_HFNUM (r) register accessor: OTG_FS host frame number/frame time remaining register (OTG_FS_HFNUM)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hfnum::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hfnum`] module"]
#[doc (alias = "FS_HFNUM")] pub type FsHfnum = crate :: Reg < fs_hfnum :: FsHfnumSpec > ;
#[doc = "OTG_FS host frame number/frame time remaining register (OTG_FS_HFNUM)"] pub mod fs_hfnum {
#[doc = "Register `FS_HFNUM` reader"] pub type R = crate :: R < FsHfnumSpec > ;
#[doc = "Field `FRNUM` reader - Frame number"] pub type FrnumR = crate :: FieldReader < u16 > ;
#[doc = "Field `FTREM` reader - Frame time remaining"] pub type FtremR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - Frame number"]
#[inline (always)] pub fn frnum (& self) -> FrnumR { FrnumR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 16:31 - Frame time remaining"]
#[inline (always)] pub fn ftrem (& self) -> FtremR { FtremR :: new (((self . bits >> 16) & 0xffff) as u16) } }
#[doc = "OTG_FS host frame number/frame time remaining register (OTG_FS_HFNUM)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hfnum::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHfnumSpec ; impl crate :: RegisterSpec for FsHfnumSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hfnum::R`](R) reader structure"] impl crate :: Readable for FsHfnumSpec { }
#[doc = "`reset()` method sets FS_HFNUM to value 0x3fff"] impl crate :: Resettable for FsHfnumSpec { const RESET_VALUE : u32 = 0x3fff ; } }
#[doc = "FS_HPTXSTS (rw) register accessor: OTG_FS_Host periodic transmit FIFO/queue status register (OTG_FS_HPTXSTS)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hptxsts::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hptxsts::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hptxsts`] module"]
#[doc (alias = "FS_HPTXSTS")] pub type FsHptxsts = crate :: Reg < fs_hptxsts :: FsHptxstsSpec > ;
#[doc = "OTG_FS_Host periodic transmit FIFO/queue status register (OTG_FS_HPTXSTS)"] pub mod fs_hptxsts {
#[doc = "Register `FS_HPTXSTS` reader"] pub type R = crate :: R < FsHptxstsSpec > ;
#[doc = "Register `FS_HPTXSTS` writer"] pub type W = crate :: W < FsHptxstsSpec > ;
#[doc = "Field `PTXFSAVL` reader - Periodic transmit data FIFO space available"] pub type PtxfsavlR = crate :: FieldReader < u16 > ;
#[doc = "Field `PTXFSAVL` writer - Periodic transmit data FIFO space available"] pub type PtxfsavlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ;
#[doc = "Field `PTXQSAV` reader - Periodic transmit request queue space available"] pub type PtxqsavR = crate :: FieldReader ;
#[doc = "Field `PTXQTOP` reader - Top of the periodic transmit request queue"] pub type PtxqtopR = crate :: FieldReader ; impl R {
#[doc = "Bits 0:15 - Periodic transmit data FIFO space available"]
#[inline (always)] pub fn ptxfsavl (& self) -> PtxfsavlR { PtxfsavlR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 16:23 - Periodic transmit request queue space available"]
#[inline (always)] pub fn ptxqsav (& self) -> PtxqsavR { PtxqsavR :: new (((self . bits >> 16) & 0xff) as u8) }
#[doc = "Bits 24:31 - Top of the periodic transmit request queue"]
#[inline (always)] pub fn ptxqtop (& self) -> PtxqtopR { PtxqtopR :: new (((self . bits >> 24) & 0xff) as u8) } } impl W {
#[doc = "Bits 0:15 - Periodic transmit data FIFO space available"]
#[inline (always)] pub fn ptxfsavl (& mut self) -> PtxfsavlW < '_ , FsHptxstsSpec > { PtxfsavlW :: new (self , 0) } }
#[doc = "OTG_FS_Host periodic transmit FIFO/queue status register (OTG_FS_HPTXSTS)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hptxsts::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hptxsts::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHptxstsSpec ; impl crate :: RegisterSpec for FsHptxstsSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hptxsts::R`](R) reader structure"] impl crate :: Readable for FsHptxstsSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_hptxsts::W`](W) writer structure"] impl crate :: Writable for FsHptxstsSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HPTXSTS to value 0x0008_0100"] impl crate :: Resettable for FsHptxstsSpec { const RESET_VALUE : u32 = 0x0008_0100 ; } }
#[doc = "HAINT (r) register accessor: OTG_FS Host all channels interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`haint::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@haint`] module"]
#[doc (alias = "HAINT")] pub type Haint = crate :: Reg < haint :: HaintSpec > ;
#[doc = "OTG_FS Host all channels interrupt register"] pub mod haint {
#[doc = "Register `HAINT` reader"] pub type R = crate :: R < HaintSpec > ;
#[doc = "Field `HAINT` reader - Channel interrupts"] pub type HaintR = crate :: FieldReader < u16 > ; impl R {
#[doc = "Bits 0:15 - Channel interrupts"]
#[inline (always)] pub fn haint (& self) -> HaintR { HaintR :: new ((self . bits & 0xffff) as u16) } }
#[doc = "OTG_FS Host all channels interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`haint::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct HaintSpec ; impl crate :: RegisterSpec for HaintSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`haint::R`](R) reader structure"] impl crate :: Readable for HaintSpec { }
#[doc = "`reset()` method sets HAINT to value 0"] impl crate :: Resettable for HaintSpec { } }
#[doc = "HAINTMSK (rw) register accessor: OTG_FS host all channels interrupt mask register\n\nYou can [`read`](crate::Reg::read) this register and get [`haintmsk::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`haintmsk::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@haintmsk`] module"]
#[doc (alias = "HAINTMSK")] pub type Haintmsk = crate :: Reg < haintmsk :: HaintmskSpec > ;
#[doc = "OTG_FS host all channels interrupt mask register"] pub mod haintmsk {
#[doc = "Register `HAINTMSK` reader"] pub type R = crate :: R < HaintmskSpec > ;
#[doc = "Register `HAINTMSK` writer"] pub type W = crate :: W < HaintmskSpec > ;
#[doc = "Field `HAINTM` reader - Channel interrupt mask"] pub type HaintmR = crate :: FieldReader < u16 > ;
#[doc = "Field `HAINTM` writer - Channel interrupt mask"] pub type HaintmW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - Channel interrupt mask"]
#[inline (always)] pub fn haintm (& self) -> HaintmR { HaintmR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - Channel interrupt mask"]
#[inline (always)] pub fn haintm (& mut self) -> HaintmW < '_ , HaintmskSpec > { HaintmW :: new (self , 0) } }
#[doc = "OTG_FS host all channels interrupt mask register\n\nYou can [`read`](crate::Reg::read) this register and get [`haintmsk::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`haintmsk::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct HaintmskSpec ; impl crate :: RegisterSpec for HaintmskSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`haintmsk::R`](R) reader structure"] impl crate :: Readable for HaintmskSpec { }
#[doc = "`write(|w| ..)` method takes [`haintmsk::W`](W) writer structure"] impl crate :: Writable for HaintmskSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets HAINTMSK to value 0"] impl crate :: Resettable for HaintmskSpec { } }
#[doc = "FS_HPRT (rw) register accessor: OTG_FS host port control and status register (OTG_FS_HPRT)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hprt::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hprt::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hprt`] module"]
#[doc (alias = "FS_HPRT")] pub type FsHprt = crate :: Reg < fs_hprt :: FsHprtSpec > ;
#[doc = "OTG_FS host port control and status register (OTG_FS_HPRT)"] pub mod fs_hprt {
#[doc = "Register `FS_HPRT` reader"] pub type R = crate :: R < FsHprtSpec > ;
#[doc = "Register `FS_HPRT` writer"] pub type W = crate :: W < FsHprtSpec > ;
#[doc = "Field `PCSTS` reader - Port connect status"] pub type PcstsR = crate :: BitReader ;
#[doc = "Field `PCDET` reader - Port connect detected"] pub type PcdetR = crate :: BitReader ;
#[doc = "Field `PCDET` writer - Port connect detected"] pub type PcdetW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PENA` reader - Port enable"] pub type PenaR = crate :: BitReader ;
#[doc = "Field `PENA` writer - Port enable"] pub type PenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PENCHNG` reader - Port enable/disable change"] pub type PenchngR = crate :: BitReader ;
#[doc = "Field `PENCHNG` writer - Port enable/disable change"] pub type PenchngW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `POCA` reader - Port overcurrent active"] pub type PocaR = crate :: BitReader ;
#[doc = "Field `POCCHNG` reader - Port overcurrent change"] pub type PocchngR = crate :: BitReader ;
#[doc = "Field `POCCHNG` writer - Port overcurrent change"] pub type PocchngW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PRES` reader - Port resume"] pub type PresR = crate :: BitReader ;
#[doc = "Field `PRES` writer - Port resume"] pub type PresW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PSUSP` reader - Port suspend"] pub type PsuspR = crate :: BitReader ;
#[doc = "Field `PSUSP` writer - Port suspend"] pub type PsuspW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PRST` reader - Port reset"] pub type PrstR = crate :: BitReader ;
#[doc = "Field `PRST` writer - Port reset"] pub type PrstW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PLSTS` reader - Port line status"] pub type PlstsR = crate :: FieldReader ;
#[doc = "Field `PPWR` reader - Port power"] pub type PpwrR = crate :: BitReader ;
#[doc = "Field `PPWR` writer - Port power"] pub type PpwrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PTCTL` reader - Port test control"] pub type PtctlR = crate :: FieldReader ;
#[doc = "Field `PTCTL` writer - Port test control"] pub type PtctlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `PSPD` reader - Port speed"] pub type PspdR = crate :: FieldReader ; impl R {
#[doc = "Bit 0 - Port connect status"]
#[inline (always)] pub fn pcsts (& self) -> PcstsR { PcstsR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Port connect detected"]
#[inline (always)] pub fn pcdet (& self) -> PcdetR { PcdetR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Port enable"]
#[inline (always)] pub fn pena (& self) -> PenaR { PenaR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Port enable/disable change"]
#[inline (always)] pub fn penchng (& self) -> PenchngR { PenchngR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Port overcurrent active"]
#[inline (always)] pub fn poca (& self) -> PocaR { PocaR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Port overcurrent change"]
#[inline (always)] pub fn pocchng (& self) -> PocchngR { PocchngR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Port resume"]
#[inline (always)] pub fn pres (& self) -> PresR { PresR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Port suspend"]
#[inline (always)] pub fn psusp (& self) -> PsuspR { PsuspR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Port reset"]
#[inline (always)] pub fn prst (& self) -> PrstR { PrstR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bits 10:11 - Port line status"]
#[inline (always)] pub fn plsts (& self) -> PlstsR { PlstsR :: new (((self . bits >> 10) & 3) as u8) }
#[doc = "Bit 12 - Port power"]
#[inline (always)] pub fn ppwr (& self) -> PpwrR { PpwrR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bits 13:16 - Port test control"]
#[inline (always)] pub fn ptctl (& self) -> PtctlR { PtctlR :: new (((self . bits >> 13) & 0x0f) as u8) }
#[doc = "Bits 17:18 - Port speed"]
#[inline (always)] pub fn pspd (& self) -> PspdR { PspdR :: new (((self . bits >> 17) & 3) as u8) } } impl W {
#[doc = "Bit 1 - Port connect detected"]
#[inline (always)] pub fn pcdet (& mut self) -> PcdetW < '_ , FsHprtSpec > { PcdetW :: new (self , 1) }
#[doc = "Bit 2 - Port enable"]
#[inline (always)] pub fn pena (& mut self) -> PenaW < '_ , FsHprtSpec > { PenaW :: new (self , 2) }
#[doc = "Bit 3 - Port enable/disable change"]
#[inline (always)] pub fn penchng (& mut self) -> PenchngW < '_ , FsHprtSpec > { PenchngW :: new (self , 3) }
#[doc = "Bit 5 - Port overcurrent change"]
#[inline (always)] pub fn pocchng (& mut self) -> PocchngW < '_ , FsHprtSpec > { PocchngW :: new (self , 5) }
#[doc = "Bit 6 - Port resume"]
#[inline (always)] pub fn pres (& mut self) -> PresW < '_ , FsHprtSpec > { PresW :: new (self , 6) }
#[doc = "Bit 7 - Port suspend"]
#[inline (always)] pub fn psusp (& mut self) -> PsuspW < '_ , FsHprtSpec > { PsuspW :: new (self , 7) }
#[doc = "Bit 8 - Port reset"]
#[inline (always)] pub fn prst (& mut self) -> PrstW < '_ , FsHprtSpec > { PrstW :: new (self , 8) }
#[doc = "Bit 12 - Port power"]
#[inline (always)] pub fn ppwr (& mut self) -> PpwrW < '_ , FsHprtSpec > { PpwrW :: new (self , 12) }
#[doc = "Bits 13:16 - Port test control"]
#[inline (always)] pub fn ptctl (& mut self) -> PtctlW < '_ , FsHprtSpec > { PtctlW :: new (self , 13) } }
#[doc = "OTG_FS host port control and status register (OTG_FS_HPRT)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hprt::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hprt::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHprtSpec ; impl crate :: RegisterSpec for FsHprtSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hprt::R`](R) reader structure"] impl crate :: Readable for FsHprtSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_hprt::W`](W) writer structure"] impl crate :: Writable for FsHprtSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HPRT to value 0"] impl crate :: Resettable for FsHprtSpec { } }
#[doc = "FS_HCCHAR0 (rw) register accessor: OTG_FS host channel-0 characteristics register (OTG_FS_HCCHAR0)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcchar0`] module"]
#[doc (alias = "FS_HCCHAR0")] pub type FsHcchar0 = crate :: Reg < fs_hcchar0 :: FsHcchar0Spec > ;
#[doc = "OTG_FS host channel-0 characteristics register (OTG_FS_HCCHAR0)"] pub mod fs_hcchar0 {
#[doc = "Register `FS_HCCHAR0` reader"] pub type R = crate :: R < FsHcchar0Spec > ;
#[doc = "Register `FS_HCCHAR0` writer"] pub type W = crate :: W < FsHcchar0Spec > ;
#[doc = "Field `MPSIZ` reader - Maximum packet size"] pub type MpsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `MPSIZ` writer - Maximum packet size"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ;
#[doc = "Field `EPNUM` reader - Endpoint number"] pub type EpnumR = crate :: FieldReader ;
#[doc = "Field `EPNUM` writer - Endpoint number"] pub type EpnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EPDIR` reader - Endpoint direction"] pub type EpdirR = crate :: BitReader ;
#[doc = "Field `EPDIR` writer - Endpoint direction"] pub type EpdirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LSDEV` reader - Low-speed device"] pub type LsdevR = crate :: BitReader ;
#[doc = "Field `LSDEV` writer - Low-speed device"] pub type LsdevW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPTYP` reader - Endpoint type"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `EPTYP` writer - Endpoint type"] pub type EptypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MCNT` reader - Multicount"] pub type McntR = crate :: FieldReader ;
#[doc = "Field `MCNT` writer - Multicount"] pub type McntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DAD` reader - Device address"] pub type DadR = crate :: FieldReader ;
#[doc = "Field `DAD` writer - Device address"] pub type DadW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `ODDFRM` reader - Odd frame"] pub type OddfrmR = crate :: BitReader ;
#[doc = "Field `ODDFRM` writer - Odd frame"] pub type OddfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHDIS` reader - Channel disable"] pub type ChdisR = crate :: BitReader ;
#[doc = "Field `CHDIS` writer - Channel disable"] pub type ChdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHENA` reader - Channel enable"] pub type ChenaR = crate :: BitReader ;
#[doc = "Field `CHENA` writer - Channel enable"] pub type ChenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& self) -> EpnumR { EpnumR :: new (((self . bits >> 11) & 0x0f) as u8) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& self) -> EpdirR { EpdirR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& self) -> LsdevR { LsdevR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& self) -> McntR { McntR :: new (((self . bits >> 20) & 3) as u8) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& self) -> DadR { DadR :: new (((self . bits >> 22) & 0x7f) as u8) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& self) -> OddfrmR { OddfrmR :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& self) -> ChdisR { ChdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& self) -> ChenaR { ChenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , FsHcchar0Spec > { MpsizW :: new (self , 0) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& mut self) -> EpnumW < '_ , FsHcchar0Spec > { EpnumW :: new (self , 11) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& mut self) -> EpdirW < '_ , FsHcchar0Spec > { EpdirW :: new (self , 15) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& mut self) -> LsdevW < '_ , FsHcchar0Spec > { LsdevW :: new (self , 17) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& mut self) -> EptypW < '_ , FsHcchar0Spec > { EptypW :: new (self , 18) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& mut self) -> McntW < '_ , FsHcchar0Spec > { McntW :: new (self , 20) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& mut self) -> DadW < '_ , FsHcchar0Spec > { DadW :: new (self , 22) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& mut self) -> OddfrmW < '_ , FsHcchar0Spec > { OddfrmW :: new (self , 29) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& mut self) -> ChdisW < '_ , FsHcchar0Spec > { ChdisW :: new (self , 30) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& mut self) -> ChenaW < '_ , FsHcchar0Spec > { ChenaW :: new (self , 31) } }
#[doc = "OTG_FS host channel-0 characteristics register (OTG_FS_HCCHAR0)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcchar0Spec ; impl crate :: RegisterSpec for FsHcchar0Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcchar0::R`](R) reader structure"] impl crate :: Readable for FsHcchar0Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcchar0::W`](W) writer structure"] impl crate :: Writable for FsHcchar0Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCCHAR0 to value 0"] impl crate :: Resettable for FsHcchar0Spec { } }
#[doc = "FS_HCCHAR1 (rw) register accessor: OTG_FS host channel-1 characteristics register (OTG_FS_HCCHAR1)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcchar1`] module"]
#[doc (alias = "FS_HCCHAR1")] pub type FsHcchar1 = crate :: Reg < fs_hcchar1 :: FsHcchar1Spec > ;
#[doc = "OTG_FS host channel-1 characteristics register (OTG_FS_HCCHAR1)"] pub mod fs_hcchar1 {
#[doc = "Register `FS_HCCHAR1` reader"] pub type R = crate :: R < FsHcchar1Spec > ;
#[doc = "Register `FS_HCCHAR1` writer"] pub type W = crate :: W < FsHcchar1Spec > ;
#[doc = "Field `MPSIZ` reader - Maximum packet size"] pub type MpsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `MPSIZ` writer - Maximum packet size"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ;
#[doc = "Field `EPNUM` reader - Endpoint number"] pub type EpnumR = crate :: FieldReader ;
#[doc = "Field `EPNUM` writer - Endpoint number"] pub type EpnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EPDIR` reader - Endpoint direction"] pub type EpdirR = crate :: BitReader ;
#[doc = "Field `EPDIR` writer - Endpoint direction"] pub type EpdirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LSDEV` reader - Low-speed device"] pub type LsdevR = crate :: BitReader ;
#[doc = "Field `LSDEV` writer - Low-speed device"] pub type LsdevW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPTYP` reader - Endpoint type"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `EPTYP` writer - Endpoint type"] pub type EptypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MCNT` reader - Multicount"] pub type McntR = crate :: FieldReader ;
#[doc = "Field `MCNT` writer - Multicount"] pub type McntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DAD` reader - Device address"] pub type DadR = crate :: FieldReader ;
#[doc = "Field `DAD` writer - Device address"] pub type DadW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `ODDFRM` reader - Odd frame"] pub type OddfrmR = crate :: BitReader ;
#[doc = "Field `ODDFRM` writer - Odd frame"] pub type OddfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHDIS` reader - Channel disable"] pub type ChdisR = crate :: BitReader ;
#[doc = "Field `CHDIS` writer - Channel disable"] pub type ChdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHENA` reader - Channel enable"] pub type ChenaR = crate :: BitReader ;
#[doc = "Field `CHENA` writer - Channel enable"] pub type ChenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& self) -> EpnumR { EpnumR :: new (((self . bits >> 11) & 0x0f) as u8) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& self) -> EpdirR { EpdirR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& self) -> LsdevR { LsdevR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& self) -> McntR { McntR :: new (((self . bits >> 20) & 3) as u8) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& self) -> DadR { DadR :: new (((self . bits >> 22) & 0x7f) as u8) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& self) -> OddfrmR { OddfrmR :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& self) -> ChdisR { ChdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& self) -> ChenaR { ChenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , FsHcchar1Spec > { MpsizW :: new (self , 0) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& mut self) -> EpnumW < '_ , FsHcchar1Spec > { EpnumW :: new (self , 11) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& mut self) -> EpdirW < '_ , FsHcchar1Spec > { EpdirW :: new (self , 15) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& mut self) -> LsdevW < '_ , FsHcchar1Spec > { LsdevW :: new (self , 17) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& mut self) -> EptypW < '_ , FsHcchar1Spec > { EptypW :: new (self , 18) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& mut self) -> McntW < '_ , FsHcchar1Spec > { McntW :: new (self , 20) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& mut self) -> DadW < '_ , FsHcchar1Spec > { DadW :: new (self , 22) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& mut self) -> OddfrmW < '_ , FsHcchar1Spec > { OddfrmW :: new (self , 29) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& mut self) -> ChdisW < '_ , FsHcchar1Spec > { ChdisW :: new (self , 30) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& mut self) -> ChenaW < '_ , FsHcchar1Spec > { ChenaW :: new (self , 31) } }
#[doc = "OTG_FS host channel-1 characteristics register (OTG_FS_HCCHAR1)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcchar1Spec ; impl crate :: RegisterSpec for FsHcchar1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcchar1::R`](R) reader structure"] impl crate :: Readable for FsHcchar1Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcchar1::W`](W) writer structure"] impl crate :: Writable for FsHcchar1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCCHAR1 to value 0"] impl crate :: Resettable for FsHcchar1Spec { } }
#[doc = "FS_HCCHAR2 (rw) register accessor: OTG_FS host channel-2 characteristics register (OTG_FS_HCCHAR2)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcchar2`] module"]
#[doc (alias = "FS_HCCHAR2")] pub type FsHcchar2 = crate :: Reg < fs_hcchar2 :: FsHcchar2Spec > ;
#[doc = "OTG_FS host channel-2 characteristics register (OTG_FS_HCCHAR2)"] pub mod fs_hcchar2 {
#[doc = "Register `FS_HCCHAR2` reader"] pub type R = crate :: R < FsHcchar2Spec > ;
#[doc = "Register `FS_HCCHAR2` writer"] pub type W = crate :: W < FsHcchar2Spec > ;
#[doc = "Field `MPSIZ` reader - Maximum packet size"] pub type MpsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `MPSIZ` writer - Maximum packet size"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ;
#[doc = "Field `EPNUM` reader - Endpoint number"] pub type EpnumR = crate :: FieldReader ;
#[doc = "Field `EPNUM` writer - Endpoint number"] pub type EpnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EPDIR` reader - Endpoint direction"] pub type EpdirR = crate :: BitReader ;
#[doc = "Field `EPDIR` writer - Endpoint direction"] pub type EpdirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LSDEV` reader - Low-speed device"] pub type LsdevR = crate :: BitReader ;
#[doc = "Field `LSDEV` writer - Low-speed device"] pub type LsdevW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPTYP` reader - Endpoint type"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `EPTYP` writer - Endpoint type"] pub type EptypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MCNT` reader - Multicount"] pub type McntR = crate :: FieldReader ;
#[doc = "Field `MCNT` writer - Multicount"] pub type McntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DAD` reader - Device address"] pub type DadR = crate :: FieldReader ;
#[doc = "Field `DAD` writer - Device address"] pub type DadW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `ODDFRM` reader - Odd frame"] pub type OddfrmR = crate :: BitReader ;
#[doc = "Field `ODDFRM` writer - Odd frame"] pub type OddfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHDIS` reader - Channel disable"] pub type ChdisR = crate :: BitReader ;
#[doc = "Field `CHDIS` writer - Channel disable"] pub type ChdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHENA` reader - Channel enable"] pub type ChenaR = crate :: BitReader ;
#[doc = "Field `CHENA` writer - Channel enable"] pub type ChenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& self) -> EpnumR { EpnumR :: new (((self . bits >> 11) & 0x0f) as u8) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& self) -> EpdirR { EpdirR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& self) -> LsdevR { LsdevR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& self) -> McntR { McntR :: new (((self . bits >> 20) & 3) as u8) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& self) -> DadR { DadR :: new (((self . bits >> 22) & 0x7f) as u8) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& self) -> OddfrmR { OddfrmR :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& self) -> ChdisR { ChdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& self) -> ChenaR { ChenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , FsHcchar2Spec > { MpsizW :: new (self , 0) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& mut self) -> EpnumW < '_ , FsHcchar2Spec > { EpnumW :: new (self , 11) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& mut self) -> EpdirW < '_ , FsHcchar2Spec > { EpdirW :: new (self , 15) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& mut self) -> LsdevW < '_ , FsHcchar2Spec > { LsdevW :: new (self , 17) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& mut self) -> EptypW < '_ , FsHcchar2Spec > { EptypW :: new (self , 18) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& mut self) -> McntW < '_ , FsHcchar2Spec > { McntW :: new (self , 20) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& mut self) -> DadW < '_ , FsHcchar2Spec > { DadW :: new (self , 22) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& mut self) -> OddfrmW < '_ , FsHcchar2Spec > { OddfrmW :: new (self , 29) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& mut self) -> ChdisW < '_ , FsHcchar2Spec > { ChdisW :: new (self , 30) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& mut self) -> ChenaW < '_ , FsHcchar2Spec > { ChenaW :: new (self , 31) } }
#[doc = "OTG_FS host channel-2 characteristics register (OTG_FS_HCCHAR2)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcchar2Spec ; impl crate :: RegisterSpec for FsHcchar2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcchar2::R`](R) reader structure"] impl crate :: Readable for FsHcchar2Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcchar2::W`](W) writer structure"] impl crate :: Writable for FsHcchar2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCCHAR2 to value 0"] impl crate :: Resettable for FsHcchar2Spec { } }
#[doc = "FS_HCCHAR3 (rw) register accessor: OTG_FS host channel-3 characteristics register (OTG_FS_HCCHAR3)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcchar3`] module"]
#[doc (alias = "FS_HCCHAR3")] pub type FsHcchar3 = crate :: Reg < fs_hcchar3 :: FsHcchar3Spec > ;
#[doc = "OTG_FS host channel-3 characteristics register (OTG_FS_HCCHAR3)"] pub mod fs_hcchar3 {
#[doc = "Register `FS_HCCHAR3` reader"] pub type R = crate :: R < FsHcchar3Spec > ;
#[doc = "Register `FS_HCCHAR3` writer"] pub type W = crate :: W < FsHcchar3Spec > ;
#[doc = "Field `MPSIZ` reader - Maximum packet size"] pub type MpsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `MPSIZ` writer - Maximum packet size"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ;
#[doc = "Field `EPNUM` reader - Endpoint number"] pub type EpnumR = crate :: FieldReader ;
#[doc = "Field `EPNUM` writer - Endpoint number"] pub type EpnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EPDIR` reader - Endpoint direction"] pub type EpdirR = crate :: BitReader ;
#[doc = "Field `EPDIR` writer - Endpoint direction"] pub type EpdirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LSDEV` reader - Low-speed device"] pub type LsdevR = crate :: BitReader ;
#[doc = "Field `LSDEV` writer - Low-speed device"] pub type LsdevW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPTYP` reader - Endpoint type"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `EPTYP` writer - Endpoint type"] pub type EptypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MCNT` reader - Multicount"] pub type McntR = crate :: FieldReader ;
#[doc = "Field `MCNT` writer - Multicount"] pub type McntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DAD` reader - Device address"] pub type DadR = crate :: FieldReader ;
#[doc = "Field `DAD` writer - Device address"] pub type DadW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `ODDFRM` reader - Odd frame"] pub type OddfrmR = crate :: BitReader ;
#[doc = "Field `ODDFRM` writer - Odd frame"] pub type OddfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHDIS` reader - Channel disable"] pub type ChdisR = crate :: BitReader ;
#[doc = "Field `CHDIS` writer - Channel disable"] pub type ChdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHENA` reader - Channel enable"] pub type ChenaR = crate :: BitReader ;
#[doc = "Field `CHENA` writer - Channel enable"] pub type ChenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& self) -> EpnumR { EpnumR :: new (((self . bits >> 11) & 0x0f) as u8) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& self) -> EpdirR { EpdirR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& self) -> LsdevR { LsdevR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& self) -> McntR { McntR :: new (((self . bits >> 20) & 3) as u8) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& self) -> DadR { DadR :: new (((self . bits >> 22) & 0x7f) as u8) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& self) -> OddfrmR { OddfrmR :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& self) -> ChdisR { ChdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& self) -> ChenaR { ChenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , FsHcchar3Spec > { MpsizW :: new (self , 0) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& mut self) -> EpnumW < '_ , FsHcchar3Spec > { EpnumW :: new (self , 11) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& mut self) -> EpdirW < '_ , FsHcchar3Spec > { EpdirW :: new (self , 15) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& mut self) -> LsdevW < '_ , FsHcchar3Spec > { LsdevW :: new (self , 17) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& mut self) -> EptypW < '_ , FsHcchar3Spec > { EptypW :: new (self , 18) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& mut self) -> McntW < '_ , FsHcchar3Spec > { McntW :: new (self , 20) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& mut self) -> DadW < '_ , FsHcchar3Spec > { DadW :: new (self , 22) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& mut self) -> OddfrmW < '_ , FsHcchar3Spec > { OddfrmW :: new (self , 29) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& mut self) -> ChdisW < '_ , FsHcchar3Spec > { ChdisW :: new (self , 30) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& mut self) -> ChenaW < '_ , FsHcchar3Spec > { ChenaW :: new (self , 31) } }
#[doc = "OTG_FS host channel-3 characteristics register (OTG_FS_HCCHAR3)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcchar3Spec ; impl crate :: RegisterSpec for FsHcchar3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcchar3::R`](R) reader structure"] impl crate :: Readable for FsHcchar3Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcchar3::W`](W) writer structure"] impl crate :: Writable for FsHcchar3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCCHAR3 to value 0"] impl crate :: Resettable for FsHcchar3Spec { } }
#[doc = "FS_HCCHAR4 (rw) register accessor: OTG_FS host channel-4 characteristics register (OTG_FS_HCCHAR4)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcchar4`] module"]
#[doc (alias = "FS_HCCHAR4")] pub type FsHcchar4 = crate :: Reg < fs_hcchar4 :: FsHcchar4Spec > ;
#[doc = "OTG_FS host channel-4 characteristics register (OTG_FS_HCCHAR4)"] pub mod fs_hcchar4 {
#[doc = "Register `FS_HCCHAR4` reader"] pub type R = crate :: R < FsHcchar4Spec > ;
#[doc = "Register `FS_HCCHAR4` writer"] pub type W = crate :: W < FsHcchar4Spec > ;
#[doc = "Field `MPSIZ` reader - Maximum packet size"] pub type MpsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `MPSIZ` writer - Maximum packet size"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ;
#[doc = "Field `EPNUM` reader - Endpoint number"] pub type EpnumR = crate :: FieldReader ;
#[doc = "Field `EPNUM` writer - Endpoint number"] pub type EpnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EPDIR` reader - Endpoint direction"] pub type EpdirR = crate :: BitReader ;
#[doc = "Field `EPDIR` writer - Endpoint direction"] pub type EpdirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LSDEV` reader - Low-speed device"] pub type LsdevR = crate :: BitReader ;
#[doc = "Field `LSDEV` writer - Low-speed device"] pub type LsdevW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPTYP` reader - Endpoint type"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `EPTYP` writer - Endpoint type"] pub type EptypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MCNT` reader - Multicount"] pub type McntR = crate :: FieldReader ;
#[doc = "Field `MCNT` writer - Multicount"] pub type McntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DAD` reader - Device address"] pub type DadR = crate :: FieldReader ;
#[doc = "Field `DAD` writer - Device address"] pub type DadW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `ODDFRM` reader - Odd frame"] pub type OddfrmR = crate :: BitReader ;
#[doc = "Field `ODDFRM` writer - Odd frame"] pub type OddfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHDIS` reader - Channel disable"] pub type ChdisR = crate :: BitReader ;
#[doc = "Field `CHDIS` writer - Channel disable"] pub type ChdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHENA` reader - Channel enable"] pub type ChenaR = crate :: BitReader ;
#[doc = "Field `CHENA` writer - Channel enable"] pub type ChenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& self) -> EpnumR { EpnumR :: new (((self . bits >> 11) & 0x0f) as u8) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& self) -> EpdirR { EpdirR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& self) -> LsdevR { LsdevR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& self) -> McntR { McntR :: new (((self . bits >> 20) & 3) as u8) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& self) -> DadR { DadR :: new (((self . bits >> 22) & 0x7f) as u8) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& self) -> OddfrmR { OddfrmR :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& self) -> ChdisR { ChdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& self) -> ChenaR { ChenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , FsHcchar4Spec > { MpsizW :: new (self , 0) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& mut self) -> EpnumW < '_ , FsHcchar4Spec > { EpnumW :: new (self , 11) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& mut self) -> EpdirW < '_ , FsHcchar4Spec > { EpdirW :: new (self , 15) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& mut self) -> LsdevW < '_ , FsHcchar4Spec > { LsdevW :: new (self , 17) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& mut self) -> EptypW < '_ , FsHcchar4Spec > { EptypW :: new (self , 18) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& mut self) -> McntW < '_ , FsHcchar4Spec > { McntW :: new (self , 20) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& mut self) -> DadW < '_ , FsHcchar4Spec > { DadW :: new (self , 22) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& mut self) -> OddfrmW < '_ , FsHcchar4Spec > { OddfrmW :: new (self , 29) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& mut self) -> ChdisW < '_ , FsHcchar4Spec > { ChdisW :: new (self , 30) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& mut self) -> ChenaW < '_ , FsHcchar4Spec > { ChenaW :: new (self , 31) } }
#[doc = "OTG_FS host channel-4 characteristics register (OTG_FS_HCCHAR4)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcchar4Spec ; impl crate :: RegisterSpec for FsHcchar4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcchar4::R`](R) reader structure"] impl crate :: Readable for FsHcchar4Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcchar4::W`](W) writer structure"] impl crate :: Writable for FsHcchar4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCCHAR4 to value 0"] impl crate :: Resettable for FsHcchar4Spec { } }
#[doc = "FS_HCCHAR5 (rw) register accessor: OTG_FS host channel-5 characteristics register (OTG_FS_HCCHAR5)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar5::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar5::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcchar5`] module"]
#[doc (alias = "FS_HCCHAR5")] pub type FsHcchar5 = crate :: Reg < fs_hcchar5 :: FsHcchar5Spec > ;
#[doc = "OTG_FS host channel-5 characteristics register (OTG_FS_HCCHAR5)"] pub mod fs_hcchar5 {
#[doc = "Register `FS_HCCHAR5` reader"] pub type R = crate :: R < FsHcchar5Spec > ;
#[doc = "Register `FS_HCCHAR5` writer"] pub type W = crate :: W < FsHcchar5Spec > ;
#[doc = "Field `MPSIZ` reader - Maximum packet size"] pub type MpsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `MPSIZ` writer - Maximum packet size"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ;
#[doc = "Field `EPNUM` reader - Endpoint number"] pub type EpnumR = crate :: FieldReader ;
#[doc = "Field `EPNUM` writer - Endpoint number"] pub type EpnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EPDIR` reader - Endpoint direction"] pub type EpdirR = crate :: BitReader ;
#[doc = "Field `EPDIR` writer - Endpoint direction"] pub type EpdirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LSDEV` reader - Low-speed device"] pub type LsdevR = crate :: BitReader ;
#[doc = "Field `LSDEV` writer - Low-speed device"] pub type LsdevW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPTYP` reader - Endpoint type"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `EPTYP` writer - Endpoint type"] pub type EptypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MCNT` reader - Multicount"] pub type McntR = crate :: FieldReader ;
#[doc = "Field `MCNT` writer - Multicount"] pub type McntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DAD` reader - Device address"] pub type DadR = crate :: FieldReader ;
#[doc = "Field `DAD` writer - Device address"] pub type DadW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `ODDFRM` reader - Odd frame"] pub type OddfrmR = crate :: BitReader ;
#[doc = "Field `ODDFRM` writer - Odd frame"] pub type OddfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHDIS` reader - Channel disable"] pub type ChdisR = crate :: BitReader ;
#[doc = "Field `CHDIS` writer - Channel disable"] pub type ChdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHENA` reader - Channel enable"] pub type ChenaR = crate :: BitReader ;
#[doc = "Field `CHENA` writer - Channel enable"] pub type ChenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& self) -> EpnumR { EpnumR :: new (((self . bits >> 11) & 0x0f) as u8) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& self) -> EpdirR { EpdirR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& self) -> LsdevR { LsdevR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& self) -> McntR { McntR :: new (((self . bits >> 20) & 3) as u8) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& self) -> DadR { DadR :: new (((self . bits >> 22) & 0x7f) as u8) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& self) -> OddfrmR { OddfrmR :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& self) -> ChdisR { ChdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& self) -> ChenaR { ChenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , FsHcchar5Spec > { MpsizW :: new (self , 0) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& mut self) -> EpnumW < '_ , FsHcchar5Spec > { EpnumW :: new (self , 11) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& mut self) -> EpdirW < '_ , FsHcchar5Spec > { EpdirW :: new (self , 15) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& mut self) -> LsdevW < '_ , FsHcchar5Spec > { LsdevW :: new (self , 17) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& mut self) -> EptypW < '_ , FsHcchar5Spec > { EptypW :: new (self , 18) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& mut self) -> McntW < '_ , FsHcchar5Spec > { McntW :: new (self , 20) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& mut self) -> DadW < '_ , FsHcchar5Spec > { DadW :: new (self , 22) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& mut self) -> OddfrmW < '_ , FsHcchar5Spec > { OddfrmW :: new (self , 29) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& mut self) -> ChdisW < '_ , FsHcchar5Spec > { ChdisW :: new (self , 30) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& mut self) -> ChenaW < '_ , FsHcchar5Spec > { ChenaW :: new (self , 31) } }
#[doc = "OTG_FS host channel-5 characteristics register (OTG_FS_HCCHAR5)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar5::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar5::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcchar5Spec ; impl crate :: RegisterSpec for FsHcchar5Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcchar5::R`](R) reader structure"] impl crate :: Readable for FsHcchar5Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcchar5::W`](W) writer structure"] impl crate :: Writable for FsHcchar5Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCCHAR5 to value 0"] impl crate :: Resettable for FsHcchar5Spec { } }
#[doc = "FS_HCCHAR6 (rw) register accessor: OTG_FS host channel-6 characteristics register (OTG_FS_HCCHAR6)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar6::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar6::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcchar6`] module"]
#[doc (alias = "FS_HCCHAR6")] pub type FsHcchar6 = crate :: Reg < fs_hcchar6 :: FsHcchar6Spec > ;
#[doc = "OTG_FS host channel-6 characteristics register (OTG_FS_HCCHAR6)"] pub mod fs_hcchar6 {
#[doc = "Register `FS_HCCHAR6` reader"] pub type R = crate :: R < FsHcchar6Spec > ;
#[doc = "Register `FS_HCCHAR6` writer"] pub type W = crate :: W < FsHcchar6Spec > ;
#[doc = "Field `MPSIZ` reader - Maximum packet size"] pub type MpsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `MPSIZ` writer - Maximum packet size"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ;
#[doc = "Field `EPNUM` reader - Endpoint number"] pub type EpnumR = crate :: FieldReader ;
#[doc = "Field `EPNUM` writer - Endpoint number"] pub type EpnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EPDIR` reader - Endpoint direction"] pub type EpdirR = crate :: BitReader ;
#[doc = "Field `EPDIR` writer - Endpoint direction"] pub type EpdirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LSDEV` reader - Low-speed device"] pub type LsdevR = crate :: BitReader ;
#[doc = "Field `LSDEV` writer - Low-speed device"] pub type LsdevW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPTYP` reader - Endpoint type"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `EPTYP` writer - Endpoint type"] pub type EptypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MCNT` reader - Multicount"] pub type McntR = crate :: FieldReader ;
#[doc = "Field `MCNT` writer - Multicount"] pub type McntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DAD` reader - Device address"] pub type DadR = crate :: FieldReader ;
#[doc = "Field `DAD` writer - Device address"] pub type DadW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `ODDFRM` reader - Odd frame"] pub type OddfrmR = crate :: BitReader ;
#[doc = "Field `ODDFRM` writer - Odd frame"] pub type OddfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHDIS` reader - Channel disable"] pub type ChdisR = crate :: BitReader ;
#[doc = "Field `CHDIS` writer - Channel disable"] pub type ChdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHENA` reader - Channel enable"] pub type ChenaR = crate :: BitReader ;
#[doc = "Field `CHENA` writer - Channel enable"] pub type ChenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& self) -> EpnumR { EpnumR :: new (((self . bits >> 11) & 0x0f) as u8) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& self) -> EpdirR { EpdirR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& self) -> LsdevR { LsdevR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& self) -> McntR { McntR :: new (((self . bits >> 20) & 3) as u8) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& self) -> DadR { DadR :: new (((self . bits >> 22) & 0x7f) as u8) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& self) -> OddfrmR { OddfrmR :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& self) -> ChdisR { ChdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& self) -> ChenaR { ChenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , FsHcchar6Spec > { MpsizW :: new (self , 0) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& mut self) -> EpnumW < '_ , FsHcchar6Spec > { EpnumW :: new (self , 11) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& mut self) -> EpdirW < '_ , FsHcchar6Spec > { EpdirW :: new (self , 15) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& mut self) -> LsdevW < '_ , FsHcchar6Spec > { LsdevW :: new (self , 17) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& mut self) -> EptypW < '_ , FsHcchar6Spec > { EptypW :: new (self , 18) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& mut self) -> McntW < '_ , FsHcchar6Spec > { McntW :: new (self , 20) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& mut self) -> DadW < '_ , FsHcchar6Spec > { DadW :: new (self , 22) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& mut self) -> OddfrmW < '_ , FsHcchar6Spec > { OddfrmW :: new (self , 29) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& mut self) -> ChdisW < '_ , FsHcchar6Spec > { ChdisW :: new (self , 30) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& mut self) -> ChenaW < '_ , FsHcchar6Spec > { ChenaW :: new (self , 31) } }
#[doc = "OTG_FS host channel-6 characteristics register (OTG_FS_HCCHAR6)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar6::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar6::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcchar6Spec ; impl crate :: RegisterSpec for FsHcchar6Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcchar6::R`](R) reader structure"] impl crate :: Readable for FsHcchar6Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcchar6::W`](W) writer structure"] impl crate :: Writable for FsHcchar6Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCCHAR6 to value 0"] impl crate :: Resettable for FsHcchar6Spec { } }
#[doc = "FS_HCCHAR7 (rw) register accessor: OTG_FS host channel-7 characteristics register (OTG_FS_HCCHAR7)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar7::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar7::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcchar7`] module"]
#[doc (alias = "FS_HCCHAR7")] pub type FsHcchar7 = crate :: Reg < fs_hcchar7 :: FsHcchar7Spec > ;
#[doc = "OTG_FS host channel-7 characteristics register (OTG_FS_HCCHAR7)"] pub mod fs_hcchar7 {
#[doc = "Register `FS_HCCHAR7` reader"] pub type R = crate :: R < FsHcchar7Spec > ;
#[doc = "Register `FS_HCCHAR7` writer"] pub type W = crate :: W < FsHcchar7Spec > ;
#[doc = "Field `MPSIZ` reader - Maximum packet size"] pub type MpsizR = crate :: FieldReader < u16 > ;
#[doc = "Field `MPSIZ` writer - Maximum packet size"] pub type MpsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 11 , u16 > ;
#[doc = "Field `EPNUM` reader - Endpoint number"] pub type EpnumR = crate :: FieldReader ;
#[doc = "Field `EPNUM` writer - Endpoint number"] pub type EpnumW < 'a , REG > = crate :: FieldWriter < 'a , REG , 4 > ;
#[doc = "Field `EPDIR` reader - Endpoint direction"] pub type EpdirR = crate :: BitReader ;
#[doc = "Field `EPDIR` writer - Endpoint direction"] pub type EpdirW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LSDEV` reader - Low-speed device"] pub type LsdevR = crate :: BitReader ;
#[doc = "Field `LSDEV` writer - Low-speed device"] pub type LsdevW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `EPTYP` reader - Endpoint type"] pub type EptypR = crate :: FieldReader ;
#[doc = "Field `EPTYP` writer - Endpoint type"] pub type EptypW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `MCNT` reader - Multicount"] pub type McntR = crate :: FieldReader ;
#[doc = "Field `MCNT` writer - Multicount"] pub type McntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `DAD` reader - Device address"] pub type DadR = crate :: FieldReader ;
#[doc = "Field `DAD` writer - Device address"] pub type DadW < 'a , REG > = crate :: FieldWriter < 'a , REG , 7 > ;
#[doc = "Field `ODDFRM` reader - Odd frame"] pub type OddfrmR = crate :: BitReader ;
#[doc = "Field `ODDFRM` writer - Odd frame"] pub type OddfrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHDIS` reader - Channel disable"] pub type ChdisR = crate :: BitReader ;
#[doc = "Field `CHDIS` writer - Channel disable"] pub type ChdisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHENA` reader - Channel enable"] pub type ChenaR = crate :: BitReader ;
#[doc = "Field `CHENA` writer - Channel enable"] pub type ChenaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& self) -> MpsizR { MpsizR :: new ((self . bits & 0x07ff) as u16) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& self) -> EpnumR { EpnumR :: new (((self . bits >> 11) & 0x0f) as u8) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& self) -> EpdirR { EpdirR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& self) -> LsdevR { LsdevR :: new (((self . bits >> 17) & 1) != 0) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& self) -> EptypR { EptypR :: new (((self . bits >> 18) & 3) as u8) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& self) -> McntR { McntR :: new (((self . bits >> 20) & 3) as u8) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& self) -> DadR { DadR :: new (((self . bits >> 22) & 0x7f) as u8) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& self) -> OddfrmR { OddfrmR :: new (((self . bits >> 29) & 1) != 0) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& self) -> ChdisR { ChdisR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& self) -> ChenaR { ChenaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:10 - Maximum packet size"]
#[inline (always)] pub fn mpsiz (& mut self) -> MpsizW < '_ , FsHcchar7Spec > { MpsizW :: new (self , 0) }
#[doc = "Bits 11:14 - Endpoint number"]
#[inline (always)] pub fn epnum (& mut self) -> EpnumW < '_ , FsHcchar7Spec > { EpnumW :: new (self , 11) }
#[doc = "Bit 15 - Endpoint direction"]
#[inline (always)] pub fn epdir (& mut self) -> EpdirW < '_ , FsHcchar7Spec > { EpdirW :: new (self , 15) }
#[doc = "Bit 17 - Low-speed device"]
#[inline (always)] pub fn lsdev (& mut self) -> LsdevW < '_ , FsHcchar7Spec > { LsdevW :: new (self , 17) }
#[doc = "Bits 18:19 - Endpoint type"]
#[inline (always)] pub fn eptyp (& mut self) -> EptypW < '_ , FsHcchar7Spec > { EptypW :: new (self , 18) }
#[doc = "Bits 20:21 - Multicount"]
#[inline (always)] pub fn mcnt (& mut self) -> McntW < '_ , FsHcchar7Spec > { McntW :: new (self , 20) }
#[doc = "Bits 22:28 - Device address"]
#[inline (always)] pub fn dad (& mut self) -> DadW < '_ , FsHcchar7Spec > { DadW :: new (self , 22) }
#[doc = "Bit 29 - Odd frame"]
#[inline (always)] pub fn oddfrm (& mut self) -> OddfrmW < '_ , FsHcchar7Spec > { OddfrmW :: new (self , 29) }
#[doc = "Bit 30 - Channel disable"]
#[inline (always)] pub fn chdis (& mut self) -> ChdisW < '_ , FsHcchar7Spec > { ChdisW :: new (self , 30) }
#[doc = "Bit 31 - Channel enable"]
#[inline (always)] pub fn chena (& mut self) -> ChenaW < '_ , FsHcchar7Spec > { ChenaW :: new (self , 31) } }
#[doc = "OTG_FS host channel-7 characteristics register (OTG_FS_HCCHAR7)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcchar7::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcchar7::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcchar7Spec ; impl crate :: RegisterSpec for FsHcchar7Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcchar7::R`](R) reader structure"] impl crate :: Readable for FsHcchar7Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcchar7::W`](W) writer structure"] impl crate :: Writable for FsHcchar7Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCCHAR7 to value 0"] impl crate :: Resettable for FsHcchar7Spec { } }
#[doc = "FS_HCINT0 (rw) register accessor: OTG_FS host channel-0 interrupt register (OTG_FS_HCINT0)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcint0`] module"]
#[doc (alias = "FS_HCINT0")] pub type FsHcint0 = crate :: Reg < fs_hcint0 :: FsHcint0Spec > ;
#[doc = "OTG_FS host channel-0 interrupt register (OTG_FS_HCINT0)"] pub mod fs_hcint0 {
#[doc = "Register `FS_HCINT0` reader"] pub type R = crate :: R < FsHcint0Spec > ;
#[doc = "Register `FS_HCINT0` writer"] pub type W = crate :: W < FsHcint0Spec > ;
#[doc = "Field `XFRC` reader - Transfer completed"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - Transfer completed"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHH` reader - Channel halted"] pub type ChhR = crate :: BitReader ;
#[doc = "Field `CHH` writer - Channel halted"] pub type ChhW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALL` reader - STALL response received interrupt"] pub type StallR = crate :: BitReader ;
#[doc = "Field `STALL` writer - STALL response received interrupt"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAK` reader - NAK response received interrupt"] pub type NakR = crate :: BitReader ;
#[doc = "Field `NAK` writer - NAK response received interrupt"] pub type NakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACK` reader - ACK response received/transmitted interrupt"] pub type AckR = crate :: BitReader ;
#[doc = "Field `ACK` writer - ACK response received/transmitted interrupt"] pub type AckW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERR` reader - Transaction error"] pub type TxerrR = crate :: BitReader ;
#[doc = "Field `TXERR` writer - Transaction error"] pub type TxerrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERR` reader - Babble error"] pub type BberrR = crate :: BitReader ;
#[doc = "Field `BBERR` writer - Babble error"] pub type BberrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMOR` reader - Frame overrun"] pub type FrmorR = crate :: BitReader ;
#[doc = "Field `FRMOR` writer - Frame overrun"] pub type FrmorW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERR` reader - Data toggle error"] pub type DterrR = crate :: BitReader ;
#[doc = "Field `DTERR` writer - Data toggle error"] pub type DterrW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& self) -> ChhR { ChhR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& self) -> NakR { NakR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& self) -> AckR { AckR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& self) -> TxerrR { TxerrR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& self) -> BberrR { BberrR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& self) -> FrmorR { FrmorR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& self) -> DterrR { DterrR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , FsHcint0Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& mut self) -> ChhW < '_ , FsHcint0Spec > { ChhW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , FsHcint0Spec > { StallW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& mut self) -> NakW < '_ , FsHcint0Spec > { NakW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& mut self) -> AckW < '_ , FsHcint0Spec > { AckW :: new (self , 5) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& mut self) -> TxerrW < '_ , FsHcint0Spec > { TxerrW :: new (self , 7) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& mut self) -> BberrW < '_ , FsHcint0Spec > { BberrW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& mut self) -> FrmorW < '_ , FsHcint0Spec > { FrmorW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& mut self) -> DterrW < '_ , FsHcint0Spec > { DterrW :: new (self , 10) } }
#[doc = "OTG_FS host channel-0 interrupt register (OTG_FS_HCINT0)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcint0Spec ; impl crate :: RegisterSpec for FsHcint0Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcint0::R`](R) reader structure"] impl crate :: Readable for FsHcint0Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcint0::W`](W) writer structure"] impl crate :: Writable for FsHcint0Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINT0 to value 0"] impl crate :: Resettable for FsHcint0Spec { } }
#[doc = "FS_HCINT1 (rw) register accessor: OTG_FS host channel-1 interrupt register (OTG_FS_HCINT1)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcint1`] module"]
#[doc (alias = "FS_HCINT1")] pub type FsHcint1 = crate :: Reg < fs_hcint1 :: FsHcint1Spec > ;
#[doc = "OTG_FS host channel-1 interrupt register (OTG_FS_HCINT1)"] pub mod fs_hcint1 {
#[doc = "Register `FS_HCINT1` reader"] pub type R = crate :: R < FsHcint1Spec > ;
#[doc = "Register `FS_HCINT1` writer"] pub type W = crate :: W < FsHcint1Spec > ;
#[doc = "Field `XFRC` reader - Transfer completed"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - Transfer completed"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHH` reader - Channel halted"] pub type ChhR = crate :: BitReader ;
#[doc = "Field `CHH` writer - Channel halted"] pub type ChhW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALL` reader - STALL response received interrupt"] pub type StallR = crate :: BitReader ;
#[doc = "Field `STALL` writer - STALL response received interrupt"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAK` reader - NAK response received interrupt"] pub type NakR = crate :: BitReader ;
#[doc = "Field `NAK` writer - NAK response received interrupt"] pub type NakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACK` reader - ACK response received/transmitted interrupt"] pub type AckR = crate :: BitReader ;
#[doc = "Field `ACK` writer - ACK response received/transmitted interrupt"] pub type AckW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERR` reader - Transaction error"] pub type TxerrR = crate :: BitReader ;
#[doc = "Field `TXERR` writer - Transaction error"] pub type TxerrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERR` reader - Babble error"] pub type BberrR = crate :: BitReader ;
#[doc = "Field `BBERR` writer - Babble error"] pub type BberrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMOR` reader - Frame overrun"] pub type FrmorR = crate :: BitReader ;
#[doc = "Field `FRMOR` writer - Frame overrun"] pub type FrmorW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERR` reader - Data toggle error"] pub type DterrR = crate :: BitReader ;
#[doc = "Field `DTERR` writer - Data toggle error"] pub type DterrW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& self) -> ChhR { ChhR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& self) -> NakR { NakR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& self) -> AckR { AckR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& self) -> TxerrR { TxerrR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& self) -> BberrR { BberrR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& self) -> FrmorR { FrmorR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& self) -> DterrR { DterrR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , FsHcint1Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& mut self) -> ChhW < '_ , FsHcint1Spec > { ChhW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , FsHcint1Spec > { StallW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& mut self) -> NakW < '_ , FsHcint1Spec > { NakW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& mut self) -> AckW < '_ , FsHcint1Spec > { AckW :: new (self , 5) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& mut self) -> TxerrW < '_ , FsHcint1Spec > { TxerrW :: new (self , 7) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& mut self) -> BberrW < '_ , FsHcint1Spec > { BberrW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& mut self) -> FrmorW < '_ , FsHcint1Spec > { FrmorW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& mut self) -> DterrW < '_ , FsHcint1Spec > { DterrW :: new (self , 10) } }
#[doc = "OTG_FS host channel-1 interrupt register (OTG_FS_HCINT1)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcint1Spec ; impl crate :: RegisterSpec for FsHcint1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcint1::R`](R) reader structure"] impl crate :: Readable for FsHcint1Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcint1::W`](W) writer structure"] impl crate :: Writable for FsHcint1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINT1 to value 0"] impl crate :: Resettable for FsHcint1Spec { } }
#[doc = "FS_HCINT2 (rw) register accessor: OTG_FS host channel-2 interrupt register (OTG_FS_HCINT2)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcint2`] module"]
#[doc (alias = "FS_HCINT2")] pub type FsHcint2 = crate :: Reg < fs_hcint2 :: FsHcint2Spec > ;
#[doc = "OTG_FS host channel-2 interrupt register (OTG_FS_HCINT2)"] pub mod fs_hcint2 {
#[doc = "Register `FS_HCINT2` reader"] pub type R = crate :: R < FsHcint2Spec > ;
#[doc = "Register `FS_HCINT2` writer"] pub type W = crate :: W < FsHcint2Spec > ;
#[doc = "Field `XFRC` reader - Transfer completed"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - Transfer completed"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHH` reader - Channel halted"] pub type ChhR = crate :: BitReader ;
#[doc = "Field `CHH` writer - Channel halted"] pub type ChhW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALL` reader - STALL response received interrupt"] pub type StallR = crate :: BitReader ;
#[doc = "Field `STALL` writer - STALL response received interrupt"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAK` reader - NAK response received interrupt"] pub type NakR = crate :: BitReader ;
#[doc = "Field `NAK` writer - NAK response received interrupt"] pub type NakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACK` reader - ACK response received/transmitted interrupt"] pub type AckR = crate :: BitReader ;
#[doc = "Field `ACK` writer - ACK response received/transmitted interrupt"] pub type AckW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERR` reader - Transaction error"] pub type TxerrR = crate :: BitReader ;
#[doc = "Field `TXERR` writer - Transaction error"] pub type TxerrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERR` reader - Babble error"] pub type BberrR = crate :: BitReader ;
#[doc = "Field `BBERR` writer - Babble error"] pub type BberrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMOR` reader - Frame overrun"] pub type FrmorR = crate :: BitReader ;
#[doc = "Field `FRMOR` writer - Frame overrun"] pub type FrmorW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERR` reader - Data toggle error"] pub type DterrR = crate :: BitReader ;
#[doc = "Field `DTERR` writer - Data toggle error"] pub type DterrW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& self) -> ChhR { ChhR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& self) -> NakR { NakR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& self) -> AckR { AckR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& self) -> TxerrR { TxerrR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& self) -> BberrR { BberrR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& self) -> FrmorR { FrmorR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& self) -> DterrR { DterrR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , FsHcint2Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& mut self) -> ChhW < '_ , FsHcint2Spec > { ChhW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , FsHcint2Spec > { StallW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& mut self) -> NakW < '_ , FsHcint2Spec > { NakW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& mut self) -> AckW < '_ , FsHcint2Spec > { AckW :: new (self , 5) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& mut self) -> TxerrW < '_ , FsHcint2Spec > { TxerrW :: new (self , 7) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& mut self) -> BberrW < '_ , FsHcint2Spec > { BberrW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& mut self) -> FrmorW < '_ , FsHcint2Spec > { FrmorW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& mut self) -> DterrW < '_ , FsHcint2Spec > { DterrW :: new (self , 10) } }
#[doc = "OTG_FS host channel-2 interrupt register (OTG_FS_HCINT2)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcint2Spec ; impl crate :: RegisterSpec for FsHcint2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcint2::R`](R) reader structure"] impl crate :: Readable for FsHcint2Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcint2::W`](W) writer structure"] impl crate :: Writable for FsHcint2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINT2 to value 0"] impl crate :: Resettable for FsHcint2Spec { } }
#[doc = "FS_HCINT3 (rw) register accessor: OTG_FS host channel-3 interrupt register (OTG_FS_HCINT3)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcint3`] module"]
#[doc (alias = "FS_HCINT3")] pub type FsHcint3 = crate :: Reg < fs_hcint3 :: FsHcint3Spec > ;
#[doc = "OTG_FS host channel-3 interrupt register (OTG_FS_HCINT3)"] pub mod fs_hcint3 {
#[doc = "Register `FS_HCINT3` reader"] pub type R = crate :: R < FsHcint3Spec > ;
#[doc = "Register `FS_HCINT3` writer"] pub type W = crate :: W < FsHcint3Spec > ;
#[doc = "Field `XFRC` reader - Transfer completed"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - Transfer completed"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHH` reader - Channel halted"] pub type ChhR = crate :: BitReader ;
#[doc = "Field `CHH` writer - Channel halted"] pub type ChhW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALL` reader - STALL response received interrupt"] pub type StallR = crate :: BitReader ;
#[doc = "Field `STALL` writer - STALL response received interrupt"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAK` reader - NAK response received interrupt"] pub type NakR = crate :: BitReader ;
#[doc = "Field `NAK` writer - NAK response received interrupt"] pub type NakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACK` reader - ACK response received/transmitted interrupt"] pub type AckR = crate :: BitReader ;
#[doc = "Field `ACK` writer - ACK response received/transmitted interrupt"] pub type AckW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERR` reader - Transaction error"] pub type TxerrR = crate :: BitReader ;
#[doc = "Field `TXERR` writer - Transaction error"] pub type TxerrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERR` reader - Babble error"] pub type BberrR = crate :: BitReader ;
#[doc = "Field `BBERR` writer - Babble error"] pub type BberrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMOR` reader - Frame overrun"] pub type FrmorR = crate :: BitReader ;
#[doc = "Field `FRMOR` writer - Frame overrun"] pub type FrmorW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERR` reader - Data toggle error"] pub type DterrR = crate :: BitReader ;
#[doc = "Field `DTERR` writer - Data toggle error"] pub type DterrW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& self) -> ChhR { ChhR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& self) -> NakR { NakR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& self) -> AckR { AckR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& self) -> TxerrR { TxerrR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& self) -> BberrR { BberrR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& self) -> FrmorR { FrmorR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& self) -> DterrR { DterrR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , FsHcint3Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& mut self) -> ChhW < '_ , FsHcint3Spec > { ChhW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , FsHcint3Spec > { StallW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& mut self) -> NakW < '_ , FsHcint3Spec > { NakW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& mut self) -> AckW < '_ , FsHcint3Spec > { AckW :: new (self , 5) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& mut self) -> TxerrW < '_ , FsHcint3Spec > { TxerrW :: new (self , 7) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& mut self) -> BberrW < '_ , FsHcint3Spec > { BberrW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& mut self) -> FrmorW < '_ , FsHcint3Spec > { FrmorW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& mut self) -> DterrW < '_ , FsHcint3Spec > { DterrW :: new (self , 10) } }
#[doc = "OTG_FS host channel-3 interrupt register (OTG_FS_HCINT3)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcint3Spec ; impl crate :: RegisterSpec for FsHcint3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcint3::R`](R) reader structure"] impl crate :: Readable for FsHcint3Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcint3::W`](W) writer structure"] impl crate :: Writable for FsHcint3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINT3 to value 0"] impl crate :: Resettable for FsHcint3Spec { } }
#[doc = "FS_HCINT4 (rw) register accessor: OTG_FS host channel-4 interrupt register (OTG_FS_HCINT4)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcint4`] module"]
#[doc (alias = "FS_HCINT4")] pub type FsHcint4 = crate :: Reg < fs_hcint4 :: FsHcint4Spec > ;
#[doc = "OTG_FS host channel-4 interrupt register (OTG_FS_HCINT4)"] pub mod fs_hcint4 {
#[doc = "Register `FS_HCINT4` reader"] pub type R = crate :: R < FsHcint4Spec > ;
#[doc = "Register `FS_HCINT4` writer"] pub type W = crate :: W < FsHcint4Spec > ;
#[doc = "Field `XFRC` reader - Transfer completed"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - Transfer completed"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHH` reader - Channel halted"] pub type ChhR = crate :: BitReader ;
#[doc = "Field `CHH` writer - Channel halted"] pub type ChhW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALL` reader - STALL response received interrupt"] pub type StallR = crate :: BitReader ;
#[doc = "Field `STALL` writer - STALL response received interrupt"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAK` reader - NAK response received interrupt"] pub type NakR = crate :: BitReader ;
#[doc = "Field `NAK` writer - NAK response received interrupt"] pub type NakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACK` reader - ACK response received/transmitted interrupt"] pub type AckR = crate :: BitReader ;
#[doc = "Field `ACK` writer - ACK response received/transmitted interrupt"] pub type AckW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERR` reader - Transaction error"] pub type TxerrR = crate :: BitReader ;
#[doc = "Field `TXERR` writer - Transaction error"] pub type TxerrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERR` reader - Babble error"] pub type BberrR = crate :: BitReader ;
#[doc = "Field `BBERR` writer - Babble error"] pub type BberrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMOR` reader - Frame overrun"] pub type FrmorR = crate :: BitReader ;
#[doc = "Field `FRMOR` writer - Frame overrun"] pub type FrmorW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERR` reader - Data toggle error"] pub type DterrR = crate :: BitReader ;
#[doc = "Field `DTERR` writer - Data toggle error"] pub type DterrW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& self) -> ChhR { ChhR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& self) -> NakR { NakR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& self) -> AckR { AckR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& self) -> TxerrR { TxerrR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& self) -> BberrR { BberrR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& self) -> FrmorR { FrmorR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& self) -> DterrR { DterrR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , FsHcint4Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& mut self) -> ChhW < '_ , FsHcint4Spec > { ChhW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , FsHcint4Spec > { StallW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& mut self) -> NakW < '_ , FsHcint4Spec > { NakW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& mut self) -> AckW < '_ , FsHcint4Spec > { AckW :: new (self , 5) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& mut self) -> TxerrW < '_ , FsHcint4Spec > { TxerrW :: new (self , 7) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& mut self) -> BberrW < '_ , FsHcint4Spec > { BberrW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& mut self) -> FrmorW < '_ , FsHcint4Spec > { FrmorW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& mut self) -> DterrW < '_ , FsHcint4Spec > { DterrW :: new (self , 10) } }
#[doc = "OTG_FS host channel-4 interrupt register (OTG_FS_HCINT4)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcint4Spec ; impl crate :: RegisterSpec for FsHcint4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcint4::R`](R) reader structure"] impl crate :: Readable for FsHcint4Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcint4::W`](W) writer structure"] impl crate :: Writable for FsHcint4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINT4 to value 0"] impl crate :: Resettable for FsHcint4Spec { } }
#[doc = "FS_HCINT5 (rw) register accessor: OTG_FS host channel-5 interrupt register (OTG_FS_HCINT5)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint5::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint5::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcint5`] module"]
#[doc (alias = "FS_HCINT5")] pub type FsHcint5 = crate :: Reg < fs_hcint5 :: FsHcint5Spec > ;
#[doc = "OTG_FS host channel-5 interrupt register (OTG_FS_HCINT5)"] pub mod fs_hcint5 {
#[doc = "Register `FS_HCINT5` reader"] pub type R = crate :: R < FsHcint5Spec > ;
#[doc = "Register `FS_HCINT5` writer"] pub type W = crate :: W < FsHcint5Spec > ;
#[doc = "Field `XFRC` reader - Transfer completed"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - Transfer completed"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHH` reader - Channel halted"] pub type ChhR = crate :: BitReader ;
#[doc = "Field `CHH` writer - Channel halted"] pub type ChhW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALL` reader - STALL response received interrupt"] pub type StallR = crate :: BitReader ;
#[doc = "Field `STALL` writer - STALL response received interrupt"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAK` reader - NAK response received interrupt"] pub type NakR = crate :: BitReader ;
#[doc = "Field `NAK` writer - NAK response received interrupt"] pub type NakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACK` reader - ACK response received/transmitted interrupt"] pub type AckR = crate :: BitReader ;
#[doc = "Field `ACK` writer - ACK response received/transmitted interrupt"] pub type AckW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERR` reader - Transaction error"] pub type TxerrR = crate :: BitReader ;
#[doc = "Field `TXERR` writer - Transaction error"] pub type TxerrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERR` reader - Babble error"] pub type BberrR = crate :: BitReader ;
#[doc = "Field `BBERR` writer - Babble error"] pub type BberrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMOR` reader - Frame overrun"] pub type FrmorR = crate :: BitReader ;
#[doc = "Field `FRMOR` writer - Frame overrun"] pub type FrmorW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERR` reader - Data toggle error"] pub type DterrR = crate :: BitReader ;
#[doc = "Field `DTERR` writer - Data toggle error"] pub type DterrW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& self) -> ChhR { ChhR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& self) -> NakR { NakR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& self) -> AckR { AckR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& self) -> TxerrR { TxerrR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& self) -> BberrR { BberrR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& self) -> FrmorR { FrmorR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& self) -> DterrR { DterrR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , FsHcint5Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& mut self) -> ChhW < '_ , FsHcint5Spec > { ChhW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , FsHcint5Spec > { StallW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& mut self) -> NakW < '_ , FsHcint5Spec > { NakW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& mut self) -> AckW < '_ , FsHcint5Spec > { AckW :: new (self , 5) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& mut self) -> TxerrW < '_ , FsHcint5Spec > { TxerrW :: new (self , 7) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& mut self) -> BberrW < '_ , FsHcint5Spec > { BberrW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& mut self) -> FrmorW < '_ , FsHcint5Spec > { FrmorW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& mut self) -> DterrW < '_ , FsHcint5Spec > { DterrW :: new (self , 10) } }
#[doc = "OTG_FS host channel-5 interrupt register (OTG_FS_HCINT5)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint5::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint5::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcint5Spec ; impl crate :: RegisterSpec for FsHcint5Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcint5::R`](R) reader structure"] impl crate :: Readable for FsHcint5Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcint5::W`](W) writer structure"] impl crate :: Writable for FsHcint5Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINT5 to value 0"] impl crate :: Resettable for FsHcint5Spec { } }
#[doc = "FS_HCINT6 (rw) register accessor: OTG_FS host channel-6 interrupt register (OTG_FS_HCINT6)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint6::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint6::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcint6`] module"]
#[doc (alias = "FS_HCINT6")] pub type FsHcint6 = crate :: Reg < fs_hcint6 :: FsHcint6Spec > ;
#[doc = "OTG_FS host channel-6 interrupt register (OTG_FS_HCINT6)"] pub mod fs_hcint6 {
#[doc = "Register `FS_HCINT6` reader"] pub type R = crate :: R < FsHcint6Spec > ;
#[doc = "Register `FS_HCINT6` writer"] pub type W = crate :: W < FsHcint6Spec > ;
#[doc = "Field `XFRC` reader - Transfer completed"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - Transfer completed"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHH` reader - Channel halted"] pub type ChhR = crate :: BitReader ;
#[doc = "Field `CHH` writer - Channel halted"] pub type ChhW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALL` reader - STALL response received interrupt"] pub type StallR = crate :: BitReader ;
#[doc = "Field `STALL` writer - STALL response received interrupt"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAK` reader - NAK response received interrupt"] pub type NakR = crate :: BitReader ;
#[doc = "Field `NAK` writer - NAK response received interrupt"] pub type NakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACK` reader - ACK response received/transmitted interrupt"] pub type AckR = crate :: BitReader ;
#[doc = "Field `ACK` writer - ACK response received/transmitted interrupt"] pub type AckW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERR` reader - Transaction error"] pub type TxerrR = crate :: BitReader ;
#[doc = "Field `TXERR` writer - Transaction error"] pub type TxerrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERR` reader - Babble error"] pub type BberrR = crate :: BitReader ;
#[doc = "Field `BBERR` writer - Babble error"] pub type BberrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMOR` reader - Frame overrun"] pub type FrmorR = crate :: BitReader ;
#[doc = "Field `FRMOR` writer - Frame overrun"] pub type FrmorW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERR` reader - Data toggle error"] pub type DterrR = crate :: BitReader ;
#[doc = "Field `DTERR` writer - Data toggle error"] pub type DterrW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& self) -> ChhR { ChhR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& self) -> NakR { NakR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& self) -> AckR { AckR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& self) -> TxerrR { TxerrR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& self) -> BberrR { BberrR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& self) -> FrmorR { FrmorR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& self) -> DterrR { DterrR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , FsHcint6Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& mut self) -> ChhW < '_ , FsHcint6Spec > { ChhW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , FsHcint6Spec > { StallW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& mut self) -> NakW < '_ , FsHcint6Spec > { NakW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& mut self) -> AckW < '_ , FsHcint6Spec > { AckW :: new (self , 5) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& mut self) -> TxerrW < '_ , FsHcint6Spec > { TxerrW :: new (self , 7) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& mut self) -> BberrW < '_ , FsHcint6Spec > { BberrW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& mut self) -> FrmorW < '_ , FsHcint6Spec > { FrmorW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& mut self) -> DterrW < '_ , FsHcint6Spec > { DterrW :: new (self , 10) } }
#[doc = "OTG_FS host channel-6 interrupt register (OTG_FS_HCINT6)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint6::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint6::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcint6Spec ; impl crate :: RegisterSpec for FsHcint6Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcint6::R`](R) reader structure"] impl crate :: Readable for FsHcint6Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcint6::W`](W) writer structure"] impl crate :: Writable for FsHcint6Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINT6 to value 0"] impl crate :: Resettable for FsHcint6Spec { } }
#[doc = "FS_HCINT7 (rw) register accessor: OTG_FS host channel-7 interrupt register (OTG_FS_HCINT7)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint7::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint7::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcint7`] module"]
#[doc (alias = "FS_HCINT7")] pub type FsHcint7 = crate :: Reg < fs_hcint7 :: FsHcint7Spec > ;
#[doc = "OTG_FS host channel-7 interrupt register (OTG_FS_HCINT7)"] pub mod fs_hcint7 {
#[doc = "Register `FS_HCINT7` reader"] pub type R = crate :: R < FsHcint7Spec > ;
#[doc = "Register `FS_HCINT7` writer"] pub type W = crate :: W < FsHcint7Spec > ;
#[doc = "Field `XFRC` reader - Transfer completed"] pub type XfrcR = crate :: BitReader ;
#[doc = "Field `XFRC` writer - Transfer completed"] pub type XfrcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHH` reader - Channel halted"] pub type ChhR = crate :: BitReader ;
#[doc = "Field `CHH` writer - Channel halted"] pub type ChhW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALL` reader - STALL response received interrupt"] pub type StallR = crate :: BitReader ;
#[doc = "Field `STALL` writer - STALL response received interrupt"] pub type StallW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAK` reader - NAK response received interrupt"] pub type NakR = crate :: BitReader ;
#[doc = "Field `NAK` writer - NAK response received interrupt"] pub type NakW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACK` reader - ACK response received/transmitted interrupt"] pub type AckR = crate :: BitReader ;
#[doc = "Field `ACK` writer - ACK response received/transmitted interrupt"] pub type AckW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERR` reader - Transaction error"] pub type TxerrR = crate :: BitReader ;
#[doc = "Field `TXERR` writer - Transaction error"] pub type TxerrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERR` reader - Babble error"] pub type BberrR = crate :: BitReader ;
#[doc = "Field `BBERR` writer - Babble error"] pub type BberrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMOR` reader - Frame overrun"] pub type FrmorR = crate :: BitReader ;
#[doc = "Field `FRMOR` writer - Frame overrun"] pub type FrmorW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERR` reader - Data toggle error"] pub type DterrR = crate :: BitReader ;
#[doc = "Field `DTERR` writer - Data toggle error"] pub type DterrW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& self) -> XfrcR { XfrcR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& self) -> ChhR { ChhR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& self) -> StallR { StallR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& self) -> NakR { NakR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& self) -> AckR { AckR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& self) -> TxerrR { TxerrR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& self) -> BberrR { BberrR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& self) -> FrmorR { FrmorR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& self) -> DterrR { DterrR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed"]
#[inline (always)] pub fn xfrc (& mut self) -> XfrcW < '_ , FsHcint7Spec > { XfrcW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted"]
#[inline (always)] pub fn chh (& mut self) -> ChhW < '_ , FsHcint7Spec > { ChhW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt"]
#[inline (always)] pub fn stall (& mut self) -> StallW < '_ , FsHcint7Spec > { StallW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt"]
#[inline (always)] pub fn nak (& mut self) -> NakW < '_ , FsHcint7Spec > { NakW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt"]
#[inline (always)] pub fn ack (& mut self) -> AckW < '_ , FsHcint7Spec > { AckW :: new (self , 5) }
#[doc = "Bit 7 - Transaction error"]
#[inline (always)] pub fn txerr (& mut self) -> TxerrW < '_ , FsHcint7Spec > { TxerrW :: new (self , 7) }
#[doc = "Bit 8 - Babble error"]
#[inline (always)] pub fn bberr (& mut self) -> BberrW < '_ , FsHcint7Spec > { BberrW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun"]
#[inline (always)] pub fn frmor (& mut self) -> FrmorW < '_ , FsHcint7Spec > { FrmorW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error"]
#[inline (always)] pub fn dterr (& mut self) -> DterrW < '_ , FsHcint7Spec > { DterrW :: new (self , 10) } }
#[doc = "OTG_FS host channel-7 interrupt register (OTG_FS_HCINT7)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcint7::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcint7::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcint7Spec ; impl crate :: RegisterSpec for FsHcint7Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcint7::R`](R) reader structure"] impl crate :: Readable for FsHcint7Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcint7::W`](W) writer structure"] impl crate :: Writable for FsHcint7Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINT7 to value 0"] impl crate :: Resettable for FsHcint7Spec { } }
#[doc = "FS_HCINTMSK0 (rw) register accessor: OTG_FS host channel-0 mask register (OTG_FS_HCINTMSK0)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcintmsk0`] module"]
#[doc (alias = "FS_HCINTMSK0")] pub type FsHcintmsk0 = crate :: Reg < fs_hcintmsk0 :: FsHcintmsk0Spec > ;
#[doc = "OTG_FS host channel-0 mask register (OTG_FS_HCINTMSK0)"] pub mod fs_hcintmsk0 {
#[doc = "Register `FS_HCINTMSK0` reader"] pub type R = crate :: R < FsHcintmsk0Spec > ;
#[doc = "Register `FS_HCINTMSK0` writer"] pub type W = crate :: W < FsHcintmsk0Spec > ;
#[doc = "Field `XFRCM` reader - Transfer completed mask"] pub type XfrcmR = crate :: BitReader ;
#[doc = "Field `XFRCM` writer - Transfer completed mask"] pub type XfrcmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHHM` reader - Channel halted mask"] pub type ChhmR = crate :: BitReader ;
#[doc = "Field `CHHM` writer - Channel halted mask"] pub type ChhmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALLM` reader - STALL response received interrupt mask"] pub type StallmR = crate :: BitReader ;
#[doc = "Field `STALLM` writer - STALL response received interrupt mask"] pub type StallmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAKM` reader - NAK response received interrupt mask"] pub type NakmR = crate :: BitReader ;
#[doc = "Field `NAKM` writer - NAK response received interrupt mask"] pub type NakmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACKM` reader - ACK response received/transmitted interrupt mask"] pub type AckmR = crate :: BitReader ;
#[doc = "Field `ACKM` writer - ACK response received/transmitted interrupt mask"] pub type AckmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NYET` reader - response received interrupt mask"] pub type NyetR = crate :: BitReader ;
#[doc = "Field `NYET` writer - response received interrupt mask"] pub type NyetW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERRM` reader - Transaction error mask"] pub type TxerrmR = crate :: BitReader ;
#[doc = "Field `TXERRM` writer - Transaction error mask"] pub type TxerrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERRM` reader - Babble error mask"] pub type BberrmR = crate :: BitReader ;
#[doc = "Field `BBERRM` writer - Babble error mask"] pub type BberrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMORM` reader - Frame overrun mask"] pub type FrmormR = crate :: BitReader ;
#[doc = "Field `FRMORM` writer - Frame overrun mask"] pub type FrmormW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERRM` reader - Data toggle error mask"] pub type DterrmR = crate :: BitReader ;
#[doc = "Field `DTERRM` writer - Data toggle error mask"] pub type DterrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& self) -> XfrcmR { XfrcmR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& self) -> ChhmR { ChhmR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& self) -> StallmR { StallmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& self) -> NakmR { NakmR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& self) -> AckmR { AckmR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& self) -> NyetR { NyetR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& self) -> TxerrmR { TxerrmR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& self) -> BberrmR { BberrmR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& self) -> FrmormR { FrmormR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& self) -> DterrmR { DterrmR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& mut self) -> XfrcmW < '_ , FsHcintmsk0Spec > { XfrcmW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& mut self) -> ChhmW < '_ , FsHcintmsk0Spec > { ChhmW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& mut self) -> StallmW < '_ , FsHcintmsk0Spec > { StallmW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& mut self) -> NakmW < '_ , FsHcintmsk0Spec > { NakmW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& mut self) -> AckmW < '_ , FsHcintmsk0Spec > { AckmW :: new (self , 5) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& mut self) -> NyetW < '_ , FsHcintmsk0Spec > { NyetW :: new (self , 6) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& mut self) -> TxerrmW < '_ , FsHcintmsk0Spec > { TxerrmW :: new (self , 7) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& mut self) -> BberrmW < '_ , FsHcintmsk0Spec > { BberrmW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& mut self) -> FrmormW < '_ , FsHcintmsk0Spec > { FrmormW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& mut self) -> DterrmW < '_ , FsHcintmsk0Spec > { DterrmW :: new (self , 10) } }
#[doc = "OTG_FS host channel-0 mask register (OTG_FS_HCINTMSK0)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcintmsk0Spec ; impl crate :: RegisterSpec for FsHcintmsk0Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcintmsk0::R`](R) reader structure"] impl crate :: Readable for FsHcintmsk0Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcintmsk0::W`](W) writer structure"] impl crate :: Writable for FsHcintmsk0Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINTMSK0 to value 0"] impl crate :: Resettable for FsHcintmsk0Spec { } }
#[doc = "FS_HCINTMSK1 (rw) register accessor: OTG_FS host channel-1 mask register (OTG_FS_HCINTMSK1)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcintmsk1`] module"]
#[doc (alias = "FS_HCINTMSK1")] pub type FsHcintmsk1 = crate :: Reg < fs_hcintmsk1 :: FsHcintmsk1Spec > ;
#[doc = "OTG_FS host channel-1 mask register (OTG_FS_HCINTMSK1)"] pub mod fs_hcintmsk1 {
#[doc = "Register `FS_HCINTMSK1` reader"] pub type R = crate :: R < FsHcintmsk1Spec > ;
#[doc = "Register `FS_HCINTMSK1` writer"] pub type W = crate :: W < FsHcintmsk1Spec > ;
#[doc = "Field `XFRCM` reader - Transfer completed mask"] pub type XfrcmR = crate :: BitReader ;
#[doc = "Field `XFRCM` writer - Transfer completed mask"] pub type XfrcmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHHM` reader - Channel halted mask"] pub type ChhmR = crate :: BitReader ;
#[doc = "Field `CHHM` writer - Channel halted mask"] pub type ChhmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALLM` reader - STALL response received interrupt mask"] pub type StallmR = crate :: BitReader ;
#[doc = "Field `STALLM` writer - STALL response received interrupt mask"] pub type StallmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAKM` reader - NAK response received interrupt mask"] pub type NakmR = crate :: BitReader ;
#[doc = "Field `NAKM` writer - NAK response received interrupt mask"] pub type NakmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACKM` reader - ACK response received/transmitted interrupt mask"] pub type AckmR = crate :: BitReader ;
#[doc = "Field `ACKM` writer - ACK response received/transmitted interrupt mask"] pub type AckmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NYET` reader - response received interrupt mask"] pub type NyetR = crate :: BitReader ;
#[doc = "Field `NYET` writer - response received interrupt mask"] pub type NyetW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERRM` reader - Transaction error mask"] pub type TxerrmR = crate :: BitReader ;
#[doc = "Field `TXERRM` writer - Transaction error mask"] pub type TxerrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERRM` reader - Babble error mask"] pub type BberrmR = crate :: BitReader ;
#[doc = "Field `BBERRM` writer - Babble error mask"] pub type BberrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMORM` reader - Frame overrun mask"] pub type FrmormR = crate :: BitReader ;
#[doc = "Field `FRMORM` writer - Frame overrun mask"] pub type FrmormW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERRM` reader - Data toggle error mask"] pub type DterrmR = crate :: BitReader ;
#[doc = "Field `DTERRM` writer - Data toggle error mask"] pub type DterrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& self) -> XfrcmR { XfrcmR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& self) -> ChhmR { ChhmR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& self) -> StallmR { StallmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& self) -> NakmR { NakmR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& self) -> AckmR { AckmR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& self) -> NyetR { NyetR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& self) -> TxerrmR { TxerrmR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& self) -> BberrmR { BberrmR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& self) -> FrmormR { FrmormR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& self) -> DterrmR { DterrmR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& mut self) -> XfrcmW < '_ , FsHcintmsk1Spec > { XfrcmW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& mut self) -> ChhmW < '_ , FsHcintmsk1Spec > { ChhmW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& mut self) -> StallmW < '_ , FsHcintmsk1Spec > { StallmW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& mut self) -> NakmW < '_ , FsHcintmsk1Spec > { NakmW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& mut self) -> AckmW < '_ , FsHcintmsk1Spec > { AckmW :: new (self , 5) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& mut self) -> NyetW < '_ , FsHcintmsk1Spec > { NyetW :: new (self , 6) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& mut self) -> TxerrmW < '_ , FsHcintmsk1Spec > { TxerrmW :: new (self , 7) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& mut self) -> BberrmW < '_ , FsHcintmsk1Spec > { BberrmW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& mut self) -> FrmormW < '_ , FsHcintmsk1Spec > { FrmormW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& mut self) -> DterrmW < '_ , FsHcintmsk1Spec > { DterrmW :: new (self , 10) } }
#[doc = "OTG_FS host channel-1 mask register (OTG_FS_HCINTMSK1)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcintmsk1Spec ; impl crate :: RegisterSpec for FsHcintmsk1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcintmsk1::R`](R) reader structure"] impl crate :: Readable for FsHcintmsk1Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcintmsk1::W`](W) writer structure"] impl crate :: Writable for FsHcintmsk1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINTMSK1 to value 0"] impl crate :: Resettable for FsHcintmsk1Spec { } }
#[doc = "FS_HCINTMSK2 (rw) register accessor: OTG_FS host channel-2 mask register (OTG_FS_HCINTMSK2)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcintmsk2`] module"]
#[doc (alias = "FS_HCINTMSK2")] pub type FsHcintmsk2 = crate :: Reg < fs_hcintmsk2 :: FsHcintmsk2Spec > ;
#[doc = "OTG_FS host channel-2 mask register (OTG_FS_HCINTMSK2)"] pub mod fs_hcintmsk2 {
#[doc = "Register `FS_HCINTMSK2` reader"] pub type R = crate :: R < FsHcintmsk2Spec > ;
#[doc = "Register `FS_HCINTMSK2` writer"] pub type W = crate :: W < FsHcintmsk2Spec > ;
#[doc = "Field `XFRCM` reader - Transfer completed mask"] pub type XfrcmR = crate :: BitReader ;
#[doc = "Field `XFRCM` writer - Transfer completed mask"] pub type XfrcmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHHM` reader - Channel halted mask"] pub type ChhmR = crate :: BitReader ;
#[doc = "Field `CHHM` writer - Channel halted mask"] pub type ChhmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALLM` reader - STALL response received interrupt mask"] pub type StallmR = crate :: BitReader ;
#[doc = "Field `STALLM` writer - STALL response received interrupt mask"] pub type StallmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAKM` reader - NAK response received interrupt mask"] pub type NakmR = crate :: BitReader ;
#[doc = "Field `NAKM` writer - NAK response received interrupt mask"] pub type NakmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACKM` reader - ACK response received/transmitted interrupt mask"] pub type AckmR = crate :: BitReader ;
#[doc = "Field `ACKM` writer - ACK response received/transmitted interrupt mask"] pub type AckmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NYET` reader - response received interrupt mask"] pub type NyetR = crate :: BitReader ;
#[doc = "Field `NYET` writer - response received interrupt mask"] pub type NyetW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERRM` reader - Transaction error mask"] pub type TxerrmR = crate :: BitReader ;
#[doc = "Field `TXERRM` writer - Transaction error mask"] pub type TxerrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERRM` reader - Babble error mask"] pub type BberrmR = crate :: BitReader ;
#[doc = "Field `BBERRM` writer - Babble error mask"] pub type BberrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMORM` reader - Frame overrun mask"] pub type FrmormR = crate :: BitReader ;
#[doc = "Field `FRMORM` writer - Frame overrun mask"] pub type FrmormW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERRM` reader - Data toggle error mask"] pub type DterrmR = crate :: BitReader ;
#[doc = "Field `DTERRM` writer - Data toggle error mask"] pub type DterrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& self) -> XfrcmR { XfrcmR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& self) -> ChhmR { ChhmR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& self) -> StallmR { StallmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& self) -> NakmR { NakmR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& self) -> AckmR { AckmR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& self) -> NyetR { NyetR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& self) -> TxerrmR { TxerrmR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& self) -> BberrmR { BberrmR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& self) -> FrmormR { FrmormR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& self) -> DterrmR { DterrmR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& mut self) -> XfrcmW < '_ , FsHcintmsk2Spec > { XfrcmW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& mut self) -> ChhmW < '_ , FsHcintmsk2Spec > { ChhmW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& mut self) -> StallmW < '_ , FsHcintmsk2Spec > { StallmW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& mut self) -> NakmW < '_ , FsHcintmsk2Spec > { NakmW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& mut self) -> AckmW < '_ , FsHcintmsk2Spec > { AckmW :: new (self , 5) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& mut self) -> NyetW < '_ , FsHcintmsk2Spec > { NyetW :: new (self , 6) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& mut self) -> TxerrmW < '_ , FsHcintmsk2Spec > { TxerrmW :: new (self , 7) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& mut self) -> BberrmW < '_ , FsHcintmsk2Spec > { BberrmW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& mut self) -> FrmormW < '_ , FsHcintmsk2Spec > { FrmormW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& mut self) -> DterrmW < '_ , FsHcintmsk2Spec > { DterrmW :: new (self , 10) } }
#[doc = "OTG_FS host channel-2 mask register (OTG_FS_HCINTMSK2)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcintmsk2Spec ; impl crate :: RegisterSpec for FsHcintmsk2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcintmsk2::R`](R) reader structure"] impl crate :: Readable for FsHcintmsk2Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcintmsk2::W`](W) writer structure"] impl crate :: Writable for FsHcintmsk2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINTMSK2 to value 0"] impl crate :: Resettable for FsHcintmsk2Spec { } }
#[doc = "FS_HCINTMSK3 (rw) register accessor: OTG_FS host channel-3 mask register (OTG_FS_HCINTMSK3)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcintmsk3`] module"]
#[doc (alias = "FS_HCINTMSK3")] pub type FsHcintmsk3 = crate :: Reg < fs_hcintmsk3 :: FsHcintmsk3Spec > ;
#[doc = "OTG_FS host channel-3 mask register (OTG_FS_HCINTMSK3)"] pub mod fs_hcintmsk3 {
#[doc = "Register `FS_HCINTMSK3` reader"] pub type R = crate :: R < FsHcintmsk3Spec > ;
#[doc = "Register `FS_HCINTMSK3` writer"] pub type W = crate :: W < FsHcintmsk3Spec > ;
#[doc = "Field `XFRCM` reader - Transfer completed mask"] pub type XfrcmR = crate :: BitReader ;
#[doc = "Field `XFRCM` writer - Transfer completed mask"] pub type XfrcmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHHM` reader - Channel halted mask"] pub type ChhmR = crate :: BitReader ;
#[doc = "Field `CHHM` writer - Channel halted mask"] pub type ChhmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALLM` reader - STALL response received interrupt mask"] pub type StallmR = crate :: BitReader ;
#[doc = "Field `STALLM` writer - STALL response received interrupt mask"] pub type StallmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAKM` reader - NAK response received interrupt mask"] pub type NakmR = crate :: BitReader ;
#[doc = "Field `NAKM` writer - NAK response received interrupt mask"] pub type NakmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACKM` reader - ACK response received/transmitted interrupt mask"] pub type AckmR = crate :: BitReader ;
#[doc = "Field `ACKM` writer - ACK response received/transmitted interrupt mask"] pub type AckmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NYET` reader - response received interrupt mask"] pub type NyetR = crate :: BitReader ;
#[doc = "Field `NYET` writer - response received interrupt mask"] pub type NyetW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERRM` reader - Transaction error mask"] pub type TxerrmR = crate :: BitReader ;
#[doc = "Field `TXERRM` writer - Transaction error mask"] pub type TxerrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERRM` reader - Babble error mask"] pub type BberrmR = crate :: BitReader ;
#[doc = "Field `BBERRM` writer - Babble error mask"] pub type BberrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMORM` reader - Frame overrun mask"] pub type FrmormR = crate :: BitReader ;
#[doc = "Field `FRMORM` writer - Frame overrun mask"] pub type FrmormW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERRM` reader - Data toggle error mask"] pub type DterrmR = crate :: BitReader ;
#[doc = "Field `DTERRM` writer - Data toggle error mask"] pub type DterrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& self) -> XfrcmR { XfrcmR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& self) -> ChhmR { ChhmR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& self) -> StallmR { StallmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& self) -> NakmR { NakmR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& self) -> AckmR { AckmR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& self) -> NyetR { NyetR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& self) -> TxerrmR { TxerrmR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& self) -> BberrmR { BberrmR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& self) -> FrmormR { FrmormR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& self) -> DterrmR { DterrmR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& mut self) -> XfrcmW < '_ , FsHcintmsk3Spec > { XfrcmW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& mut self) -> ChhmW < '_ , FsHcintmsk3Spec > { ChhmW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& mut self) -> StallmW < '_ , FsHcintmsk3Spec > { StallmW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& mut self) -> NakmW < '_ , FsHcintmsk3Spec > { NakmW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& mut self) -> AckmW < '_ , FsHcintmsk3Spec > { AckmW :: new (self , 5) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& mut self) -> NyetW < '_ , FsHcintmsk3Spec > { NyetW :: new (self , 6) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& mut self) -> TxerrmW < '_ , FsHcintmsk3Spec > { TxerrmW :: new (self , 7) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& mut self) -> BberrmW < '_ , FsHcintmsk3Spec > { BberrmW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& mut self) -> FrmormW < '_ , FsHcintmsk3Spec > { FrmormW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& mut self) -> DterrmW < '_ , FsHcintmsk3Spec > { DterrmW :: new (self , 10) } }
#[doc = "OTG_FS host channel-3 mask register (OTG_FS_HCINTMSK3)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcintmsk3Spec ; impl crate :: RegisterSpec for FsHcintmsk3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcintmsk3::R`](R) reader structure"] impl crate :: Readable for FsHcintmsk3Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcintmsk3::W`](W) writer structure"] impl crate :: Writable for FsHcintmsk3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINTMSK3 to value 0"] impl crate :: Resettable for FsHcintmsk3Spec { } }
#[doc = "FS_HCINTMSK4 (rw) register accessor: OTG_FS host channel-4 mask register (OTG_FS_HCINTMSK4)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcintmsk4`] module"]
#[doc (alias = "FS_HCINTMSK4")] pub type FsHcintmsk4 = crate :: Reg < fs_hcintmsk4 :: FsHcintmsk4Spec > ;
#[doc = "OTG_FS host channel-4 mask register (OTG_FS_HCINTMSK4)"] pub mod fs_hcintmsk4 {
#[doc = "Register `FS_HCINTMSK4` reader"] pub type R = crate :: R < FsHcintmsk4Spec > ;
#[doc = "Register `FS_HCINTMSK4` writer"] pub type W = crate :: W < FsHcintmsk4Spec > ;
#[doc = "Field `XFRCM` reader - Transfer completed mask"] pub type XfrcmR = crate :: BitReader ;
#[doc = "Field `XFRCM` writer - Transfer completed mask"] pub type XfrcmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHHM` reader - Channel halted mask"] pub type ChhmR = crate :: BitReader ;
#[doc = "Field `CHHM` writer - Channel halted mask"] pub type ChhmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALLM` reader - STALL response received interrupt mask"] pub type StallmR = crate :: BitReader ;
#[doc = "Field `STALLM` writer - STALL response received interrupt mask"] pub type StallmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAKM` reader - NAK response received interrupt mask"] pub type NakmR = crate :: BitReader ;
#[doc = "Field `NAKM` writer - NAK response received interrupt mask"] pub type NakmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACKM` reader - ACK response received/transmitted interrupt mask"] pub type AckmR = crate :: BitReader ;
#[doc = "Field `ACKM` writer - ACK response received/transmitted interrupt mask"] pub type AckmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NYET` reader - response received interrupt mask"] pub type NyetR = crate :: BitReader ;
#[doc = "Field `NYET` writer - response received interrupt mask"] pub type NyetW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERRM` reader - Transaction error mask"] pub type TxerrmR = crate :: BitReader ;
#[doc = "Field `TXERRM` writer - Transaction error mask"] pub type TxerrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERRM` reader - Babble error mask"] pub type BberrmR = crate :: BitReader ;
#[doc = "Field `BBERRM` writer - Babble error mask"] pub type BberrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMORM` reader - Frame overrun mask"] pub type FrmormR = crate :: BitReader ;
#[doc = "Field `FRMORM` writer - Frame overrun mask"] pub type FrmormW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERRM` reader - Data toggle error mask"] pub type DterrmR = crate :: BitReader ;
#[doc = "Field `DTERRM` writer - Data toggle error mask"] pub type DterrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& self) -> XfrcmR { XfrcmR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& self) -> ChhmR { ChhmR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& self) -> StallmR { StallmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& self) -> NakmR { NakmR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& self) -> AckmR { AckmR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& self) -> NyetR { NyetR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& self) -> TxerrmR { TxerrmR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& self) -> BberrmR { BberrmR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& self) -> FrmormR { FrmormR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& self) -> DterrmR { DterrmR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& mut self) -> XfrcmW < '_ , FsHcintmsk4Spec > { XfrcmW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& mut self) -> ChhmW < '_ , FsHcintmsk4Spec > { ChhmW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& mut self) -> StallmW < '_ , FsHcintmsk4Spec > { StallmW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& mut self) -> NakmW < '_ , FsHcintmsk4Spec > { NakmW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& mut self) -> AckmW < '_ , FsHcintmsk4Spec > { AckmW :: new (self , 5) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& mut self) -> NyetW < '_ , FsHcintmsk4Spec > { NyetW :: new (self , 6) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& mut self) -> TxerrmW < '_ , FsHcintmsk4Spec > { TxerrmW :: new (self , 7) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& mut self) -> BberrmW < '_ , FsHcintmsk4Spec > { BberrmW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& mut self) -> FrmormW < '_ , FsHcintmsk4Spec > { FrmormW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& mut self) -> DterrmW < '_ , FsHcintmsk4Spec > { DterrmW :: new (self , 10) } }
#[doc = "OTG_FS host channel-4 mask register (OTG_FS_HCINTMSK4)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcintmsk4Spec ; impl crate :: RegisterSpec for FsHcintmsk4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcintmsk4::R`](R) reader structure"] impl crate :: Readable for FsHcintmsk4Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcintmsk4::W`](W) writer structure"] impl crate :: Writable for FsHcintmsk4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINTMSK4 to value 0"] impl crate :: Resettable for FsHcintmsk4Spec { } }
#[doc = "FS_HCINTMSK5 (rw) register accessor: OTG_FS host channel-5 mask register (OTG_FS_HCINTMSK5)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk5::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk5::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcintmsk5`] module"]
#[doc (alias = "FS_HCINTMSK5")] pub type FsHcintmsk5 = crate :: Reg < fs_hcintmsk5 :: FsHcintmsk5Spec > ;
#[doc = "OTG_FS host channel-5 mask register (OTG_FS_HCINTMSK5)"] pub mod fs_hcintmsk5 {
#[doc = "Register `FS_HCINTMSK5` reader"] pub type R = crate :: R < FsHcintmsk5Spec > ;
#[doc = "Register `FS_HCINTMSK5` writer"] pub type W = crate :: W < FsHcintmsk5Spec > ;
#[doc = "Field `XFRCM` reader - Transfer completed mask"] pub type XfrcmR = crate :: BitReader ;
#[doc = "Field `XFRCM` writer - Transfer completed mask"] pub type XfrcmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHHM` reader - Channel halted mask"] pub type ChhmR = crate :: BitReader ;
#[doc = "Field `CHHM` writer - Channel halted mask"] pub type ChhmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALLM` reader - STALL response received interrupt mask"] pub type StallmR = crate :: BitReader ;
#[doc = "Field `STALLM` writer - STALL response received interrupt mask"] pub type StallmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAKM` reader - NAK response received interrupt mask"] pub type NakmR = crate :: BitReader ;
#[doc = "Field `NAKM` writer - NAK response received interrupt mask"] pub type NakmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACKM` reader - ACK response received/transmitted interrupt mask"] pub type AckmR = crate :: BitReader ;
#[doc = "Field `ACKM` writer - ACK response received/transmitted interrupt mask"] pub type AckmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NYET` reader - response received interrupt mask"] pub type NyetR = crate :: BitReader ;
#[doc = "Field `NYET` writer - response received interrupt mask"] pub type NyetW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERRM` reader - Transaction error mask"] pub type TxerrmR = crate :: BitReader ;
#[doc = "Field `TXERRM` writer - Transaction error mask"] pub type TxerrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERRM` reader - Babble error mask"] pub type BberrmR = crate :: BitReader ;
#[doc = "Field `BBERRM` writer - Babble error mask"] pub type BberrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMORM` reader - Frame overrun mask"] pub type FrmormR = crate :: BitReader ;
#[doc = "Field `FRMORM` writer - Frame overrun mask"] pub type FrmormW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERRM` reader - Data toggle error mask"] pub type DterrmR = crate :: BitReader ;
#[doc = "Field `DTERRM` writer - Data toggle error mask"] pub type DterrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& self) -> XfrcmR { XfrcmR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& self) -> ChhmR { ChhmR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& self) -> StallmR { StallmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& self) -> NakmR { NakmR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& self) -> AckmR { AckmR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& self) -> NyetR { NyetR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& self) -> TxerrmR { TxerrmR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& self) -> BberrmR { BberrmR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& self) -> FrmormR { FrmormR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& self) -> DterrmR { DterrmR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& mut self) -> XfrcmW < '_ , FsHcintmsk5Spec > { XfrcmW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& mut self) -> ChhmW < '_ , FsHcintmsk5Spec > { ChhmW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& mut self) -> StallmW < '_ , FsHcintmsk5Spec > { StallmW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& mut self) -> NakmW < '_ , FsHcintmsk5Spec > { NakmW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& mut self) -> AckmW < '_ , FsHcintmsk5Spec > { AckmW :: new (self , 5) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& mut self) -> NyetW < '_ , FsHcintmsk5Spec > { NyetW :: new (self , 6) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& mut self) -> TxerrmW < '_ , FsHcintmsk5Spec > { TxerrmW :: new (self , 7) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& mut self) -> BberrmW < '_ , FsHcintmsk5Spec > { BberrmW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& mut self) -> FrmormW < '_ , FsHcintmsk5Spec > { FrmormW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& mut self) -> DterrmW < '_ , FsHcintmsk5Spec > { DterrmW :: new (self , 10) } }
#[doc = "OTG_FS host channel-5 mask register (OTG_FS_HCINTMSK5)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk5::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk5::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcintmsk5Spec ; impl crate :: RegisterSpec for FsHcintmsk5Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcintmsk5::R`](R) reader structure"] impl crate :: Readable for FsHcintmsk5Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcintmsk5::W`](W) writer structure"] impl crate :: Writable for FsHcintmsk5Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINTMSK5 to value 0"] impl crate :: Resettable for FsHcintmsk5Spec { } }
#[doc = "FS_HCINTMSK6 (rw) register accessor: OTG_FS host channel-6 mask register (OTG_FS_HCINTMSK6)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk6::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk6::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcintmsk6`] module"]
#[doc (alias = "FS_HCINTMSK6")] pub type FsHcintmsk6 = crate :: Reg < fs_hcintmsk6 :: FsHcintmsk6Spec > ;
#[doc = "OTG_FS host channel-6 mask register (OTG_FS_HCINTMSK6)"] pub mod fs_hcintmsk6 {
#[doc = "Register `FS_HCINTMSK6` reader"] pub type R = crate :: R < FsHcintmsk6Spec > ;
#[doc = "Register `FS_HCINTMSK6` writer"] pub type W = crate :: W < FsHcintmsk6Spec > ;
#[doc = "Field `XFRCM` reader - Transfer completed mask"] pub type XfrcmR = crate :: BitReader ;
#[doc = "Field `XFRCM` writer - Transfer completed mask"] pub type XfrcmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHHM` reader - Channel halted mask"] pub type ChhmR = crate :: BitReader ;
#[doc = "Field `CHHM` writer - Channel halted mask"] pub type ChhmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALLM` reader - STALL response received interrupt mask"] pub type StallmR = crate :: BitReader ;
#[doc = "Field `STALLM` writer - STALL response received interrupt mask"] pub type StallmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAKM` reader - NAK response received interrupt mask"] pub type NakmR = crate :: BitReader ;
#[doc = "Field `NAKM` writer - NAK response received interrupt mask"] pub type NakmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACKM` reader - ACK response received/transmitted interrupt mask"] pub type AckmR = crate :: BitReader ;
#[doc = "Field `ACKM` writer - ACK response received/transmitted interrupt mask"] pub type AckmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NYET` reader - response received interrupt mask"] pub type NyetR = crate :: BitReader ;
#[doc = "Field `NYET` writer - response received interrupt mask"] pub type NyetW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERRM` reader - Transaction error mask"] pub type TxerrmR = crate :: BitReader ;
#[doc = "Field `TXERRM` writer - Transaction error mask"] pub type TxerrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERRM` reader - Babble error mask"] pub type BberrmR = crate :: BitReader ;
#[doc = "Field `BBERRM` writer - Babble error mask"] pub type BberrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMORM` reader - Frame overrun mask"] pub type FrmormR = crate :: BitReader ;
#[doc = "Field `FRMORM` writer - Frame overrun mask"] pub type FrmormW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERRM` reader - Data toggle error mask"] pub type DterrmR = crate :: BitReader ;
#[doc = "Field `DTERRM` writer - Data toggle error mask"] pub type DterrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& self) -> XfrcmR { XfrcmR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& self) -> ChhmR { ChhmR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& self) -> StallmR { StallmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& self) -> NakmR { NakmR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& self) -> AckmR { AckmR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& self) -> NyetR { NyetR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& self) -> TxerrmR { TxerrmR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& self) -> BberrmR { BberrmR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& self) -> FrmormR { FrmormR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& self) -> DterrmR { DterrmR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& mut self) -> XfrcmW < '_ , FsHcintmsk6Spec > { XfrcmW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& mut self) -> ChhmW < '_ , FsHcintmsk6Spec > { ChhmW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& mut self) -> StallmW < '_ , FsHcintmsk6Spec > { StallmW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& mut self) -> NakmW < '_ , FsHcintmsk6Spec > { NakmW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& mut self) -> AckmW < '_ , FsHcintmsk6Spec > { AckmW :: new (self , 5) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& mut self) -> NyetW < '_ , FsHcintmsk6Spec > { NyetW :: new (self , 6) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& mut self) -> TxerrmW < '_ , FsHcintmsk6Spec > { TxerrmW :: new (self , 7) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& mut self) -> BberrmW < '_ , FsHcintmsk6Spec > { BberrmW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& mut self) -> FrmormW < '_ , FsHcintmsk6Spec > { FrmormW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& mut self) -> DterrmW < '_ , FsHcintmsk6Spec > { DterrmW :: new (self , 10) } }
#[doc = "OTG_FS host channel-6 mask register (OTG_FS_HCINTMSK6)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk6::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk6::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcintmsk6Spec ; impl crate :: RegisterSpec for FsHcintmsk6Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcintmsk6::R`](R) reader structure"] impl crate :: Readable for FsHcintmsk6Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcintmsk6::W`](W) writer structure"] impl crate :: Writable for FsHcintmsk6Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINTMSK6 to value 0"] impl crate :: Resettable for FsHcintmsk6Spec { } }
#[doc = "FS_HCINTMSK7 (rw) register accessor: OTG_FS host channel-7 mask register (OTG_FS_HCINTMSK7)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk7::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk7::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hcintmsk7`] module"]
#[doc (alias = "FS_HCINTMSK7")] pub type FsHcintmsk7 = crate :: Reg < fs_hcintmsk7 :: FsHcintmsk7Spec > ;
#[doc = "OTG_FS host channel-7 mask register (OTG_FS_HCINTMSK7)"] pub mod fs_hcintmsk7 {
#[doc = "Register `FS_HCINTMSK7` reader"] pub type R = crate :: R < FsHcintmsk7Spec > ;
#[doc = "Register `FS_HCINTMSK7` writer"] pub type W = crate :: W < FsHcintmsk7Spec > ;
#[doc = "Field `XFRCM` reader - Transfer completed mask"] pub type XfrcmR = crate :: BitReader ;
#[doc = "Field `XFRCM` writer - Transfer completed mask"] pub type XfrcmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CHHM` reader - Channel halted mask"] pub type ChhmR = crate :: BitReader ;
#[doc = "Field `CHHM` writer - Channel halted mask"] pub type ChhmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `STALLM` reader - STALL response received interrupt mask"] pub type StallmR = crate :: BitReader ;
#[doc = "Field `STALLM` writer - STALL response received interrupt mask"] pub type StallmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NAKM` reader - NAK response received interrupt mask"] pub type NakmR = crate :: BitReader ;
#[doc = "Field `NAKM` writer - NAK response received interrupt mask"] pub type NakmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ACKM` reader - ACK response received/transmitted interrupt mask"] pub type AckmR = crate :: BitReader ;
#[doc = "Field `ACKM` writer - ACK response received/transmitted interrupt mask"] pub type AckmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NYET` reader - response received interrupt mask"] pub type NyetR = crate :: BitReader ;
#[doc = "Field `NYET` writer - response received interrupt mask"] pub type NyetW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TXERRM` reader - Transaction error mask"] pub type TxerrmR = crate :: BitReader ;
#[doc = "Field `TXERRM` writer - Transaction error mask"] pub type TxerrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BBERRM` reader - Babble error mask"] pub type BberrmR = crate :: BitReader ;
#[doc = "Field `BBERRM` writer - Babble error mask"] pub type BberrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FRMORM` reader - Frame overrun mask"] pub type FrmormR = crate :: BitReader ;
#[doc = "Field `FRMORM` writer - Frame overrun mask"] pub type FrmormW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTERRM` reader - Data toggle error mask"] pub type DterrmR = crate :: BitReader ;
#[doc = "Field `DTERRM` writer - Data toggle error mask"] pub type DterrmW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& self) -> XfrcmR { XfrcmR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& self) -> ChhmR { ChhmR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& self) -> StallmR { StallmR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& self) -> NakmR { NakmR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& self) -> AckmR { AckmR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& self) -> NyetR { NyetR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& self) -> TxerrmR { TxerrmR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& self) -> BberrmR { BberrmR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& self) -> FrmormR { FrmormR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& self) -> DterrmR { DterrmR :: new (((self . bits >> 10) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transfer completed mask"]
#[inline (always)] pub fn xfrcm (& mut self) -> XfrcmW < '_ , FsHcintmsk7Spec > { XfrcmW :: new (self , 0) }
#[doc = "Bit 1 - Channel halted mask"]
#[inline (always)] pub fn chhm (& mut self) -> ChhmW < '_ , FsHcintmsk7Spec > { ChhmW :: new (self , 1) }
#[doc = "Bit 3 - STALL response received interrupt mask"]
#[inline (always)] pub fn stallm (& mut self) -> StallmW < '_ , FsHcintmsk7Spec > { StallmW :: new (self , 3) }
#[doc = "Bit 4 - NAK response received interrupt mask"]
#[inline (always)] pub fn nakm (& mut self) -> NakmW < '_ , FsHcintmsk7Spec > { NakmW :: new (self , 4) }
#[doc = "Bit 5 - ACK response received/transmitted interrupt mask"]
#[inline (always)] pub fn ackm (& mut self) -> AckmW < '_ , FsHcintmsk7Spec > { AckmW :: new (self , 5) }
#[doc = "Bit 6 - response received interrupt mask"]
#[inline (always)] pub fn nyet (& mut self) -> NyetW < '_ , FsHcintmsk7Spec > { NyetW :: new (self , 6) }
#[doc = "Bit 7 - Transaction error mask"]
#[inline (always)] pub fn txerrm (& mut self) -> TxerrmW < '_ , FsHcintmsk7Spec > { TxerrmW :: new (self , 7) }
#[doc = "Bit 8 - Babble error mask"]
#[inline (always)] pub fn bberrm (& mut self) -> BberrmW < '_ , FsHcintmsk7Spec > { BberrmW :: new (self , 8) }
#[doc = "Bit 9 - Frame overrun mask"]
#[inline (always)] pub fn frmorm (& mut self) -> FrmormW < '_ , FsHcintmsk7Spec > { FrmormW :: new (self , 9) }
#[doc = "Bit 10 - Data toggle error mask"]
#[inline (always)] pub fn dterrm (& mut self) -> DterrmW < '_ , FsHcintmsk7Spec > { DterrmW :: new (self , 10) } }
#[doc = "OTG_FS host channel-7 mask register (OTG_FS_HCINTMSK7)\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hcintmsk7::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hcintmsk7::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHcintmsk7Spec ; impl crate :: RegisterSpec for FsHcintmsk7Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hcintmsk7::R`](R) reader structure"] impl crate :: Readable for FsHcintmsk7Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hcintmsk7::W`](W) writer structure"] impl crate :: Writable for FsHcintmsk7Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCINTMSK7 to value 0"] impl crate :: Resettable for FsHcintmsk7Spec { } }
#[doc = "FS_HCTSIZ0 (rw) register accessor: OTG_FS host channel-0 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hctsiz0`] module"]
#[doc (alias = "FS_HCTSIZ0")] pub type FsHctsiz0 = crate :: Reg < fs_hctsiz0 :: FsHctsiz0Spec > ;
#[doc = "OTG_FS host channel-0 transfer size register"] pub mod fs_hctsiz0 {
#[doc = "Register `FS_HCTSIZ0` reader"] pub type R = crate :: R < FsHctsiz0Spec > ;
#[doc = "Register `FS_HCTSIZ0` writer"] pub type W = crate :: W < FsHctsiz0Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader < u32 > ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 19 , u32 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `DPID` reader - Data PID"] pub type DpidR = crate :: FieldReader ;
#[doc = "Field `DPID` writer - Data PID"] pub type DpidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new (self . bits & 0x0007_ffff) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 0x03ff) as u16) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& self) -> DpidR { DpidR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , FsHctsiz0Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , FsHctsiz0Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& mut self) -> DpidW < '_ , FsHctsiz0Spec > { DpidW :: new (self , 29) } }
#[doc = "OTG_FS host channel-0 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHctsiz0Spec ; impl crate :: RegisterSpec for FsHctsiz0Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hctsiz0::R`](R) reader structure"] impl crate :: Readable for FsHctsiz0Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hctsiz0::W`](W) writer structure"] impl crate :: Writable for FsHctsiz0Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCTSIZ0 to value 0"] impl crate :: Resettable for FsHctsiz0Spec { } }
#[doc = "FS_HCTSIZ1 (rw) register accessor: OTG_FS host channel-1 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hctsiz1`] module"]
#[doc (alias = "FS_HCTSIZ1")] pub type FsHctsiz1 = crate :: Reg < fs_hctsiz1 :: FsHctsiz1Spec > ;
#[doc = "OTG_FS host channel-1 transfer size register"] pub mod fs_hctsiz1 {
#[doc = "Register `FS_HCTSIZ1` reader"] pub type R = crate :: R < FsHctsiz1Spec > ;
#[doc = "Register `FS_HCTSIZ1` writer"] pub type W = crate :: W < FsHctsiz1Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader < u32 > ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 19 , u32 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `DPID` reader - Data PID"] pub type DpidR = crate :: FieldReader ;
#[doc = "Field `DPID` writer - Data PID"] pub type DpidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new (self . bits & 0x0007_ffff) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 0x03ff) as u16) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& self) -> DpidR { DpidR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , FsHctsiz1Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , FsHctsiz1Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& mut self) -> DpidW < '_ , FsHctsiz1Spec > { DpidW :: new (self , 29) } }
#[doc = "OTG_FS host channel-1 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHctsiz1Spec ; impl crate :: RegisterSpec for FsHctsiz1Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hctsiz1::R`](R) reader structure"] impl crate :: Readable for FsHctsiz1Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hctsiz1::W`](W) writer structure"] impl crate :: Writable for FsHctsiz1Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCTSIZ1 to value 0"] impl crate :: Resettable for FsHctsiz1Spec { } }
#[doc = "FS_HCTSIZ2 (rw) register accessor: OTG_FS host channel-2 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hctsiz2`] module"]
#[doc (alias = "FS_HCTSIZ2")] pub type FsHctsiz2 = crate :: Reg < fs_hctsiz2 :: FsHctsiz2Spec > ;
#[doc = "OTG_FS host channel-2 transfer size register"] pub mod fs_hctsiz2 {
#[doc = "Register `FS_HCTSIZ2` reader"] pub type R = crate :: R < FsHctsiz2Spec > ;
#[doc = "Register `FS_HCTSIZ2` writer"] pub type W = crate :: W < FsHctsiz2Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader < u32 > ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 19 , u32 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `DPID` reader - Data PID"] pub type DpidR = crate :: FieldReader ;
#[doc = "Field `DPID` writer - Data PID"] pub type DpidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new (self . bits & 0x0007_ffff) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 0x03ff) as u16) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& self) -> DpidR { DpidR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , FsHctsiz2Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , FsHctsiz2Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& mut self) -> DpidW < '_ , FsHctsiz2Spec > { DpidW :: new (self , 29) } }
#[doc = "OTG_FS host channel-2 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHctsiz2Spec ; impl crate :: RegisterSpec for FsHctsiz2Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hctsiz2::R`](R) reader structure"] impl crate :: Readable for FsHctsiz2Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hctsiz2::W`](W) writer structure"] impl crate :: Writable for FsHctsiz2Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCTSIZ2 to value 0"] impl crate :: Resettable for FsHctsiz2Spec { } }
#[doc = "FS_HCTSIZ3 (rw) register accessor: OTG_FS host channel-3 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hctsiz3`] module"]
#[doc (alias = "FS_HCTSIZ3")] pub type FsHctsiz3 = crate :: Reg < fs_hctsiz3 :: FsHctsiz3Spec > ;
#[doc = "OTG_FS host channel-3 transfer size register"] pub mod fs_hctsiz3 {
#[doc = "Register `FS_HCTSIZ3` reader"] pub type R = crate :: R < FsHctsiz3Spec > ;
#[doc = "Register `FS_HCTSIZ3` writer"] pub type W = crate :: W < FsHctsiz3Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader < u32 > ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 19 , u32 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `DPID` reader - Data PID"] pub type DpidR = crate :: FieldReader ;
#[doc = "Field `DPID` writer - Data PID"] pub type DpidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new (self . bits & 0x0007_ffff) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 0x03ff) as u16) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& self) -> DpidR { DpidR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , FsHctsiz3Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , FsHctsiz3Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& mut self) -> DpidW < '_ , FsHctsiz3Spec > { DpidW :: new (self , 29) } }
#[doc = "OTG_FS host channel-3 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz3::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHctsiz3Spec ; impl crate :: RegisterSpec for FsHctsiz3Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hctsiz3::R`](R) reader structure"] impl crate :: Readable for FsHctsiz3Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hctsiz3::W`](W) writer structure"] impl crate :: Writable for FsHctsiz3Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCTSIZ3 to value 0"] impl crate :: Resettable for FsHctsiz3Spec { } }
#[doc = "FS_HCTSIZ4 (rw) register accessor: OTG_FS host channel-x transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz4::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hctsiz4`] module"]
#[doc (alias = "FS_HCTSIZ4")] pub type FsHctsiz4 = crate :: Reg < fs_hctsiz4 :: FsHctsiz4Spec > ;
#[doc = "OTG_FS host channel-x transfer size register"] pub mod fs_hctsiz4 {
#[doc = "Register `FS_HCTSIZ4` reader"] pub type R = crate :: R < FsHctsiz4Spec > ;
#[doc = "Register `FS_HCTSIZ4` writer"] pub type W = crate :: W < FsHctsiz4Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader < u32 > ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 19 , u32 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `DPID` reader - Data PID"] pub type DpidR = crate :: FieldReader ;
#[doc = "Field `DPID` writer - Data PID"] pub type DpidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new (self . bits & 0x0007_ffff) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 0x03ff) as u16) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& self) -> DpidR { DpidR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , FsHctsiz4Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , FsHctsiz4Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& mut self) -> DpidW < '_ , FsHctsiz4Spec > { DpidW :: new (self , 29) } }
#[doc = "OTG_FS host channel-x transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHctsiz4Spec ; impl crate :: RegisterSpec for FsHctsiz4Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hctsiz4::R`](R) reader structure"] impl crate :: Readable for FsHctsiz4Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hctsiz4::W`](W) writer structure"] impl crate :: Writable for FsHctsiz4Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCTSIZ4 to value 0"] impl crate :: Resettable for FsHctsiz4Spec { } }
#[doc = "FS_HCTSIZ5 (rw) register accessor: OTG_FS host channel-5 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz5::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz5::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hctsiz5`] module"]
#[doc (alias = "FS_HCTSIZ5")] pub type FsHctsiz5 = crate :: Reg < fs_hctsiz5 :: FsHctsiz5Spec > ;
#[doc = "OTG_FS host channel-5 transfer size register"] pub mod fs_hctsiz5 {
#[doc = "Register `FS_HCTSIZ5` reader"] pub type R = crate :: R < FsHctsiz5Spec > ;
#[doc = "Register `FS_HCTSIZ5` writer"] pub type W = crate :: W < FsHctsiz5Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader < u32 > ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 19 , u32 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `DPID` reader - Data PID"] pub type DpidR = crate :: FieldReader ;
#[doc = "Field `DPID` writer - Data PID"] pub type DpidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new (self . bits & 0x0007_ffff) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 0x03ff) as u16) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& self) -> DpidR { DpidR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , FsHctsiz5Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , FsHctsiz5Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& mut self) -> DpidW < '_ , FsHctsiz5Spec > { DpidW :: new (self , 29) } }
#[doc = "OTG_FS host channel-5 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz5::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz5::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHctsiz5Spec ; impl crate :: RegisterSpec for FsHctsiz5Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hctsiz5::R`](R) reader structure"] impl crate :: Readable for FsHctsiz5Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hctsiz5::W`](W) writer structure"] impl crate :: Writable for FsHctsiz5Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCTSIZ5 to value 0"] impl crate :: Resettable for FsHctsiz5Spec { } }
#[doc = "FS_HCTSIZ6 (rw) register accessor: OTG_FS host channel-6 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz6::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz6::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hctsiz6`] module"]
#[doc (alias = "FS_HCTSIZ6")] pub type FsHctsiz6 = crate :: Reg < fs_hctsiz6 :: FsHctsiz6Spec > ;
#[doc = "OTG_FS host channel-6 transfer size register"] pub mod fs_hctsiz6 {
#[doc = "Register `FS_HCTSIZ6` reader"] pub type R = crate :: R < FsHctsiz6Spec > ;
#[doc = "Register `FS_HCTSIZ6` writer"] pub type W = crate :: W < FsHctsiz6Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader < u32 > ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 19 , u32 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `DPID` reader - Data PID"] pub type DpidR = crate :: FieldReader ;
#[doc = "Field `DPID` writer - Data PID"] pub type DpidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new (self . bits & 0x0007_ffff) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 0x03ff) as u16) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& self) -> DpidR { DpidR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , FsHctsiz6Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , FsHctsiz6Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& mut self) -> DpidW < '_ , FsHctsiz6Spec > { DpidW :: new (self , 29) } }
#[doc = "OTG_FS host channel-6 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz6::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz6::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHctsiz6Spec ; impl crate :: RegisterSpec for FsHctsiz6Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hctsiz6::R`](R) reader structure"] impl crate :: Readable for FsHctsiz6Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hctsiz6::W`](W) writer structure"] impl crate :: Writable for FsHctsiz6Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCTSIZ6 to value 0"] impl crate :: Resettable for FsHctsiz6Spec { } }
#[doc = "FS_HCTSIZ7 (rw) register accessor: OTG_FS host channel-7 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz7::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz7::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_hctsiz7`] module"]
#[doc (alias = "FS_HCTSIZ7")] pub type FsHctsiz7 = crate :: Reg < fs_hctsiz7 :: FsHctsiz7Spec > ;
#[doc = "OTG_FS host channel-7 transfer size register"] pub mod fs_hctsiz7 {
#[doc = "Register `FS_HCTSIZ7` reader"] pub type R = crate :: R < FsHctsiz7Spec > ;
#[doc = "Register `FS_HCTSIZ7` writer"] pub type W = crate :: W < FsHctsiz7Spec > ;
#[doc = "Field `XFRSIZ` reader - Transfer size"] pub type XfrsizR = crate :: FieldReader < u32 > ;
#[doc = "Field `XFRSIZ` writer - Transfer size"] pub type XfrsizW < 'a , REG > = crate :: FieldWriter < 'a , REG , 19 , u32 > ;
#[doc = "Field `PKTCNT` reader - Packet count"] pub type PktcntR = crate :: FieldReader < u16 > ;
#[doc = "Field `PKTCNT` writer - Packet count"] pub type PktcntW < 'a , REG > = crate :: FieldWriter < 'a , REG , 10 , u16 > ;
#[doc = "Field `DPID` reader - Data PID"] pub type DpidR = crate :: FieldReader ;
#[doc = "Field `DPID` writer - Data PID"] pub type DpidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ; impl R {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& self) -> XfrsizR { XfrsizR :: new (self . bits & 0x0007_ffff) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& self) -> PktcntR { PktcntR :: new (((self . bits >> 19) & 0x03ff) as u16) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& self) -> DpidR { DpidR :: new (((self . bits >> 29) & 3) as u8) } } impl W {
#[doc = "Bits 0:18 - Transfer size"]
#[inline (always)] pub fn xfrsiz (& mut self) -> XfrsizW < '_ , FsHctsiz7Spec > { XfrsizW :: new (self , 0) }
#[doc = "Bits 19:28 - Packet count"]
#[inline (always)] pub fn pktcnt (& mut self) -> PktcntW < '_ , FsHctsiz7Spec > { PktcntW :: new (self , 19) }
#[doc = "Bits 29:30 - Data PID"]
#[inline (always)] pub fn dpid (& mut self) -> DpidW < '_ , FsHctsiz7Spec > { DpidW :: new (self , 29) } }
#[doc = "OTG_FS host channel-7 transfer size register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_hctsiz7::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_hctsiz7::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsHctsiz7Spec ; impl crate :: RegisterSpec for FsHctsiz7Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_hctsiz7::R`](R) reader structure"] impl crate :: Readable for FsHctsiz7Spec { }
#[doc = "`write(|w| ..)` method takes [`fs_hctsiz7::W`](W) writer structure"] impl crate :: Writable for FsHctsiz7Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_HCTSIZ7 to value 0"] impl crate :: Resettable for FsHctsiz7Spec { } } }
#[doc = "USB on the go full speed"] pub type OtgFsPwrclk = crate :: Periph < otg_fs_pwrclk :: RegisterBlock , 0x5000_0e00 > ; impl core :: fmt :: Debug for OtgFsPwrclk { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("OtgFsPwrclk") . finish () } }
#[doc = "USB on the go full speed"] pub mod otg_fs_pwrclk {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { fs_pcgcctl : FsPcgcctl , } impl RegisterBlock {
#[doc = "0x00 - OTG_FS power and clock gating control register"]
#[inline (always)] pub const fn fs_pcgcctl (& self) -> & FsPcgcctl { & self . fs_pcgcctl } }
#[doc = "FS_PCGCCTL (rw) register accessor: OTG_FS power and clock gating control register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_pcgcctl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_pcgcctl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@fs_pcgcctl`] module"]
#[doc (alias = "FS_PCGCCTL")] pub type FsPcgcctl = crate :: Reg < fs_pcgcctl :: FsPcgcctlSpec > ;
#[doc = "OTG_FS power and clock gating control register"] pub mod fs_pcgcctl {
#[doc = "Register `FS_PCGCCTL` reader"] pub type R = crate :: R < FsPcgcctlSpec > ;
#[doc = "Register `FS_PCGCCTL` writer"] pub type W = crate :: W < FsPcgcctlSpec > ;
#[doc = "Field `STPPCLK` reader - Stop PHY clock"] pub type StppclkR = crate :: BitReader ;
#[doc = "Field `STPPCLK` writer - Stop PHY clock"] pub type StppclkW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `GATEHCLK` reader - Gate HCLK"] pub type GatehclkR = crate :: BitReader ;
#[doc = "Field `GATEHCLK` writer - Gate HCLK"] pub type GatehclkW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PHYSUSP` reader - PHY Suspended"] pub type PhysuspR = crate :: BitReader ;
#[doc = "Field `PHYSUSP` writer - PHY Suspended"] pub type PhysuspW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Stop PHY clock"]
#[inline (always)] pub fn stppclk (& self) -> StppclkR { StppclkR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Gate HCLK"]
#[inline (always)] pub fn gatehclk (& self) -> GatehclkR { GatehclkR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 4 - PHY Suspended"]
#[inline (always)] pub fn physusp (& self) -> PhysuspR { PhysuspR :: new (((self . bits >> 4) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Stop PHY clock"]
#[inline (always)] pub fn stppclk (& mut self) -> StppclkW < '_ , FsPcgcctlSpec > { StppclkW :: new (self , 0) }
#[doc = "Bit 1 - Gate HCLK"]
#[inline (always)] pub fn gatehclk (& mut self) -> GatehclkW < '_ , FsPcgcctlSpec > { GatehclkW :: new (self , 1) }
#[doc = "Bit 4 - PHY Suspended"]
#[inline (always)] pub fn physusp (& mut self) -> PhysuspW < '_ , FsPcgcctlSpec > { PhysuspW :: new (self , 4) } }
#[doc = "OTG_FS power and clock gating control register\n\nYou can [`read`](crate::Reg::read) this register and get [`fs_pcgcctl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fs_pcgcctl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct FsPcgcctlSpec ; impl crate :: RegisterSpec for FsPcgcctlSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`fs_pcgcctl::R`](R) reader structure"] impl crate :: Readable for FsPcgcctlSpec { }
#[doc = "`write(|w| ..)` method takes [`fs_pcgcctl::W`](W) writer structure"] impl crate :: Writable for FsPcgcctlSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets FS_PCGCCTL to value 0"] impl crate :: Resettable for FsPcgcctlSpec { } } }
#[doc = "Ethernet: MAC management counters"] pub type EthernetMmc = crate :: Periph < ethernet_mmc :: RegisterBlock , 0x4002_8100 > ; impl core :: fmt :: Debug for EthernetMmc { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("EthernetMmc") . finish () } }
#[doc = "Ethernet: MAC management counters"] pub mod ethernet_mmc {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { mmccr : Mmccr , mmcrir : Mmcrir , mmctir : Mmctir , mmcrimr : Mmcrimr , mmctimr : Mmctimr , _reserved5 : [u8 ; 0x38] , mmctgfsccr : Mmctgfsccr , mmctgfmsccr : Mmctgfmsccr , _reserved7 : [u8 ; 0x14] , mmctgfcr : Mmctgfcr , _reserved8 : [u8 ; 0x28] , mmcrfcecr : Mmcrfcecr , mmcrfaecr : Mmcrfaecr , _reserved10 : [u8 ; 0x28] , mmcrgufcr : Mmcrgufcr , } impl RegisterBlock {
#[doc = "0x00 - Ethernet MMC control register (ETH_MMCCR)"]
#[inline (always)] pub const fn mmccr (& self) -> & Mmccr { & self . mmccr }
#[doc = "0x04 - Ethernet MMC receive interrupt register (ETH_MMCRIR)"]
#[inline (always)] pub const fn mmcrir (& self) -> & Mmcrir { & self . mmcrir }
#[doc = "0x08 - Ethernet MMC transmit interrupt register (ETH_MMCTIR)"]
#[inline (always)] pub const fn mmctir (& self) -> & Mmctir { & self . mmctir }
#[doc = "0x0c - Ethernet MMC receive interrupt mask register (ETH_MMCRIMR)"]
#[inline (always)] pub const fn mmcrimr (& self) -> & Mmcrimr { & self . mmcrimr }
#[doc = "0x10 - Ethernet MMC transmit interrupt mask register (ETH_MMCTIMR)"]
#[inline (always)] pub const fn mmctimr (& self) -> & Mmctimr { & self . mmctimr }
#[doc = "0x4c - Ethernet MMC transmitted good frames after a single collision counter"]
#[inline (always)] pub const fn mmctgfsccr (& self) -> & Mmctgfsccr { & self . mmctgfsccr }
#[doc = "0x50 - Ethernet MMC transmitted good frames after more than a single collision"]
#[inline (always)] pub const fn mmctgfmsccr (& self) -> & Mmctgfmsccr { & self . mmctgfmsccr }
#[doc = "0x68 - Ethernet MMC transmitted good frames counter register"]
#[inline (always)] pub const fn mmctgfcr (& self) -> & Mmctgfcr { & self . mmctgfcr }
#[doc = "0x94 - Ethernet MMC received frames with CRC error counter register"]
#[inline (always)] pub const fn mmcrfcecr (& self) -> & Mmcrfcecr { & self . mmcrfcecr }
#[doc = "0x98 - Ethernet MMC received frames with alignment error counter register"]
#[inline (always)] pub const fn mmcrfaecr (& self) -> & Mmcrfaecr { & self . mmcrfaecr }
#[doc = "0xc4 - MMC received good unicast frames counter register"]
#[inline (always)] pub const fn mmcrgufcr (& self) -> & Mmcrgufcr { & self . mmcrgufcr } }
#[doc = "MMCCR (rw) register accessor: Ethernet MMC control register (ETH_MMCCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`mmccr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mmccr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mmccr`] module"]
#[doc (alias = "MMCCR")] pub type Mmccr = crate :: Reg < mmccr :: MmccrSpec > ;
#[doc = "Ethernet MMC control register (ETH_MMCCR)"] pub mod mmccr {
#[doc = "Register `MMCCR` reader"] pub type R = crate :: R < MmccrSpec > ;
#[doc = "Register `MMCCR` writer"] pub type W = crate :: W < MmccrSpec > ;
#[doc = "Field `CR` reader - Counter reset"] pub type CrR = crate :: BitReader ;
#[doc = "Field `CR` writer - Counter reset"] pub type CrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CSR` reader - Counter stop rollover"] pub type CsrR = crate :: BitReader ;
#[doc = "Field `CSR` writer - Counter stop rollover"] pub type CsrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ROR` reader - Reset on read"] pub type RorR = crate :: BitReader ;
#[doc = "Field `ROR` writer - Reset on read"] pub type RorW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MCF` reader - MMC counter freeze"] pub type McfR = crate :: BitReader ;
#[doc = "Field `MCF` writer - MMC counter freeze"] pub type McfW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Counter reset"]
#[inline (always)] pub fn cr (& self) -> CrR { CrR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Counter stop rollover"]
#[inline (always)] pub fn csr (& self) -> CsrR { CsrR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Reset on read"]
#[inline (always)] pub fn ror (& self) -> RorR { RorR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 31 - MMC counter freeze"]
#[inline (always)] pub fn mcf (& self) -> McfR { McfR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Counter reset"]
#[inline (always)] pub fn cr (& mut self) -> CrW < '_ , MmccrSpec > { CrW :: new (self , 0) }
#[doc = "Bit 1 - Counter stop rollover"]
#[inline (always)] pub fn csr (& mut self) -> CsrW < '_ , MmccrSpec > { CsrW :: new (self , 1) }
#[doc = "Bit 2 - Reset on read"]
#[inline (always)] pub fn ror (& mut self) -> RorW < '_ , MmccrSpec > { RorW :: new (self , 2) }
#[doc = "Bit 31 - MMC counter freeze"]
#[inline (always)] pub fn mcf (& mut self) -> McfW < '_ , MmccrSpec > { McfW :: new (self , 31) } }
#[doc = "Ethernet MMC control register (ETH_MMCCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`mmccr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mmccr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MmccrSpec ; impl crate :: RegisterSpec for MmccrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`mmccr::R`](R) reader structure"] impl crate :: Readable for MmccrSpec { }
#[doc = "`write(|w| ..)` method takes [`mmccr::W`](W) writer structure"] impl crate :: Writable for MmccrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MMCCR to value 0"] impl crate :: Resettable for MmccrSpec { } }
#[doc = "MMCRIR (rw) register accessor: Ethernet MMC receive interrupt register (ETH_MMCRIR)\n\nYou can [`read`](crate::Reg::read) this register and get [`mmcrir::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mmcrir::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mmcrir`] module"]
#[doc (alias = "MMCRIR")] pub type Mmcrir = crate :: Reg < mmcrir :: MmcrirSpec > ;
#[doc = "Ethernet MMC receive interrupt register (ETH_MMCRIR)"] pub mod mmcrir {
#[doc = "Register `MMCRIR` reader"] pub type R = crate :: R < MmcrirSpec > ;
#[doc = "Register `MMCRIR` writer"] pub type W = crate :: W < MmcrirSpec > ;
#[doc = "Field `RFCES` reader - Received frames CRC error status"] pub type RfcesR = crate :: BitReader ;
#[doc = "Field `RFCES` writer - Received frames CRC error status"] pub type RfcesW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RFAES` reader - Received frames alignment error status"] pub type RfaesR = crate :: BitReader ;
#[doc = "Field `RFAES` writer - Received frames alignment error status"] pub type RfaesW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RGUFS` reader - Received Good Unicast Frames Status"] pub type RgufsR = crate :: BitReader ;
#[doc = "Field `RGUFS` writer - Received Good Unicast Frames Status"] pub type RgufsW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 5 - Received frames CRC error status"]
#[inline (always)] pub fn rfces (& self) -> RfcesR { RfcesR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Received frames alignment error status"]
#[inline (always)] pub fn rfaes (& self) -> RfaesR { RfaesR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 17 - Received Good Unicast Frames Status"]
#[inline (always)] pub fn rgufs (& self) -> RgufsR { RgufsR :: new (((self . bits >> 17) & 1) != 0) } } impl W {
#[doc = "Bit 5 - Received frames CRC error status"]
#[inline (always)] pub fn rfces (& mut self) -> RfcesW < '_ , MmcrirSpec > { RfcesW :: new (self , 5) }
#[doc = "Bit 6 - Received frames alignment error status"]
#[inline (always)] pub fn rfaes (& mut self) -> RfaesW < '_ , MmcrirSpec > { RfaesW :: new (self , 6) }
#[doc = "Bit 17 - Received Good Unicast Frames Status"]
#[inline (always)] pub fn rgufs (& mut self) -> RgufsW < '_ , MmcrirSpec > { RgufsW :: new (self , 17) } }
#[doc = "Ethernet MMC receive interrupt register (ETH_MMCRIR)\n\nYou can [`read`](crate::Reg::read) this register and get [`mmcrir::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mmcrir::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MmcrirSpec ; impl crate :: RegisterSpec for MmcrirSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`mmcrir::R`](R) reader structure"] impl crate :: Readable for MmcrirSpec { }
#[doc = "`write(|w| ..)` method takes [`mmcrir::W`](W) writer structure"] impl crate :: Writable for MmcrirSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MMCRIR to value 0"] impl crate :: Resettable for MmcrirSpec { } }
#[doc = "MMCTIR (rw) register accessor: Ethernet MMC transmit interrupt register (ETH_MMCTIR)\n\nYou can [`read`](crate::Reg::read) this register and get [`mmctir::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mmctir::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mmctir`] module"]
#[doc (alias = "MMCTIR")] pub type Mmctir = crate :: Reg < mmctir :: MmctirSpec > ;
#[doc = "Ethernet MMC transmit interrupt register (ETH_MMCTIR)"] pub mod mmctir {
#[doc = "Register `MMCTIR` reader"] pub type R = crate :: R < MmctirSpec > ;
#[doc = "Register `MMCTIR` writer"] pub type W = crate :: W < MmctirSpec > ;
#[doc = "Field `TGFSCS` reader - Transmitted good frames single collision status"] pub type TgfscsR = crate :: BitReader ;
#[doc = "Field `TGFSCS` writer - Transmitted good frames single collision status"] pub type TgfscsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TGFMSCS` reader - Transmitted good frames more single collision status"] pub type TgfmscsR = crate :: BitReader ;
#[doc = "Field `TGFMSCS` writer - Transmitted good frames more single collision status"] pub type TgfmscsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TGFS` reader - Transmitted good frames status"] pub type TgfsR = crate :: BitReader ;
#[doc = "Field `TGFS` writer - Transmitted good frames status"] pub type TgfsW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 14 - Transmitted good frames single collision status"]
#[inline (always)] pub fn tgfscs (& self) -> TgfscsR { TgfscsR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Transmitted good frames more single collision status"]
#[inline (always)] pub fn tgfmscs (& self) -> TgfmscsR { TgfmscsR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 21 - Transmitted good frames status"]
#[inline (always)] pub fn tgfs (& self) -> TgfsR { TgfsR :: new (((self . bits >> 21) & 1) != 0) } } impl W {
#[doc = "Bit 14 - Transmitted good frames single collision status"]
#[inline (always)] pub fn tgfscs (& mut self) -> TgfscsW < '_ , MmctirSpec > { TgfscsW :: new (self , 14) }
#[doc = "Bit 15 - Transmitted good frames more single collision status"]
#[inline (always)] pub fn tgfmscs (& mut self) -> TgfmscsW < '_ , MmctirSpec > { TgfmscsW :: new (self , 15) }
#[doc = "Bit 21 - Transmitted good frames status"]
#[inline (always)] pub fn tgfs (& mut self) -> TgfsW < '_ , MmctirSpec > { TgfsW :: new (self , 21) } }
#[doc = "Ethernet MMC transmit interrupt register (ETH_MMCTIR)\n\nYou can [`read`](crate::Reg::read) this register and get [`mmctir::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mmctir::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MmctirSpec ; impl crate :: RegisterSpec for MmctirSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`mmctir::R`](R) reader structure"] impl crate :: Readable for MmctirSpec { }
#[doc = "`write(|w| ..)` method takes [`mmctir::W`](W) writer structure"] impl crate :: Writable for MmctirSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MMCTIR to value 0"] impl crate :: Resettable for MmctirSpec { } }
#[doc = "MMCRIMR (rw) register accessor: Ethernet MMC receive interrupt mask register (ETH_MMCRIMR)\n\nYou can [`read`](crate::Reg::read) this register and get [`mmcrimr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mmcrimr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mmcrimr`] module"]
#[doc (alias = "MMCRIMR")] pub type Mmcrimr = crate :: Reg < mmcrimr :: MmcrimrSpec > ;
#[doc = "Ethernet MMC receive interrupt mask register (ETH_MMCRIMR)"] pub mod mmcrimr {
#[doc = "Register `MMCRIMR` reader"] pub type R = crate :: R < MmcrimrSpec > ;
#[doc = "Register `MMCRIMR` writer"] pub type W = crate :: W < MmcrimrSpec > ;
#[doc = "Field `RFCEM` reader - Received frame CRC error mask"] pub type RfcemR = crate :: BitReader ;
#[doc = "Field `RFCEM` writer - Received frame CRC error mask"] pub type RfcemW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RFAEM` reader - Received frames alignment error mask"] pub type RfaemR = crate :: BitReader ;
#[doc = "Field `RFAEM` writer - Received frames alignment error mask"] pub type RfaemW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RGUFM` reader - Received good unicast frames mask"] pub type RgufmR = crate :: BitReader ;
#[doc = "Field `RGUFM` writer - Received good unicast frames mask"] pub type RgufmW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 5 - Received frame CRC error mask"]
#[inline (always)] pub fn rfcem (& self) -> RfcemR { RfcemR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Received frames alignment error mask"]
#[inline (always)] pub fn rfaem (& self) -> RfaemR { RfaemR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 17 - Received good unicast frames mask"]
#[inline (always)] pub fn rgufm (& self) -> RgufmR { RgufmR :: new (((self . bits >> 17) & 1) != 0) } } impl W {
#[doc = "Bit 5 - Received frame CRC error mask"]
#[inline (always)] pub fn rfcem (& mut self) -> RfcemW < '_ , MmcrimrSpec > { RfcemW :: new (self , 5) }
#[doc = "Bit 6 - Received frames alignment error mask"]
#[inline (always)] pub fn rfaem (& mut self) -> RfaemW < '_ , MmcrimrSpec > { RfaemW :: new (self , 6) }
#[doc = "Bit 17 - Received good unicast frames mask"]
#[inline (always)] pub fn rgufm (& mut self) -> RgufmW < '_ , MmcrimrSpec > { RgufmW :: new (self , 17) } }
#[doc = "Ethernet MMC receive interrupt mask register (ETH_MMCRIMR)\n\nYou can [`read`](crate::Reg::read) this register and get [`mmcrimr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mmcrimr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MmcrimrSpec ; impl crate :: RegisterSpec for MmcrimrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`mmcrimr::R`](R) reader structure"] impl crate :: Readable for MmcrimrSpec { }
#[doc = "`write(|w| ..)` method takes [`mmcrimr::W`](W) writer structure"] impl crate :: Writable for MmcrimrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MMCRIMR to value 0"] impl crate :: Resettable for MmcrimrSpec { } }
#[doc = "MMCTIMR (rw) register accessor: Ethernet MMC transmit interrupt mask register (ETH_MMCTIMR)\n\nYou can [`read`](crate::Reg::read) this register and get [`mmctimr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mmctimr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mmctimr`] module"]
#[doc (alias = "MMCTIMR")] pub type Mmctimr = crate :: Reg < mmctimr :: MmctimrSpec > ;
#[doc = "Ethernet MMC transmit interrupt mask register (ETH_MMCTIMR)"] pub mod mmctimr {
#[doc = "Register `MMCTIMR` reader"] pub type R = crate :: R < MmctimrSpec > ;
#[doc = "Register `MMCTIMR` writer"] pub type W = crate :: W < MmctimrSpec > ;
#[doc = "Field `TGFSCM` reader - Transmitted good frames single collision mask"] pub type TgfscmR = crate :: BitReader ;
#[doc = "Field `TGFSCM` writer - Transmitted good frames single collision mask"] pub type TgfscmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TGFMSCM` reader - Transmitted good frames more single collision mask"] pub type TgfmscmR = crate :: BitReader ;
#[doc = "Field `TGFMSCM` writer - Transmitted good frames more single collision mask"] pub type TgfmscmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TGFM` reader - Transmitted good frames mask"] pub type TgfmR = crate :: BitReader ;
#[doc = "Field `TGFM` writer - Transmitted good frames mask"] pub type TgfmW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 14 - Transmitted good frames single collision mask"]
#[inline (always)] pub fn tgfscm (& self) -> TgfscmR { TgfscmR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Transmitted good frames more single collision mask"]
#[inline (always)] pub fn tgfmscm (& self) -> TgfmscmR { TgfmscmR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 21 - Transmitted good frames mask"]
#[inline (always)] pub fn tgfm (& self) -> TgfmR { TgfmR :: new (((self . bits >> 21) & 1) != 0) } } impl W {
#[doc = "Bit 14 - Transmitted good frames single collision mask"]
#[inline (always)] pub fn tgfscm (& mut self) -> TgfscmW < '_ , MmctimrSpec > { TgfscmW :: new (self , 14) }
#[doc = "Bit 15 - Transmitted good frames more single collision mask"]
#[inline (always)] pub fn tgfmscm (& mut self) -> TgfmscmW < '_ , MmctimrSpec > { TgfmscmW :: new (self , 15) }
#[doc = "Bit 21 - Transmitted good frames mask"]
#[inline (always)] pub fn tgfm (& mut self) -> TgfmW < '_ , MmctimrSpec > { TgfmW :: new (self , 21) } }
#[doc = "Ethernet MMC transmit interrupt mask register (ETH_MMCTIMR)\n\nYou can [`read`](crate::Reg::read) this register and get [`mmctimr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mmctimr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MmctimrSpec ; impl crate :: RegisterSpec for MmctimrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`mmctimr::R`](R) reader structure"] impl crate :: Readable for MmctimrSpec { }
#[doc = "`write(|w| ..)` method takes [`mmctimr::W`](W) writer structure"] impl crate :: Writable for MmctimrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MMCTIMR to value 0"] impl crate :: Resettable for MmctimrSpec { } }
#[doc = "MMCTGFSCCR (r) register accessor: Ethernet MMC transmitted good frames after a single collision counter\n\nYou can [`read`](crate::Reg::read) this register and get [`mmctgfsccr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mmctgfsccr`] module"]
#[doc (alias = "MMCTGFSCCR")] pub type Mmctgfsccr = crate :: Reg < mmctgfsccr :: MmctgfsccrSpec > ;
#[doc = "Ethernet MMC transmitted good frames after a single collision counter"] pub mod mmctgfsccr {
#[doc = "Register `MMCTGFSCCR` reader"] pub type R = crate :: R < MmctgfsccrSpec > ;
#[doc = "Field `TGFSCC` reader - Transmitted good frames after a single collision counter"] pub type TgfsccR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - Transmitted good frames after a single collision counter"]
#[inline (always)] pub fn tgfscc (& self) -> TgfsccR { TgfsccR :: new (self . bits) } }
#[doc = "Ethernet MMC transmitted good frames after a single collision counter\n\nYou can [`read`](crate::Reg::read) this register and get [`mmctgfsccr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MmctgfsccrSpec ; impl crate :: RegisterSpec for MmctgfsccrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`mmctgfsccr::R`](R) reader structure"] impl crate :: Readable for MmctgfsccrSpec { }
#[doc = "`reset()` method sets MMCTGFSCCR to value 0"] impl crate :: Resettable for MmctgfsccrSpec { } }
#[doc = "MMCTGFMSCCR (r) register accessor: Ethernet MMC transmitted good frames after more than a single collision\n\nYou can [`read`](crate::Reg::read) this register and get [`mmctgfmsccr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mmctgfmsccr`] module"]
#[doc (alias = "MMCTGFMSCCR")] pub type Mmctgfmsccr = crate :: Reg < mmctgfmsccr :: MmctgfmsccrSpec > ;
#[doc = "Ethernet MMC transmitted good frames after more than a single collision"] pub mod mmctgfmsccr {
#[doc = "Register `MMCTGFMSCCR` reader"] pub type R = crate :: R < MmctgfmsccrSpec > ;
#[doc = "Field `TGFMSCC` reader - Transmitted good frames after more than a single collision counter"] pub type TgfmsccR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - Transmitted good frames after more than a single collision counter"]
#[inline (always)] pub fn tgfmscc (& self) -> TgfmsccR { TgfmsccR :: new (self . bits) } }
#[doc = "Ethernet MMC transmitted good frames after more than a single collision\n\nYou can [`read`](crate::Reg::read) this register and get [`mmctgfmsccr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MmctgfmsccrSpec ; impl crate :: RegisterSpec for MmctgfmsccrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`mmctgfmsccr::R`](R) reader structure"] impl crate :: Readable for MmctgfmsccrSpec { }
#[doc = "`reset()` method sets MMCTGFMSCCR to value 0"] impl crate :: Resettable for MmctgfmsccrSpec { } }
#[doc = "MMCTGFCR (r) register accessor: Ethernet MMC transmitted good frames counter register\n\nYou can [`read`](crate::Reg::read) this register and get [`mmctgfcr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mmctgfcr`] module"]
#[doc (alias = "MMCTGFCR")] pub type Mmctgfcr = crate :: Reg < mmctgfcr :: MmctgfcrSpec > ;
#[doc = "Ethernet MMC transmitted good frames counter register"] pub mod mmctgfcr {
#[doc = "Register `MMCTGFCR` reader"] pub type R = crate :: R < MmctgfcrSpec > ;
#[doc = "Field `TGFC` reader - Transmitted good frames counter"] pub type TgfcR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - Transmitted good frames counter"]
#[inline (always)] pub fn tgfc (& self) -> TgfcR { TgfcR :: new (self . bits) } }
#[doc = "Ethernet MMC transmitted good frames counter register\n\nYou can [`read`](crate::Reg::read) this register and get [`mmctgfcr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MmctgfcrSpec ; impl crate :: RegisterSpec for MmctgfcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`mmctgfcr::R`](R) reader structure"] impl crate :: Readable for MmctgfcrSpec { }
#[doc = "`reset()` method sets MMCTGFCR to value 0"] impl crate :: Resettable for MmctgfcrSpec { } }
#[doc = "MMCRFCECR (r) register accessor: Ethernet MMC received frames with CRC error counter register\n\nYou can [`read`](crate::Reg::read) this register and get [`mmcrfcecr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mmcrfcecr`] module"]
#[doc (alias = "MMCRFCECR")] pub type Mmcrfcecr = crate :: Reg < mmcrfcecr :: MmcrfcecrSpec > ;
#[doc = "Ethernet MMC received frames with CRC error counter register"] pub mod mmcrfcecr {
#[doc = "Register `MMCRFCECR` reader"] pub type R = crate :: R < MmcrfcecrSpec > ;
#[doc = "Field `RFCFC` reader - Received frames with CRC error counter"] pub type RfcfcR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - Received frames with CRC error counter"]
#[inline (always)] pub fn rfcfc (& self) -> RfcfcR { RfcfcR :: new (self . bits) } }
#[doc = "Ethernet MMC received frames with CRC error counter register\n\nYou can [`read`](crate::Reg::read) this register and get [`mmcrfcecr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MmcrfcecrSpec ; impl crate :: RegisterSpec for MmcrfcecrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`mmcrfcecr::R`](R) reader structure"] impl crate :: Readable for MmcrfcecrSpec { }
#[doc = "`reset()` method sets MMCRFCECR to value 0"] impl crate :: Resettable for MmcrfcecrSpec { } }
#[doc = "MMCRFAECR (r) register accessor: Ethernet MMC received frames with alignment error counter register\n\nYou can [`read`](crate::Reg::read) this register and get [`mmcrfaecr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mmcrfaecr`] module"]
#[doc (alias = "MMCRFAECR")] pub type Mmcrfaecr = crate :: Reg < mmcrfaecr :: MmcrfaecrSpec > ;
#[doc = "Ethernet MMC received frames with alignment error counter register"] pub mod mmcrfaecr {
#[doc = "Register `MMCRFAECR` reader"] pub type R = crate :: R < MmcrfaecrSpec > ;
#[doc = "Field `RFAEC` reader - Received frames with alignment error counter"] pub type RfaecR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - Received frames with alignment error counter"]
#[inline (always)] pub fn rfaec (& self) -> RfaecR { RfaecR :: new (self . bits) } }
#[doc = "Ethernet MMC received frames with alignment error counter register\n\nYou can [`read`](crate::Reg::read) this register and get [`mmcrfaecr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MmcrfaecrSpec ; impl crate :: RegisterSpec for MmcrfaecrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`mmcrfaecr::R`](R) reader structure"] impl crate :: Readable for MmcrfaecrSpec { }
#[doc = "`reset()` method sets MMCRFAECR to value 0"] impl crate :: Resettable for MmcrfaecrSpec { } }
#[doc = "MMCRGUFCR (r) register accessor: MMC received good unicast frames counter register\n\nYou can [`read`](crate::Reg::read) this register and get [`mmcrgufcr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mmcrgufcr`] module"]
#[doc (alias = "MMCRGUFCR")] pub type Mmcrgufcr = crate :: Reg < mmcrgufcr :: MmcrgufcrSpec > ;
#[doc = "MMC received good unicast frames counter register"] pub mod mmcrgufcr {
#[doc = "Register `MMCRGUFCR` reader"] pub type R = crate :: R < MmcrgufcrSpec > ;
#[doc = "Field `RGUFC` reader - Received good unicast frames counter"] pub type RgufcR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - Received good unicast frames counter"]
#[inline (always)] pub fn rgufc (& self) -> RgufcR { RgufcR :: new (self . bits) } }
#[doc = "MMC received good unicast frames counter register\n\nYou can [`read`](crate::Reg::read) this register and get [`mmcrgufcr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MmcrgufcrSpec ; impl crate :: RegisterSpec for MmcrgufcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`mmcrgufcr::R`](R) reader structure"] impl crate :: Readable for MmcrgufcrSpec { }
#[doc = "`reset()` method sets MMCRGUFCR to value 0"] impl crate :: Resettable for MmcrgufcrSpec { } } }
#[doc = "Ethernet: media access control"] pub type EthernetMac = crate :: Periph < ethernet_mac :: RegisterBlock , 0x4002_8000 > ; impl core :: fmt :: Debug for EthernetMac { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("EthernetMac") . finish () } }
#[doc = "Ethernet: media access control"] pub mod ethernet_mac {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { maccr : Maccr , macffr : Macffr , machthr : Machthr , machtlr : Machtlr , macmiiar : Macmiiar , macmiidr : Macmiidr , macfcr : Macfcr , macvlantr : Macvlantr , _reserved8 : [u8 ; 0x08] , macrwuffr : Macrwuffr , macpmtcsr : Macpmtcsr , _reserved10 : [u8 ; 0x08] , macsr : Macsr , macimr : Macimr , maca0hr : Maca0hr , maca0lr : Maca0lr , maca1hr : Maca1hr , maca1lr : Maca1lr , maca2hr : Maca2hr , maca2lr : Maca2lr , maca3hr : Maca3hr , maca3lr : Maca3lr , } impl RegisterBlock {
#[doc = "0x00 - Ethernet MAC configuration register (ETH_MACCR)"]
#[inline (always)] pub const fn maccr (& self) -> & Maccr { & self . maccr }
#[doc = "0x04 - Ethernet MAC frame filter register (ETH_MACCFFR)"]
#[inline (always)] pub const fn macffr (& self) -> & Macffr { & self . macffr }
#[doc = "0x08 - Ethernet MAC hash table high register"]
#[inline (always)] pub const fn machthr (& self) -> & Machthr { & self . machthr }
#[doc = "0x0c - Ethernet MAC hash table low register"]
#[inline (always)] pub const fn machtlr (& self) -> & Machtlr { & self . machtlr }
#[doc = "0x10 - Ethernet MAC MII address register (ETH_MACMIIAR)"]
#[inline (always)] pub const fn macmiiar (& self) -> & Macmiiar { & self . macmiiar }
#[doc = "0x14 - Ethernet MAC MII data register (ETH_MACMIIDR)"]
#[inline (always)] pub const fn macmiidr (& self) -> & Macmiidr { & self . macmiidr }
#[doc = "0x18 - Ethernet MAC flow control register (ETH_MACFCR)"]
#[inline (always)] pub const fn macfcr (& self) -> & Macfcr { & self . macfcr }
#[doc = "0x1c - Ethernet MAC VLAN tag register (ETH_MACVLANTR)"]
#[inline (always)] pub const fn macvlantr (& self) -> & Macvlantr { & self . macvlantr }
#[doc = "0x28 - Ethernet MAC remote wakeup frame filter register (ETH_MACRWUFFR)"]
#[inline (always)] pub const fn macrwuffr (& self) -> & Macrwuffr { & self . macrwuffr }
#[doc = "0x2c - Ethernet MAC PMT control and status register (ETH_MACPMTCSR)"]
#[inline (always)] pub const fn macpmtcsr (& self) -> & Macpmtcsr { & self . macpmtcsr }
#[doc = "0x38 - Ethernet MAC interrupt status register (ETH_MACSR)"]
#[inline (always)] pub const fn macsr (& self) -> & Macsr { & self . macsr }
#[doc = "0x3c - Ethernet MAC interrupt mask register (ETH_MACIMR)"]
#[inline (always)] pub const fn macimr (& self) -> & Macimr { & self . macimr }
#[doc = "0x40 - Ethernet MAC address 0 high register (ETH_MACA0HR)"]
#[inline (always)] pub const fn maca0hr (& self) -> & Maca0hr { & self . maca0hr }
#[doc = "0x44 - Ethernet MAC address 0 low register"]
#[inline (always)] pub const fn maca0lr (& self) -> & Maca0lr { & self . maca0lr }
#[doc = "0x48 - Ethernet MAC address 1 high register (ETH_MACA1HR)"]
#[inline (always)] pub const fn maca1hr (& self) -> & Maca1hr { & self . maca1hr }
#[doc = "0x4c - Ethernet MAC address1 low register"]
#[inline (always)] pub const fn maca1lr (& self) -> & Maca1lr { & self . maca1lr }
#[doc = "0x50 - Ethernet MAC address 2 high register (ETH_MACA2HR)"]
#[inline (always)] pub const fn maca2hr (& self) -> & Maca2hr { & self . maca2hr }
#[doc = "0x54 - Ethernet MAC address 2 low register"]
#[inline (always)] pub const fn maca2lr (& self) -> & Maca2lr { & self . maca2lr }
#[doc = "0x58 - Ethernet MAC address 3 high register (ETH_MACA3HR)"]
#[inline (always)] pub const fn maca3hr (& self) -> & Maca3hr { & self . maca3hr }
#[doc = "0x5c - Ethernet MAC address 3 low register"]
#[inline (always)] pub const fn maca3lr (& self) -> & Maca3lr { & self . maca3lr } }
#[doc = "MACCR (rw) register accessor: Ethernet MAC configuration register (ETH_MACCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`maccr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maccr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@maccr`] module"]
#[doc (alias = "MACCR")] pub type Maccr = crate :: Reg < maccr :: MaccrSpec > ;
#[doc = "Ethernet MAC configuration register (ETH_MACCR)"] pub mod maccr {
#[doc = "Register `MACCR` reader"] pub type R = crate :: R < MaccrSpec > ;
#[doc = "Register `MACCR` writer"] pub type W = crate :: W < MaccrSpec > ;
#[doc = "Field `RE` reader - Receiver enable"] pub type ReR = crate :: BitReader ;
#[doc = "Field `RE` writer - Receiver enable"] pub type ReW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TE` reader - Transmitter enable"] pub type TeR = crate :: BitReader ;
#[doc = "Field `TE` writer - Transmitter enable"] pub type TeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DC` reader - Deferral check"] pub type DcR = crate :: BitReader ;
#[doc = "Field `DC` writer - Deferral check"] pub type DcW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BL` reader - Back-off limit"] pub type BlR = crate :: FieldReader ;
#[doc = "Field `BL` writer - Back-off limit"] pub type BlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `APCS` reader - Automatic pad/CRC stripping"] pub type ApcsR = crate :: BitReader ;
#[doc = "Field `APCS` writer - Automatic pad/CRC stripping"] pub type ApcsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RD` reader - Retry disable"] pub type RdR = crate :: BitReader ;
#[doc = "Field `RD` writer - Retry disable"] pub type RdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IPCO` reader - IPv4 checksum offload"] pub type IpcoR = crate :: BitReader ;
#[doc = "Field `IPCO` writer - IPv4 checksum offload"] pub type IpcoW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DM` reader - Duplex mode"] pub type DmR = crate :: BitReader ;
#[doc = "Field `DM` writer - Duplex mode"] pub type DmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `LM` reader - Loopback mode"] pub type LmR = crate :: BitReader ;
#[doc = "Field `LM` writer - Loopback mode"] pub type LmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ROD` reader - Receive own disable"] pub type RodR = crate :: BitReader ;
#[doc = "Field `ROD` writer - Receive own disable"] pub type RodW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FES` reader - Fast Ethernet speed"] pub type FesR = crate :: BitReader ;
#[doc = "Field `FES` writer - Fast Ethernet speed"] pub type FesW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CSD` reader - Carrier sense disable"] pub type CsdR = crate :: BitReader ;
#[doc = "Field `CSD` writer - Carrier sense disable"] pub type CsdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `IFG` reader - Interframe gap"] pub type IfgR = crate :: FieldReader ;
#[doc = "Field `IFG` writer - Interframe gap"] pub type IfgW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `JD` reader - Jabber disable"] pub type JdR = crate :: BitReader ;
#[doc = "Field `JD` writer - Jabber disable"] pub type JdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WD` reader - Watchdog disable"] pub type WdR = crate :: BitReader ;
#[doc = "Field `WD` writer - Watchdog disable"] pub type WdW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 2 - Receiver enable"]
#[inline (always)] pub fn re (& self) -> ReR { ReR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Transmitter enable"]
#[inline (always)] pub fn te (& self) -> TeR { TeR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Deferral check"]
#[inline (always)] pub fn dc (& self) -> DcR { DcR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bits 5:6 - Back-off limit"]
#[inline (always)] pub fn bl (& self) -> BlR { BlR :: new (((self . bits >> 5) & 3) as u8) }
#[doc = "Bit 7 - Automatic pad/CRC stripping"]
#[inline (always)] pub fn apcs (& self) -> ApcsR { ApcsR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 9 - Retry disable"]
#[inline (always)] pub fn rd (& self) -> RdR { RdR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - IPv4 checksum offload"]
#[inline (always)] pub fn ipco (& self) -> IpcoR { IpcoR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - Duplex mode"]
#[inline (always)] pub fn dm (& self) -> DmR { DmR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - Loopback mode"]
#[inline (always)] pub fn lm (& self) -> LmR { LmR :: new (((self . bits >> 12) & 1) != 0) }
#[doc = "Bit 13 - Receive own disable"]
#[inline (always)] pub fn rod (& self) -> RodR { RodR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Fast Ethernet speed"]
#[inline (always)] pub fn fes (& self) -> FesR { FesR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 16 - Carrier sense disable"]
#[inline (always)] pub fn csd (& self) -> CsdR { CsdR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bits 17:19 - Interframe gap"]
#[inline (always)] pub fn ifg (& self) -> IfgR { IfgR :: new (((self . bits >> 17) & 7) as u8) }
#[doc = "Bit 22 - Jabber disable"]
#[inline (always)] pub fn jd (& self) -> JdR { JdR :: new (((self . bits >> 22) & 1) != 0) }
#[doc = "Bit 23 - Watchdog disable"]
#[inline (always)] pub fn wd (& self) -> WdR { WdR :: new (((self . bits >> 23) & 1) != 0) } } impl W {
#[doc = "Bit 2 - Receiver enable"]
#[inline (always)] pub fn re (& mut self) -> ReW < '_ , MaccrSpec > { ReW :: new (self , 2) }
#[doc = "Bit 3 - Transmitter enable"]
#[inline (always)] pub fn te (& mut self) -> TeW < '_ , MaccrSpec > { TeW :: new (self , 3) }
#[doc = "Bit 4 - Deferral check"]
#[inline (always)] pub fn dc (& mut self) -> DcW < '_ , MaccrSpec > { DcW :: new (self , 4) }
#[doc = "Bits 5:6 - Back-off limit"]
#[inline (always)] pub fn bl (& mut self) -> BlW < '_ , MaccrSpec > { BlW :: new (self , 5) }
#[doc = "Bit 7 - Automatic pad/CRC stripping"]
#[inline (always)] pub fn apcs (& mut self) -> ApcsW < '_ , MaccrSpec > { ApcsW :: new (self , 7) }
#[doc = "Bit 9 - Retry disable"]
#[inline (always)] pub fn rd (& mut self) -> RdW < '_ , MaccrSpec > { RdW :: new (self , 9) }
#[doc = "Bit 10 - IPv4 checksum offload"]
#[inline (always)] pub fn ipco (& mut self) -> IpcoW < '_ , MaccrSpec > { IpcoW :: new (self , 10) }
#[doc = "Bit 11 - Duplex mode"]
#[inline (always)] pub fn dm (& mut self) -> DmW < '_ , MaccrSpec > { DmW :: new (self , 11) }
#[doc = "Bit 12 - Loopback mode"]
#[inline (always)] pub fn lm (& mut self) -> LmW < '_ , MaccrSpec > { LmW :: new (self , 12) }
#[doc = "Bit 13 - Receive own disable"]
#[inline (always)] pub fn rod (& mut self) -> RodW < '_ , MaccrSpec > { RodW :: new (self , 13) }
#[doc = "Bit 14 - Fast Ethernet speed"]
#[inline (always)] pub fn fes (& mut self) -> FesW < '_ , MaccrSpec > { FesW :: new (self , 14) }
#[doc = "Bit 16 - Carrier sense disable"]
#[inline (always)] pub fn csd (& mut self) -> CsdW < '_ , MaccrSpec > { CsdW :: new (self , 16) }
#[doc = "Bits 17:19 - Interframe gap"]
#[inline (always)] pub fn ifg (& mut self) -> IfgW < '_ , MaccrSpec > { IfgW :: new (self , 17) }
#[doc = "Bit 22 - Jabber disable"]
#[inline (always)] pub fn jd (& mut self) -> JdW < '_ , MaccrSpec > { JdW :: new (self , 22) }
#[doc = "Bit 23 - Watchdog disable"]
#[inline (always)] pub fn wd (& mut self) -> WdW < '_ , MaccrSpec > { WdW :: new (self , 23) } }
#[doc = "Ethernet MAC configuration register (ETH_MACCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`maccr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maccr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MaccrSpec ; impl crate :: RegisterSpec for MaccrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`maccr::R`](R) reader structure"] impl crate :: Readable for MaccrSpec { }
#[doc = "`write(|w| ..)` method takes [`maccr::W`](W) writer structure"] impl crate :: Writable for MaccrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACCR to value 0x8000"] impl crate :: Resettable for MaccrSpec { const RESET_VALUE : u32 = 0x8000 ; } }
#[doc = "MACFFR (rw) register accessor: Ethernet MAC frame filter register (ETH_MACCFFR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macffr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macffr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@macffr`] module"]
#[doc (alias = "MACFFR")] pub type Macffr = crate :: Reg < macffr :: MacffrSpec > ;
#[doc = "Ethernet MAC frame filter register (ETH_MACCFFR)"] pub mod macffr {
#[doc = "Register `MACFFR` reader"] pub type R = crate :: R < MacffrSpec > ;
#[doc = "Register `MACFFR` writer"] pub type W = crate :: W < MacffrSpec > ;
#[doc = "Field `PM` reader - Promiscuous mode"] pub type PmR = crate :: BitReader ;
#[doc = "Field `PM` writer - Promiscuous mode"] pub type PmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HU` reader - Hash unicast"] pub type HuR = crate :: BitReader ;
#[doc = "Field `HU` writer - Hash unicast"] pub type HuW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HM` reader - Hash multicast"] pub type HmR = crate :: BitReader ;
#[doc = "Field `HM` writer - Hash multicast"] pub type HmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DAIF` reader - Destination address inverse filtering"] pub type DaifR = crate :: BitReader ;
#[doc = "Field `DAIF` writer - Destination address inverse filtering"] pub type DaifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PAM` reader - Pass all multicast"] pub type PamR = crate :: BitReader ;
#[doc = "Field `PAM` writer - Pass all multicast"] pub type PamW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `BFD` reader - Broadcast frames disable"] pub type BfdR = crate :: BitReader ;
#[doc = "Field `BFD` writer - Broadcast frames disable"] pub type BfdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PCF` reader - Pass control frames"] pub type PcfR = crate :: FieldReader ;
#[doc = "Field `PCF` writer - Pass control frames"] pub type PcfW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `SAIF` reader - Source address inverse filtering"] pub type SaifR = crate :: BitReader ;
#[doc = "Field `SAIF` writer - Source address inverse filtering"] pub type SaifW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `SAF` reader - Source address filter"] pub type SafR = crate :: BitReader ;
#[doc = "Field `SAF` writer - Source address filter"] pub type SafW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `HPF` reader - Hash or perfect filter"] pub type HpfR = crate :: BitReader ;
#[doc = "Field `HPF` writer - Hash or perfect filter"] pub type HpfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RA` reader - Receive all"] pub type RaR = crate :: BitReader ;
#[doc = "Field `RA` writer - Receive all"] pub type RaW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Promiscuous mode"]
#[inline (always)] pub fn pm (& self) -> PmR { PmR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Hash unicast"]
#[inline (always)] pub fn hu (& self) -> HuR { HuR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Hash multicast"]
#[inline (always)] pub fn hm (& self) -> HmR { HmR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Destination address inverse filtering"]
#[inline (always)] pub fn daif (& self) -> DaifR { DaifR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Pass all multicast"]
#[inline (always)] pub fn pam (& self) -> PamR { PamR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Broadcast frames disable"]
#[inline (always)] pub fn bfd (& self) -> BfdR { BfdR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bits 6:7 - Pass control frames"]
#[inline (always)] pub fn pcf (& self) -> PcfR { PcfR :: new (((self . bits >> 6) & 3) as u8) }
#[doc = "Bit 8 - Source address inverse filtering"]
#[inline (always)] pub fn saif (& self) -> SaifR { SaifR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Source address filter"]
#[inline (always)] pub fn saf (& self) -> SafR { SafR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Hash or perfect filter"]
#[inline (always)] pub fn hpf (& self) -> HpfR { HpfR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 31 - Receive all"]
#[inline (always)] pub fn ra (& self) -> RaR { RaR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Promiscuous mode"]
#[inline (always)] pub fn pm (& mut self) -> PmW < '_ , MacffrSpec > { PmW :: new (self , 0) }
#[doc = "Bit 1 - Hash unicast"]
#[inline (always)] pub fn hu (& mut self) -> HuW < '_ , MacffrSpec > { HuW :: new (self , 1) }
#[doc = "Bit 2 - Hash multicast"]
#[inline (always)] pub fn hm (& mut self) -> HmW < '_ , MacffrSpec > { HmW :: new (self , 2) }
#[doc = "Bit 3 - Destination address inverse filtering"]
#[inline (always)] pub fn daif (& mut self) -> DaifW < '_ , MacffrSpec > { DaifW :: new (self , 3) }
#[doc = "Bit 4 - Pass all multicast"]
#[inline (always)] pub fn pam (& mut self) -> PamW < '_ , MacffrSpec > { PamW :: new (self , 4) }
#[doc = "Bit 5 - Broadcast frames disable"]
#[inline (always)] pub fn bfd (& mut self) -> BfdW < '_ , MacffrSpec > { BfdW :: new (self , 5) }
#[doc = "Bits 6:7 - Pass control frames"]
#[inline (always)] pub fn pcf (& mut self) -> PcfW < '_ , MacffrSpec > { PcfW :: new (self , 6) }
#[doc = "Bit 8 - Source address inverse filtering"]
#[inline (always)] pub fn saif (& mut self) -> SaifW < '_ , MacffrSpec > { SaifW :: new (self , 8) }
#[doc = "Bit 9 - Source address filter"]
#[inline (always)] pub fn saf (& mut self) -> SafW < '_ , MacffrSpec > { SafW :: new (self , 9) }
#[doc = "Bit 10 - Hash or perfect filter"]
#[inline (always)] pub fn hpf (& mut self) -> HpfW < '_ , MacffrSpec > { HpfW :: new (self , 10) }
#[doc = "Bit 31 - Receive all"]
#[inline (always)] pub fn ra (& mut self) -> RaW < '_ , MacffrSpec > { RaW :: new (self , 31) } }
#[doc = "Ethernet MAC frame filter register (ETH_MACCFFR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macffr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macffr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MacffrSpec ; impl crate :: RegisterSpec for MacffrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`macffr::R`](R) reader structure"] impl crate :: Readable for MacffrSpec { }
#[doc = "`write(|w| ..)` method takes [`macffr::W`](W) writer structure"] impl crate :: Writable for MacffrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACFFR to value 0"] impl crate :: Resettable for MacffrSpec { } }
#[doc = "MACHTHR (rw) register accessor: Ethernet MAC hash table high register\n\nYou can [`read`](crate::Reg::read) this register and get [`machthr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`machthr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@machthr`] module"]
#[doc (alias = "MACHTHR")] pub type Machthr = crate :: Reg < machthr :: MachthrSpec > ;
#[doc = "Ethernet MAC hash table high register"] pub mod machthr {
#[doc = "Register `MACHTHR` reader"] pub type R = crate :: R < MachthrSpec > ;
#[doc = "Register `MACHTHR` writer"] pub type W = crate :: W < MachthrSpec > ;
#[doc = "Field `HTH` reader - Hash table high"] pub type HthR = crate :: FieldReader < u32 > ;
#[doc = "Field `HTH` writer - Hash table high"] pub type HthW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Hash table high"]
#[inline (always)] pub fn hth (& self) -> HthR { HthR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Hash table high"]
#[inline (always)] pub fn hth (& mut self) -> HthW < '_ , MachthrSpec > { HthW :: new (self , 0) } }
#[doc = "Ethernet MAC hash table high register\n\nYou can [`read`](crate::Reg::read) this register and get [`machthr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`machthr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MachthrSpec ; impl crate :: RegisterSpec for MachthrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`machthr::R`](R) reader structure"] impl crate :: Readable for MachthrSpec { }
#[doc = "`write(|w| ..)` method takes [`machthr::W`](W) writer structure"] impl crate :: Writable for MachthrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACHTHR to value 0"] impl crate :: Resettable for MachthrSpec { } }
#[doc = "MACHTLR (rw) register accessor: Ethernet MAC hash table low register\n\nYou can [`read`](crate::Reg::read) this register and get [`machtlr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`machtlr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@machtlr`] module"]
#[doc (alias = "MACHTLR")] pub type Machtlr = crate :: Reg < machtlr :: MachtlrSpec > ;
#[doc = "Ethernet MAC hash table low register"] pub mod machtlr {
#[doc = "Register `MACHTLR` reader"] pub type R = crate :: R < MachtlrSpec > ;
#[doc = "Register `MACHTLR` writer"] pub type W = crate :: W < MachtlrSpec > ;
#[doc = "Field `HTL` reader - Hash table low"] pub type HtlR = crate :: FieldReader < u32 > ;
#[doc = "Field `HTL` writer - Hash table low"] pub type HtlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Hash table low"]
#[inline (always)] pub fn htl (& self) -> HtlR { HtlR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Hash table low"]
#[inline (always)] pub fn htl (& mut self) -> HtlW < '_ , MachtlrSpec > { HtlW :: new (self , 0) } }
#[doc = "Ethernet MAC hash table low register\n\nYou can [`read`](crate::Reg::read) this register and get [`machtlr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`machtlr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MachtlrSpec ; impl crate :: RegisterSpec for MachtlrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`machtlr::R`](R) reader structure"] impl crate :: Readable for MachtlrSpec { }
#[doc = "`write(|w| ..)` method takes [`machtlr::W`](W) writer structure"] impl crate :: Writable for MachtlrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACHTLR to value 0"] impl crate :: Resettable for MachtlrSpec { } }
#[doc = "MACMIIAR (rw) register accessor: Ethernet MAC MII address register (ETH_MACMIIAR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macmiiar::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macmiiar::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@macmiiar`] module"]
#[doc (alias = "MACMIIAR")] pub type Macmiiar = crate :: Reg < macmiiar :: MacmiiarSpec > ;
#[doc = "Ethernet MAC MII address register (ETH_MACMIIAR)"] pub mod macmiiar {
#[doc = "Register `MACMIIAR` reader"] pub type R = crate :: R < MacmiiarSpec > ;
#[doc = "Register `MACMIIAR` writer"] pub type W = crate :: W < MacmiiarSpec > ;
#[doc = "Field `MB` reader - MII busy"] pub type MbR = crate :: BitReader ;
#[doc = "Field `MB` writer - MII busy"] pub type MbW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MW` reader - MII write"] pub type MwR = crate :: BitReader ;
#[doc = "Field `MW` writer - MII write"] pub type MwW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CR` reader - Clock range"] pub type CrR = crate :: FieldReader ;
#[doc = "Field `CR` writer - Clock range"] pub type CrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `MR` reader - MII register"] pub type MrR = crate :: FieldReader ;
#[doc = "Field `MR` writer - MII register"] pub type MrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `PA` reader - PHY address"] pub type PaR = crate :: FieldReader ;
#[doc = "Field `PA` writer - PHY address"] pub type PaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ; impl R {
#[doc = "Bit 0 - MII busy"]
#[inline (always)] pub fn mb (& self) -> MbR { MbR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - MII write"]
#[inline (always)] pub fn mw (& self) -> MwR { MwR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bits 2:4 - Clock range"]
#[inline (always)] pub fn cr (& self) -> CrR { CrR :: new (((self . bits >> 2) & 7) as u8) }
#[doc = "Bits 6:10 - MII register"]
#[inline (always)] pub fn mr (& self) -> MrR { MrR :: new (((self . bits >> 6) & 0x1f) as u8) }
#[doc = "Bits 11:15 - PHY address"]
#[inline (always)] pub fn pa (& self) -> PaR { PaR :: new (((self . bits >> 11) & 0x1f) as u8) } } impl W {
#[doc = "Bit 0 - MII busy"]
#[inline (always)] pub fn mb (& mut self) -> MbW < '_ , MacmiiarSpec > { MbW :: new (self , 0) }
#[doc = "Bit 1 - MII write"]
#[inline (always)] pub fn mw (& mut self) -> MwW < '_ , MacmiiarSpec > { MwW :: new (self , 1) }
#[doc = "Bits 2:4 - Clock range"]
#[inline (always)] pub fn cr (& mut self) -> CrW < '_ , MacmiiarSpec > { CrW :: new (self , 2) }
#[doc = "Bits 6:10 - MII register"]
#[inline (always)] pub fn mr (& mut self) -> MrW < '_ , MacmiiarSpec > { MrW :: new (self , 6) }
#[doc = "Bits 11:15 - PHY address"]
#[inline (always)] pub fn pa (& mut self) -> PaW < '_ , MacmiiarSpec > { PaW :: new (self , 11) } }
#[doc = "Ethernet MAC MII address register (ETH_MACMIIAR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macmiiar::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macmiiar::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MacmiiarSpec ; impl crate :: RegisterSpec for MacmiiarSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`macmiiar::R`](R) reader structure"] impl crate :: Readable for MacmiiarSpec { }
#[doc = "`write(|w| ..)` method takes [`macmiiar::W`](W) writer structure"] impl crate :: Writable for MacmiiarSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACMIIAR to value 0"] impl crate :: Resettable for MacmiiarSpec { } }
#[doc = "MACMIIDR (rw) register accessor: Ethernet MAC MII data register (ETH_MACMIIDR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macmiidr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macmiidr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@macmiidr`] module"]
#[doc (alias = "MACMIIDR")] pub type Macmiidr = crate :: Reg < macmiidr :: MacmiidrSpec > ;
#[doc = "Ethernet MAC MII data register (ETH_MACMIIDR)"] pub mod macmiidr {
#[doc = "Register `MACMIIDR` reader"] pub type R = crate :: R < MacmiidrSpec > ;
#[doc = "Register `MACMIIDR` writer"] pub type W = crate :: W < MacmiidrSpec > ;
#[doc = "Field `MD` reader - MII data"] pub type MdR = crate :: FieldReader < u16 > ;
#[doc = "Field `MD` writer - MII data"] pub type MdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bits 0:15 - MII data"]
#[inline (always)] pub fn md (& self) -> MdR { MdR :: new ((self . bits & 0xffff) as u16) } } impl W {
#[doc = "Bits 0:15 - MII data"]
#[inline (always)] pub fn md (& mut self) -> MdW < '_ , MacmiidrSpec > { MdW :: new (self , 0) } }
#[doc = "Ethernet MAC MII data register (ETH_MACMIIDR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macmiidr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macmiidr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MacmiidrSpec ; impl crate :: RegisterSpec for MacmiidrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`macmiidr::R`](R) reader structure"] impl crate :: Readable for MacmiidrSpec { }
#[doc = "`write(|w| ..)` method takes [`macmiidr::W`](W) writer structure"] impl crate :: Writable for MacmiidrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACMIIDR to value 0"] impl crate :: Resettable for MacmiidrSpec { } }
#[doc = "MACFCR (rw) register accessor: Ethernet MAC flow control register (ETH_MACFCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macfcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macfcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@macfcr`] module"]
#[doc (alias = "MACFCR")] pub type Macfcr = crate :: Reg < macfcr :: MacfcrSpec > ;
#[doc = "Ethernet MAC flow control register (ETH_MACFCR)"] pub mod macfcr {
#[doc = "Register `MACFCR` reader"] pub type R = crate :: R < MacfcrSpec > ;
#[doc = "Register `MACFCR` writer"] pub type W = crate :: W < MacfcrSpec > ;
#[doc = "Field `FCB_BPA` reader - Flow control busy/back pressure activate"] pub type FcbBpaR = crate :: BitReader ;
#[doc = "Field `FCB_BPA` writer - Flow control busy/back pressure activate"] pub type FcbBpaW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TFCE` reader - Transmit flow control enable"] pub type TfceR = crate :: BitReader ;
#[doc = "Field `TFCE` writer - Transmit flow control enable"] pub type TfceW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RFCE` reader - Receive flow control enable"] pub type RfceR = crate :: BitReader ;
#[doc = "Field `RFCE` writer - Receive flow control enable"] pub type RfceW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `UPFD` reader - Unicast pause frame detect"] pub type UpfdR = crate :: BitReader ;
#[doc = "Field `UPFD` writer - Unicast pause frame detect"] pub type UpfdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PLT` reader - Pause low threshold"] pub type PltR = crate :: FieldReader ;
#[doc = "Field `PLT` writer - Pause low threshold"] pub type PltW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `ZQPD` reader - Zero-quanta pause disable"] pub type ZqpdR = crate :: BitReader ;
#[doc = "Field `ZQPD` writer - Zero-quanta pause disable"] pub type ZqpdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PT` reader - Pass control frames"] pub type PtR = crate :: FieldReader < u16 > ;
#[doc = "Field `PT` writer - Pass control frames"] pub type PtW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ; impl R {
#[doc = "Bit 0 - Flow control busy/back pressure activate"]
#[inline (always)] pub fn fcb_bpa (& self) -> FcbBpaR { FcbBpaR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Transmit flow control enable"]
#[inline (always)] pub fn tfce (& self) -> TfceR { TfceR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Receive flow control enable"]
#[inline (always)] pub fn rfce (& self) -> RfceR { RfceR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Unicast pause frame detect"]
#[inline (always)] pub fn upfd (& self) -> UpfdR { UpfdR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bits 4:5 - Pause low threshold"]
#[inline (always)] pub fn plt (& self) -> PltR { PltR :: new (((self . bits >> 4) & 3) as u8) }
#[doc = "Bit 7 - Zero-quanta pause disable"]
#[inline (always)] pub fn zqpd (& self) -> ZqpdR { ZqpdR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bits 16:31 - Pass control frames"]
#[inline (always)] pub fn pt (& self) -> PtR { PtR :: new (((self . bits >> 16) & 0xffff) as u16) } } impl W {
#[doc = "Bit 0 - Flow control busy/back pressure activate"]
#[inline (always)] pub fn fcb_bpa (& mut self) -> FcbBpaW < '_ , MacfcrSpec > { FcbBpaW :: new (self , 0) }
#[doc = "Bit 1 - Transmit flow control enable"]
#[inline (always)] pub fn tfce (& mut self) -> TfceW < '_ , MacfcrSpec > { TfceW :: new (self , 1) }
#[doc = "Bit 2 - Receive flow control enable"]
#[inline (always)] pub fn rfce (& mut self) -> RfceW < '_ , MacfcrSpec > { RfceW :: new (self , 2) }
#[doc = "Bit 3 - Unicast pause frame detect"]
#[inline (always)] pub fn upfd (& mut self) -> UpfdW < '_ , MacfcrSpec > { UpfdW :: new (self , 3) }
#[doc = "Bits 4:5 - Pause low threshold"]
#[inline (always)] pub fn plt (& mut self) -> PltW < '_ , MacfcrSpec > { PltW :: new (self , 4) }
#[doc = "Bit 7 - Zero-quanta pause disable"]
#[inline (always)] pub fn zqpd (& mut self) -> ZqpdW < '_ , MacfcrSpec > { ZqpdW :: new (self , 7) }
#[doc = "Bits 16:31 - Pass control frames"]
#[inline (always)] pub fn pt (& mut self) -> PtW < '_ , MacfcrSpec > { PtW :: new (self , 16) } }
#[doc = "Ethernet MAC flow control register (ETH_MACFCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macfcr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macfcr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MacfcrSpec ; impl crate :: RegisterSpec for MacfcrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`macfcr::R`](R) reader structure"] impl crate :: Readable for MacfcrSpec { }
#[doc = "`write(|w| ..)` method takes [`macfcr::W`](W) writer structure"] impl crate :: Writable for MacfcrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACFCR to value 0"] impl crate :: Resettable for MacfcrSpec { } }
#[doc = "MACVLANTR (rw) register accessor: Ethernet MAC VLAN tag register (ETH_MACVLANTR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macvlantr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macvlantr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@macvlantr`] module"]
#[doc (alias = "MACVLANTR")] pub type Macvlantr = crate :: Reg < macvlantr :: MacvlantrSpec > ;
#[doc = "Ethernet MAC VLAN tag register (ETH_MACVLANTR)"] pub mod macvlantr {
#[doc = "Register `MACVLANTR` reader"] pub type R = crate :: R < MacvlantrSpec > ;
#[doc = "Register `MACVLANTR` writer"] pub type W = crate :: W < MacvlantrSpec > ;
#[doc = "Field `VLANTI` reader - VLAN tag identifier (for receive frames)"] pub type VlantiR = crate :: FieldReader < u16 > ;
#[doc = "Field `VLANTI` writer - VLAN tag identifier (for receive frames)"] pub type VlantiW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ;
#[doc = "Field `VLANTC` reader - 12-bit VLAN tag comparison"] pub type VlantcR = crate :: BitReader ;
#[doc = "Field `VLANTC` writer - 12-bit VLAN tag comparison"] pub type VlantcW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:15 - VLAN tag identifier (for receive frames)"]
#[inline (always)] pub fn vlanti (& self) -> VlantiR { VlantiR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bit 16 - 12-bit VLAN tag comparison"]
#[inline (always)] pub fn vlantc (& self) -> VlantcR { VlantcR :: new (((self . bits >> 16) & 1) != 0) } } impl W {
#[doc = "Bits 0:15 - VLAN tag identifier (for receive frames)"]
#[inline (always)] pub fn vlanti (& mut self) -> VlantiW < '_ , MacvlantrSpec > { VlantiW :: new (self , 0) }
#[doc = "Bit 16 - 12-bit VLAN tag comparison"]
#[inline (always)] pub fn vlantc (& mut self) -> VlantcW < '_ , MacvlantrSpec > { VlantcW :: new (self , 16) } }
#[doc = "Ethernet MAC VLAN tag register (ETH_MACVLANTR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macvlantr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macvlantr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MacvlantrSpec ; impl crate :: RegisterSpec for MacvlantrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`macvlantr::R`](R) reader structure"] impl crate :: Readable for MacvlantrSpec { }
#[doc = "`write(|w| ..)` method takes [`macvlantr::W`](W) writer structure"] impl crate :: Writable for MacvlantrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACVLANTR to value 0"] impl crate :: Resettable for MacvlantrSpec { } }
#[doc = "MACRWUFFR (rw) register accessor: Ethernet MAC remote wakeup frame filter register (ETH_MACRWUFFR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macrwuffr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macrwuffr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@macrwuffr`] module"]
#[doc (alias = "MACRWUFFR")] pub type Macrwuffr = crate :: Reg < macrwuffr :: MacrwuffrSpec > ;
#[doc = "Ethernet MAC remote wakeup frame filter register (ETH_MACRWUFFR)"] pub mod macrwuffr {
#[doc = "Register `MACRWUFFR` reader"] pub type R = crate :: R < MacrwuffrSpec > ;
#[doc = "Register `MACRWUFFR` writer"] pub type W = crate :: W < MacrwuffrSpec > ; impl core :: fmt :: Debug for R { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { write ! (f , "{}" , self . bits ()) } } impl W { }
#[doc = "Ethernet MAC remote wakeup frame filter register (ETH_MACRWUFFR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macrwuffr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macrwuffr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MacrwuffrSpec ; impl crate :: RegisterSpec for MacrwuffrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`macrwuffr::R`](R) reader structure"] impl crate :: Readable for MacrwuffrSpec { }
#[doc = "`write(|w| ..)` method takes [`macrwuffr::W`](W) writer structure"] impl crate :: Writable for MacrwuffrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACRWUFFR to value 0"] impl crate :: Resettable for MacrwuffrSpec { } }
#[doc = "MACPMTCSR (rw) register accessor: Ethernet MAC PMT control and status register (ETH_MACPMTCSR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macpmtcsr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macpmtcsr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@macpmtcsr`] module"]
#[doc (alias = "MACPMTCSR")] pub type Macpmtcsr = crate :: Reg < macpmtcsr :: MacpmtcsrSpec > ;
#[doc = "Ethernet MAC PMT control and status register (ETH_MACPMTCSR)"] pub mod macpmtcsr {
#[doc = "Register `MACPMTCSR` reader"] pub type R = crate :: R < MacpmtcsrSpec > ;
#[doc = "Register `MACPMTCSR` writer"] pub type W = crate :: W < MacpmtcsrSpec > ;
#[doc = "Field `PD` reader - Power down"] pub type PdR = crate :: BitReader ;
#[doc = "Field `PD` writer - Power down"] pub type PdW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MPE` reader - Magic Packet enable"] pub type MpeR = crate :: BitReader ;
#[doc = "Field `MPE` writer - Magic Packet enable"] pub type MpeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WFE` reader - Wakeup frame enable"] pub type WfeR = crate :: BitReader ;
#[doc = "Field `WFE` writer - Wakeup frame enable"] pub type WfeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MPR` reader - Magic packet received"] pub type MprR = crate :: BitReader ;
#[doc = "Field `MPR` writer - Magic packet received"] pub type MprW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WFR` reader - Wakeup frame received"] pub type WfrR = crate :: BitReader ;
#[doc = "Field `WFR` writer - Wakeup frame received"] pub type WfrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `GU` reader - Global unicast"] pub type GuR = crate :: BitReader ;
#[doc = "Field `GU` writer - Global unicast"] pub type GuW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `WFFRPR` reader - Wakeup frame filter register pointer reset"] pub type WffrprR = crate :: BitReader ;
#[doc = "Field `WFFRPR` writer - Wakeup frame filter register pointer reset"] pub type WffrprW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Power down"]
#[inline (always)] pub fn pd (& self) -> PdR { PdR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Magic Packet enable"]
#[inline (always)] pub fn mpe (& self) -> MpeR { MpeR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Wakeup frame enable"]
#[inline (always)] pub fn wfe (& self) -> WfeR { WfeR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 5 - Magic packet received"]
#[inline (always)] pub fn mpr (& self) -> MprR { MprR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Wakeup frame received"]
#[inline (always)] pub fn wfr (& self) -> WfrR { WfrR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 9 - Global unicast"]
#[inline (always)] pub fn gu (& self) -> GuR { GuR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 31 - Wakeup frame filter register pointer reset"]
#[inline (always)] pub fn wffrpr (& self) -> WffrprR { WffrprR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Power down"]
#[inline (always)] pub fn pd (& mut self) -> PdW < '_ , MacpmtcsrSpec > { PdW :: new (self , 0) }
#[doc = "Bit 1 - Magic Packet enable"]
#[inline (always)] pub fn mpe (& mut self) -> MpeW < '_ , MacpmtcsrSpec > { MpeW :: new (self , 1) }
#[doc = "Bit 2 - Wakeup frame enable"]
#[inline (always)] pub fn wfe (& mut self) -> WfeW < '_ , MacpmtcsrSpec > { WfeW :: new (self , 2) }
#[doc = "Bit 5 - Magic packet received"]
#[inline (always)] pub fn mpr (& mut self) -> MprW < '_ , MacpmtcsrSpec > { MprW :: new (self , 5) }
#[doc = "Bit 6 - Wakeup frame received"]
#[inline (always)] pub fn wfr (& mut self) -> WfrW < '_ , MacpmtcsrSpec > { WfrW :: new (self , 6) }
#[doc = "Bit 9 - Global unicast"]
#[inline (always)] pub fn gu (& mut self) -> GuW < '_ , MacpmtcsrSpec > { GuW :: new (self , 9) }
#[doc = "Bit 31 - Wakeup frame filter register pointer reset"]
#[inline (always)] pub fn wffrpr (& mut self) -> WffrprW < '_ , MacpmtcsrSpec > { WffrprW :: new (self , 31) } }
#[doc = "Ethernet MAC PMT control and status register (ETH_MACPMTCSR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macpmtcsr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macpmtcsr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MacpmtcsrSpec ; impl crate :: RegisterSpec for MacpmtcsrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`macpmtcsr::R`](R) reader structure"] impl crate :: Readable for MacpmtcsrSpec { }
#[doc = "`write(|w| ..)` method takes [`macpmtcsr::W`](W) writer structure"] impl crate :: Writable for MacpmtcsrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACPMTCSR to value 0"] impl crate :: Resettable for MacpmtcsrSpec { } }
#[doc = "MACSR (rw) register accessor: Ethernet MAC interrupt status register (ETH_MACSR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macsr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macsr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@macsr`] module"]
#[doc (alias = "MACSR")] pub type Macsr = crate :: Reg < macsr :: MacsrSpec > ;
#[doc = "Ethernet MAC interrupt status register (ETH_MACSR)"] pub mod macsr {
#[doc = "Register `MACSR` reader"] pub type R = crate :: R < MacsrSpec > ;
#[doc = "Register `MACSR` writer"] pub type W = crate :: W < MacsrSpec > ;
#[doc = "Field `PMTS` reader - PMT status"] pub type PmtsR = crate :: BitReader ;
#[doc = "Field `PMTS` writer - PMT status"] pub type PmtsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MMCS` reader - MMC status"] pub type MmcsR = crate :: BitReader ;
#[doc = "Field `MMCS` writer - MMC status"] pub type MmcsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MMCRS` reader - MMC receive status"] pub type MmcrsR = crate :: BitReader ;
#[doc = "Field `MMCRS` writer - MMC receive status"] pub type MmcrsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `MMCTS` reader - MMC transmit status"] pub type MmctsR = crate :: BitReader ;
#[doc = "Field `MMCTS` writer - MMC transmit status"] pub type MmctsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TSTS` reader - Time stamp trigger status"] pub type TstsR = crate :: BitReader ;
#[doc = "Field `TSTS` writer - Time stamp trigger status"] pub type TstsW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 3 - PMT status"]
#[inline (always)] pub fn pmts (& self) -> PmtsR { PmtsR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - MMC status"]
#[inline (always)] pub fn mmcs (& self) -> MmcsR { MmcsR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - MMC receive status"]
#[inline (always)] pub fn mmcrs (& self) -> MmcrsR { MmcrsR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - MMC transmit status"]
#[inline (always)] pub fn mmcts (& self) -> MmctsR { MmctsR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 9 - Time stamp trigger status"]
#[inline (always)] pub fn tsts (& self) -> TstsR { TstsR :: new (((self . bits >> 9) & 1) != 0) } } impl W {
#[doc = "Bit 3 - PMT status"]
#[inline (always)] pub fn pmts (& mut self) -> PmtsW < '_ , MacsrSpec > { PmtsW :: new (self , 3) }
#[doc = "Bit 4 - MMC status"]
#[inline (always)] pub fn mmcs (& mut self) -> MmcsW < '_ , MacsrSpec > { MmcsW :: new (self , 4) }
#[doc = "Bit 5 - MMC receive status"]
#[inline (always)] pub fn mmcrs (& mut self) -> MmcrsW < '_ , MacsrSpec > { MmcrsW :: new (self , 5) }
#[doc = "Bit 6 - MMC transmit status"]
#[inline (always)] pub fn mmcts (& mut self) -> MmctsW < '_ , MacsrSpec > { MmctsW :: new (self , 6) }
#[doc = "Bit 9 - Time stamp trigger status"]
#[inline (always)] pub fn tsts (& mut self) -> TstsW < '_ , MacsrSpec > { TstsW :: new (self , 9) } }
#[doc = "Ethernet MAC interrupt status register (ETH_MACSR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macsr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macsr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MacsrSpec ; impl crate :: RegisterSpec for MacsrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`macsr::R`](R) reader structure"] impl crate :: Readable for MacsrSpec { }
#[doc = "`write(|w| ..)` method takes [`macsr::W`](W) writer structure"] impl crate :: Writable for MacsrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACSR to value 0"] impl crate :: Resettable for MacsrSpec { } }
#[doc = "MACIMR (rw) register accessor: Ethernet MAC interrupt mask register (ETH_MACIMR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macimr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macimr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@macimr`] module"]
#[doc (alias = "MACIMR")] pub type Macimr = crate :: Reg < macimr :: MacimrSpec > ;
#[doc = "Ethernet MAC interrupt mask register (ETH_MACIMR)"] pub mod macimr {
#[doc = "Register `MACIMR` reader"] pub type R = crate :: R < MacimrSpec > ;
#[doc = "Register `MACIMR` writer"] pub type W = crate :: W < MacimrSpec > ;
#[doc = "Field `PMTIM` reader - PMT interrupt mask"] pub type PmtimR = crate :: BitReader ;
#[doc = "Field `PMTIM` writer - PMT interrupt mask"] pub type PmtimW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TSTIM` reader - Time stamp trigger interrupt mask"] pub type TstimR = crate :: BitReader ;
#[doc = "Field `TSTIM` writer - Time stamp trigger interrupt mask"] pub type TstimW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 3 - PMT interrupt mask"]
#[inline (always)] pub fn pmtim (& self) -> PmtimR { PmtimR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 9 - Time stamp trigger interrupt mask"]
#[inline (always)] pub fn tstim (& self) -> TstimR { TstimR :: new (((self . bits >> 9) & 1) != 0) } } impl W {
#[doc = "Bit 3 - PMT interrupt mask"]
#[inline (always)] pub fn pmtim (& mut self) -> PmtimW < '_ , MacimrSpec > { PmtimW :: new (self , 3) }
#[doc = "Bit 9 - Time stamp trigger interrupt mask"]
#[inline (always)] pub fn tstim (& mut self) -> TstimW < '_ , MacimrSpec > { TstimW :: new (self , 9) } }
#[doc = "Ethernet MAC interrupt mask register (ETH_MACIMR)\n\nYou can [`read`](crate::Reg::read) this register and get [`macimr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macimr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct MacimrSpec ; impl crate :: RegisterSpec for MacimrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`macimr::R`](R) reader structure"] impl crate :: Readable for MacimrSpec { }
#[doc = "`write(|w| ..)` method takes [`macimr::W`](W) writer structure"] impl crate :: Writable for MacimrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACIMR to value 0"] impl crate :: Resettable for MacimrSpec { } }
#[doc = "MACA0HR (rw) register accessor: Ethernet MAC address 0 high register (ETH_MACA0HR)\n\nYou can [`read`](crate::Reg::read) this register and get [`maca0hr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca0hr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@maca0hr`] module"]
#[doc (alias = "MACA0HR")] pub type Maca0hr = crate :: Reg < maca0hr :: Maca0hrSpec > ;
#[doc = "Ethernet MAC address 0 high register (ETH_MACA0HR)"] pub mod maca0hr {
#[doc = "Register `MACA0HR` reader"] pub type R = crate :: R < Maca0hrSpec > ;
#[doc = "Register `MACA0HR` writer"] pub type W = crate :: W < Maca0hrSpec > ;
#[doc = "Field `MACA0H` reader - MAC address0 high"] pub type Maca0hR = crate :: FieldReader < u16 > ;
#[doc = "Field `MACA0H` writer - MAC address0 high"] pub type Maca0hW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ;
#[doc = "Field `MO` reader - Always 1"] pub type MoR = crate :: BitReader ; impl R {
#[doc = "Bits 0:15 - MAC address0 high"]
#[inline (always)] pub fn maca0h (& self) -> Maca0hR { Maca0hR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bit 31 - Always 1"]
#[inline (always)] pub fn mo (& self) -> MoR { MoR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:15 - MAC address0 high"]
#[inline (always)] pub fn maca0h (& mut self) -> Maca0hW < '_ , Maca0hrSpec > { Maca0hW :: new (self , 0) } }
#[doc = "Ethernet MAC address 0 high register (ETH_MACA0HR)\n\nYou can [`read`](crate::Reg::read) this register and get [`maca0hr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca0hr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Maca0hrSpec ; impl crate :: RegisterSpec for Maca0hrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`maca0hr::R`](R) reader structure"] impl crate :: Readable for Maca0hrSpec { }
#[doc = "`write(|w| ..)` method takes [`maca0hr::W`](W) writer structure"] impl crate :: Writable for Maca0hrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACA0HR to value 0x0010_ffff"] impl crate :: Resettable for Maca0hrSpec { const RESET_VALUE : u32 = 0x0010_ffff ; } }
#[doc = "MACA0LR (rw) register accessor: Ethernet MAC address 0 low register\n\nYou can [`read`](crate::Reg::read) this register and get [`maca0lr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca0lr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@maca0lr`] module"]
#[doc (alias = "MACA0LR")] pub type Maca0lr = crate :: Reg < maca0lr :: Maca0lrSpec > ;
#[doc = "Ethernet MAC address 0 low register"] pub mod maca0lr {
#[doc = "Register `MACA0LR` reader"] pub type R = crate :: R < Maca0lrSpec > ;
#[doc = "Register `MACA0LR` writer"] pub type W = crate :: W < Maca0lrSpec > ;
#[doc = "Field `MACA0L` reader - MAC address0 low"] pub type Maca0lR = crate :: FieldReader < u32 > ;
#[doc = "Field `MACA0L` writer - MAC address0 low"] pub type Maca0lW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - MAC address0 low"]
#[inline (always)] pub fn maca0l (& self) -> Maca0lR { Maca0lR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - MAC address0 low"]
#[inline (always)] pub fn maca0l (& mut self) -> Maca0lW < '_ , Maca0lrSpec > { Maca0lW :: new (self , 0) } }
#[doc = "Ethernet MAC address 0 low register\n\nYou can [`read`](crate::Reg::read) this register and get [`maca0lr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca0lr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Maca0lrSpec ; impl crate :: RegisterSpec for Maca0lrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`maca0lr::R`](R) reader structure"] impl crate :: Readable for Maca0lrSpec { }
#[doc = "`write(|w| ..)` method takes [`maca0lr::W`](W) writer structure"] impl crate :: Writable for Maca0lrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACA0LR to value 0xffff_ffff"] impl crate :: Resettable for Maca0lrSpec { const RESET_VALUE : u32 = 0xffff_ffff ; } }
#[doc = "MACA1HR (rw) register accessor: Ethernet MAC address 1 high register (ETH_MACA1HR)\n\nYou can [`read`](crate::Reg::read) this register and get [`maca1hr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca1hr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@maca1hr`] module"]
#[doc (alias = "MACA1HR")] pub type Maca1hr = crate :: Reg < maca1hr :: Maca1hrSpec > ;
#[doc = "Ethernet MAC address 1 high register (ETH_MACA1HR)"] pub mod maca1hr {
#[doc = "Register `MACA1HR` reader"] pub type R = crate :: R < Maca1hrSpec > ;
#[doc = "Register `MACA1HR` writer"] pub type W = crate :: W < Maca1hrSpec > ;
#[doc = "Field `MACA1H` reader - MAC address1 high"] pub type Maca1hR = crate :: FieldReader < u16 > ;
#[doc = "Field `MACA1H` writer - MAC address1 high"] pub type Maca1hW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ;
#[doc = "Field `MBC` reader - Mask byte control"] pub type MbcR = crate :: FieldReader ;
#[doc = "Field `MBC` writer - Mask byte control"] pub type MbcW < 'a , REG > = crate :: FieldWriter < 'a , REG , 6 > ;
#[doc = "Field `SA` reader - Source address"] pub type SaR = crate :: BitReader ;
#[doc = "Field `SA` writer - Source address"] pub type SaW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AE` reader - Address enable"] pub type AeR = crate :: BitReader ;
#[doc = "Field `AE` writer - Address enable"] pub type AeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:15 - MAC address1 high"]
#[inline (always)] pub fn maca1h (& self) -> Maca1hR { Maca1hR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 24:29 - Mask byte control"]
#[inline (always)] pub fn mbc (& self) -> MbcR { MbcR :: new (((self . bits >> 24) & 0x3f) as u8) }
#[doc = "Bit 30 - Source address"]
#[inline (always)] pub fn sa (& self) -> SaR { SaR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Address enable"]
#[inline (always)] pub fn ae (& self) -> AeR { AeR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:15 - MAC address1 high"]
#[inline (always)] pub fn maca1h (& mut self) -> Maca1hW < '_ , Maca1hrSpec > { Maca1hW :: new (self , 0) }
#[doc = "Bits 24:29 - Mask byte control"]
#[inline (always)] pub fn mbc (& mut self) -> MbcW < '_ , Maca1hrSpec > { MbcW :: new (self , 24) }
#[doc = "Bit 30 - Source address"]
#[inline (always)] pub fn sa (& mut self) -> SaW < '_ , Maca1hrSpec > { SaW :: new (self , 30) }
#[doc = "Bit 31 - Address enable"]
#[inline (always)] pub fn ae (& mut self) -> AeW < '_ , Maca1hrSpec > { AeW :: new (self , 31) } }
#[doc = "Ethernet MAC address 1 high register (ETH_MACA1HR)\n\nYou can [`read`](crate::Reg::read) this register and get [`maca1hr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca1hr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Maca1hrSpec ; impl crate :: RegisterSpec for Maca1hrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`maca1hr::R`](R) reader structure"] impl crate :: Readable for Maca1hrSpec { }
#[doc = "`write(|w| ..)` method takes [`maca1hr::W`](W) writer structure"] impl crate :: Writable for Maca1hrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACA1HR to value 0xffff"] impl crate :: Resettable for Maca1hrSpec { const RESET_VALUE : u32 = 0xffff ; } }
#[doc = "MACA1LR (rw) register accessor: Ethernet MAC address1 low register\n\nYou can [`read`](crate::Reg::read) this register and get [`maca1lr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca1lr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@maca1lr`] module"]
#[doc (alias = "MACA1LR")] pub type Maca1lr = crate :: Reg < maca1lr :: Maca1lrSpec > ;
#[doc = "Ethernet MAC address1 low register"] pub mod maca1lr {
#[doc = "Register `MACA1LR` reader"] pub type R = crate :: R < Maca1lrSpec > ;
#[doc = "Register `MACA1LR` writer"] pub type W = crate :: W < Maca1lrSpec > ;
#[doc = "Field `MACA1L` reader - MAC address1 low"] pub type Maca1lR = crate :: FieldReader < u32 > ;
#[doc = "Field `MACA1L` writer - MAC address1 low"] pub type Maca1lW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - MAC address1 low"]
#[inline (always)] pub fn maca1l (& self) -> Maca1lR { Maca1lR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - MAC address1 low"]
#[inline (always)] pub fn maca1l (& mut self) -> Maca1lW < '_ , Maca1lrSpec > { Maca1lW :: new (self , 0) } }
#[doc = "Ethernet MAC address1 low register\n\nYou can [`read`](crate::Reg::read) this register and get [`maca1lr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca1lr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Maca1lrSpec ; impl crate :: RegisterSpec for Maca1lrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`maca1lr::R`](R) reader structure"] impl crate :: Readable for Maca1lrSpec { }
#[doc = "`write(|w| ..)` method takes [`maca1lr::W`](W) writer structure"] impl crate :: Writable for Maca1lrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACA1LR to value 0xffff_ffff"] impl crate :: Resettable for Maca1lrSpec { const RESET_VALUE : u32 = 0xffff_ffff ; } }
#[doc = "MACA2HR (rw) register accessor: Ethernet MAC address 2 high register (ETH_MACA2HR)\n\nYou can [`read`](crate::Reg::read) this register and get [`maca2hr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca2hr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@maca2hr`] module"]
#[doc (alias = "MACA2HR")] pub type Maca2hr = crate :: Reg < maca2hr :: Maca2hrSpec > ;
#[doc = "Ethernet MAC address 2 high register (ETH_MACA2HR)"] pub mod maca2hr {
#[doc = "Register `MACA2HR` reader"] pub type R = crate :: R < Maca2hrSpec > ;
#[doc = "Register `MACA2HR` writer"] pub type W = crate :: W < Maca2hrSpec > ;
#[doc = "Field `ETH_MACA2HR` reader - Ethernet MAC address 2 high register"] pub type EthMaca2hrR = crate :: FieldReader < u16 > ;
#[doc = "Field `ETH_MACA2HR` writer - Ethernet MAC address 2 high register"] pub type EthMaca2hrW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ;
#[doc = "Field `MBC` reader - Mask byte control"] pub type MbcR = crate :: FieldReader ;
#[doc = "Field `MBC` writer - Mask byte control"] pub type MbcW < 'a , REG > = crate :: FieldWriter < 'a , REG , 6 > ;
#[doc = "Field `SA` reader - Source address"] pub type SaR = crate :: BitReader ;
#[doc = "Field `SA` writer - Source address"] pub type SaW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AE` reader - Address enable"] pub type AeR = crate :: BitReader ;
#[doc = "Field `AE` writer - Address enable"] pub type AeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:15 - Ethernet MAC address 2 high register"]
#[inline (always)] pub fn eth_maca2hr (& self) -> EthMaca2hrR { EthMaca2hrR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 24:29 - Mask byte control"]
#[inline (always)] pub fn mbc (& self) -> MbcR { MbcR :: new (((self . bits >> 24) & 0x3f) as u8) }
#[doc = "Bit 30 - Source address"]
#[inline (always)] pub fn sa (& self) -> SaR { SaR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Address enable"]
#[inline (always)] pub fn ae (& self) -> AeR { AeR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:15 - Ethernet MAC address 2 high register"]
#[inline (always)] pub fn eth_maca2hr (& mut self) -> EthMaca2hrW < '_ , Maca2hrSpec > { EthMaca2hrW :: new (self , 0) }
#[doc = "Bits 24:29 - Mask byte control"]
#[inline (always)] pub fn mbc (& mut self) -> MbcW < '_ , Maca2hrSpec > { MbcW :: new (self , 24) }
#[doc = "Bit 30 - Source address"]
#[inline (always)] pub fn sa (& mut self) -> SaW < '_ , Maca2hrSpec > { SaW :: new (self , 30) }
#[doc = "Bit 31 - Address enable"]
#[inline (always)] pub fn ae (& mut self) -> AeW < '_ , Maca2hrSpec > { AeW :: new (self , 31) } }
#[doc = "Ethernet MAC address 2 high register (ETH_MACA2HR)\n\nYou can [`read`](crate::Reg::read) this register and get [`maca2hr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca2hr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Maca2hrSpec ; impl crate :: RegisterSpec for Maca2hrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`maca2hr::R`](R) reader structure"] impl crate :: Readable for Maca2hrSpec { }
#[doc = "`write(|w| ..)` method takes [`maca2hr::W`](W) writer structure"] impl crate :: Writable for Maca2hrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACA2HR to value 0x50"] impl crate :: Resettable for Maca2hrSpec { const RESET_VALUE : u32 = 0x50 ; } }
#[doc = "MACA2LR (rw) register accessor: Ethernet MAC address 2 low register\n\nYou can [`read`](crate::Reg::read) this register and get [`maca2lr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca2lr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@maca2lr`] module"]
#[doc (alias = "MACA2LR")] pub type Maca2lr = crate :: Reg < maca2lr :: Maca2lrSpec > ;
#[doc = "Ethernet MAC address 2 low register"] pub mod maca2lr {
#[doc = "Register `MACA2LR` reader"] pub type R = crate :: R < Maca2lrSpec > ;
#[doc = "Register `MACA2LR` writer"] pub type W = crate :: W < Maca2lrSpec > ;
#[doc = "Field `MACA2L` reader - MAC address2 low"] pub type Maca2lR = crate :: FieldReader < u32 > ;
#[doc = "Field `MACA2L` writer - MAC address2 low"] pub type Maca2lW < 'a , REG > = crate :: FieldWriter < 'a , REG , 31 , u32 > ; impl R {
#[doc = "Bits 0:30 - MAC address2 low"]
#[inline (always)] pub fn maca2l (& self) -> Maca2lR { Maca2lR :: new (self . bits & 0x7fff_ffff) } } impl W {
#[doc = "Bits 0:30 - MAC address2 low"]
#[inline (always)] pub fn maca2l (& mut self) -> Maca2lW < '_ , Maca2lrSpec > { Maca2lW :: new (self , 0) } }
#[doc = "Ethernet MAC address 2 low register\n\nYou can [`read`](crate::Reg::read) this register and get [`maca2lr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca2lr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Maca2lrSpec ; impl crate :: RegisterSpec for Maca2lrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`maca2lr::R`](R) reader structure"] impl crate :: Readable for Maca2lrSpec { }
#[doc = "`write(|w| ..)` method takes [`maca2lr::W`](W) writer structure"] impl crate :: Writable for Maca2lrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACA2LR to value 0xffff_ffff"] impl crate :: Resettable for Maca2lrSpec { const RESET_VALUE : u32 = 0xffff_ffff ; } }
#[doc = "MACA3HR (rw) register accessor: Ethernet MAC address 3 high register (ETH_MACA3HR)\n\nYou can [`read`](crate::Reg::read) this register and get [`maca3hr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca3hr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@maca3hr`] module"]
#[doc (alias = "MACA3HR")] pub type Maca3hr = crate :: Reg < maca3hr :: Maca3hrSpec > ;
#[doc = "Ethernet MAC address 3 high register (ETH_MACA3HR)"] pub mod maca3hr {
#[doc = "Register `MACA3HR` reader"] pub type R = crate :: R < Maca3hrSpec > ;
#[doc = "Register `MACA3HR` writer"] pub type W = crate :: W < Maca3hrSpec > ;
#[doc = "Field `MACA3H` reader - MAC address3 high"] pub type Maca3hR = crate :: FieldReader < u16 > ;
#[doc = "Field `MACA3H` writer - MAC address3 high"] pub type Maca3hW < 'a , REG > = crate :: FieldWriter < 'a , REG , 16 , u16 > ;
#[doc = "Field `MBC` reader - Mask byte control"] pub type MbcR = crate :: FieldReader ;
#[doc = "Field `MBC` writer - Mask byte control"] pub type MbcW < 'a , REG > = crate :: FieldWriter < 'a , REG , 6 > ;
#[doc = "Field `SA` reader - Source address"] pub type SaR = crate :: BitReader ;
#[doc = "Field `SA` writer - Source address"] pub type SaW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AE` reader - Address enable"] pub type AeR = crate :: BitReader ;
#[doc = "Field `AE` writer - Address enable"] pub type AeW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:15 - MAC address3 high"]
#[inline (always)] pub fn maca3h (& self) -> Maca3hR { Maca3hR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bits 24:29 - Mask byte control"]
#[inline (always)] pub fn mbc (& self) -> MbcR { MbcR :: new (((self . bits >> 24) & 0x3f) as u8) }
#[doc = "Bit 30 - Source address"]
#[inline (always)] pub fn sa (& self) -> SaR { SaR :: new (((self . bits >> 30) & 1) != 0) }
#[doc = "Bit 31 - Address enable"]
#[inline (always)] pub fn ae (& self) -> AeR { AeR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:15 - MAC address3 high"]
#[inline (always)] pub fn maca3h (& mut self) -> Maca3hW < '_ , Maca3hrSpec > { Maca3hW :: new (self , 0) }
#[doc = "Bits 24:29 - Mask byte control"]
#[inline (always)] pub fn mbc (& mut self) -> MbcW < '_ , Maca3hrSpec > { MbcW :: new (self , 24) }
#[doc = "Bit 30 - Source address"]
#[inline (always)] pub fn sa (& mut self) -> SaW < '_ , Maca3hrSpec > { SaW :: new (self , 30) }
#[doc = "Bit 31 - Address enable"]
#[inline (always)] pub fn ae (& mut self) -> AeW < '_ , Maca3hrSpec > { AeW :: new (self , 31) } }
#[doc = "Ethernet MAC address 3 high register (ETH_MACA3HR)\n\nYou can [`read`](crate::Reg::read) this register and get [`maca3hr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca3hr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Maca3hrSpec ; impl crate :: RegisterSpec for Maca3hrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`maca3hr::R`](R) reader structure"] impl crate :: Readable for Maca3hrSpec { }
#[doc = "`write(|w| ..)` method takes [`maca3hr::W`](W) writer structure"] impl crate :: Writable for Maca3hrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACA3HR to value 0xffff"] impl crate :: Resettable for Maca3hrSpec { const RESET_VALUE : u32 = 0xffff ; } }
#[doc = "MACA3LR (rw) register accessor: Ethernet MAC address 3 low register\n\nYou can [`read`](crate::Reg::read) this register and get [`maca3lr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca3lr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@maca3lr`] module"]
#[doc (alias = "MACA3LR")] pub type Maca3lr = crate :: Reg < maca3lr :: Maca3lrSpec > ;
#[doc = "Ethernet MAC address 3 low register"] pub mod maca3lr {
#[doc = "Register `MACA3LR` reader"] pub type R = crate :: R < Maca3lrSpec > ;
#[doc = "Register `MACA3LR` writer"] pub type W = crate :: W < Maca3lrSpec > ;
#[doc = "Field `MBCA3L` reader - MAC address3 low"] pub type Mbca3lR = crate :: FieldReader < u32 > ;
#[doc = "Field `MBCA3L` writer - MAC address3 low"] pub type Mbca3lW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - MAC address3 low"]
#[inline (always)] pub fn mbca3l (& self) -> Mbca3lR { Mbca3lR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - MAC address3 low"]
#[inline (always)] pub fn mbca3l (& mut self) -> Mbca3lW < '_ , Maca3lrSpec > { Mbca3lW :: new (self , 0) } }
#[doc = "Ethernet MAC address 3 low register\n\nYou can [`read`](crate::Reg::read) this register and get [`maca3lr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`maca3lr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Maca3lrSpec ; impl crate :: RegisterSpec for Maca3lrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`maca3lr::R`](R) reader structure"] impl crate :: Readable for Maca3lrSpec { }
#[doc = "`write(|w| ..)` method takes [`maca3lr::W`](W) writer structure"] impl crate :: Writable for Maca3lrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets MACA3LR to value 0xffff_ffff"] impl crate :: Resettable for Maca3lrSpec { const RESET_VALUE : u32 = 0xffff_ffff ; } } }
#[doc = "Ethernet: Precision time protocol"] pub type EthernetPtp = crate :: Periph < ethernet_ptp :: RegisterBlock , 0x4002_8700 > ; impl core :: fmt :: Debug for EthernetPtp { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("EthernetPtp") . finish () } }
#[doc = "Ethernet: Precision time protocol"] pub mod ethernet_ptp {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { ptptscr : Ptptscr , ptpssir : Ptpssir , ptptshr : Ptptshr , ptptslr : Ptptslr , ptptshur : Ptptshur , ptptslur : Ptptslur , ptptsar : Ptptsar , ptptthr : Ptptthr , ptpttlr : Ptpttlr , } impl RegisterBlock {
#[doc = "0x00 - Ethernet PTP time stamp control register (ETH_PTPTSCR)"]
#[inline (always)] pub const fn ptptscr (& self) -> & Ptptscr { & self . ptptscr }
#[doc = "0x04 - Ethernet PTP subsecond increment register"]
#[inline (always)] pub const fn ptpssir (& self) -> & Ptpssir { & self . ptpssir }
#[doc = "0x08 - Ethernet PTP time stamp high register"]
#[inline (always)] pub const fn ptptshr (& self) -> & Ptptshr { & self . ptptshr }
#[doc = "0x0c - Ethernet PTP time stamp low register (ETH_PTPTSLR)"]
#[inline (always)] pub const fn ptptslr (& self) -> & Ptptslr { & self . ptptslr }
#[doc = "0x10 - Ethernet PTP time stamp high update register"]
#[inline (always)] pub const fn ptptshur (& self) -> & Ptptshur { & self . ptptshur }
#[doc = "0x14 - Ethernet PTP time stamp low update register (ETH_PTPTSLUR)"]
#[inline (always)] pub const fn ptptslur (& self) -> & Ptptslur { & self . ptptslur }
#[doc = "0x18 - Ethernet PTP time stamp addend register"]
#[inline (always)] pub const fn ptptsar (& self) -> & Ptptsar { & self . ptptsar }
#[doc = "0x1c - Ethernet PTP target time high register"]
#[inline (always)] pub const fn ptptthr (& self) -> & Ptptthr { & self . ptptthr }
#[doc = "0x20 - Ethernet PTP target time low register"]
#[inline (always)] pub const fn ptpttlr (& self) -> & Ptpttlr { & self . ptpttlr } }
#[doc = "PTPTSCR (rw) register accessor: Ethernet PTP time stamp control register (ETH_PTPTSCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptscr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptscr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ptptscr`] module"]
#[doc (alias = "PTPTSCR")] pub type Ptptscr = crate :: Reg < ptptscr :: PtptscrSpec > ;
#[doc = "Ethernet PTP time stamp control register (ETH_PTPTSCR)"] pub mod ptptscr {
#[doc = "Register `PTPTSCR` reader"] pub type R = crate :: R < PtptscrSpec > ;
#[doc = "Register `PTPTSCR` writer"] pub type W = crate :: W < PtptscrSpec > ;
#[doc = "Field `TSE` reader - Time stamp enable"] pub type TseR = crate :: BitReader ;
#[doc = "Field `TSE` writer - Time stamp enable"] pub type TseW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TSFCU` reader - Time stamp fine or coarse update"] pub type TsfcuR = crate :: BitReader ;
#[doc = "Field `TSFCU` writer - Time stamp fine or coarse update"] pub type TsfcuW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TSSTI` reader - Time stamp system time initialize"] pub type TsstiR = crate :: BitReader ;
#[doc = "Field `TSSTI` writer - Time stamp system time initialize"] pub type TsstiW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TSSTU` reader - Time stamp system time update"] pub type TsstuR = crate :: BitReader ;
#[doc = "Field `TSSTU` writer - Time stamp system time update"] pub type TsstuW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TSITE` reader - Time stamp interrupt trigger enable"] pub type TsiteR = crate :: BitReader ;
#[doc = "Field `TSITE` writer - Time stamp interrupt trigger enable"] pub type TsiteW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TSARU` reader - Time stamp addend register update"] pub type TsaruR = crate :: BitReader ;
#[doc = "Field `TSARU` writer - Time stamp addend register update"] pub type TsaruW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Time stamp enable"]
#[inline (always)] pub fn tse (& self) -> TseR { TseR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Time stamp fine or coarse update"]
#[inline (always)] pub fn tsfcu (& self) -> TsfcuR { TsfcuR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Time stamp system time initialize"]
#[inline (always)] pub fn tssti (& self) -> TsstiR { TsstiR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Time stamp system time update"]
#[inline (always)] pub fn tsstu (& self) -> TsstuR { TsstuR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Time stamp interrupt trigger enable"]
#[inline (always)] pub fn tsite (& self) -> TsiteR { TsiteR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Time stamp addend register update"]
#[inline (always)] pub fn tsaru (& self) -> TsaruR { TsaruR :: new (((self . bits >> 5) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Time stamp enable"]
#[inline (always)] pub fn tse (& mut self) -> TseW < '_ , PtptscrSpec > { TseW :: new (self , 0) }
#[doc = "Bit 1 - Time stamp fine or coarse update"]
#[inline (always)] pub fn tsfcu (& mut self) -> TsfcuW < '_ , PtptscrSpec > { TsfcuW :: new (self , 1) }
#[doc = "Bit 2 - Time stamp system time initialize"]
#[inline (always)] pub fn tssti (& mut self) -> TsstiW < '_ , PtptscrSpec > { TsstiW :: new (self , 2) }
#[doc = "Bit 3 - Time stamp system time update"]
#[inline (always)] pub fn tsstu (& mut self) -> TsstuW < '_ , PtptscrSpec > { TsstuW :: new (self , 3) }
#[doc = "Bit 4 - Time stamp interrupt trigger enable"]
#[inline (always)] pub fn tsite (& mut self) -> TsiteW < '_ , PtptscrSpec > { TsiteW :: new (self , 4) }
#[doc = "Bit 5 - Time stamp addend register update"]
#[inline (always)] pub fn tsaru (& mut self) -> TsaruW < '_ , PtptscrSpec > { TsaruW :: new (self , 5) } }
#[doc = "Ethernet PTP time stamp control register (ETH_PTPTSCR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptscr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptscr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PtptscrSpec ; impl crate :: RegisterSpec for PtptscrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ptptscr::R`](R) reader structure"] impl crate :: Readable for PtptscrSpec { }
#[doc = "`write(|w| ..)` method takes [`ptptscr::W`](W) writer structure"] impl crate :: Writable for PtptscrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PTPTSCR to value 0"] impl crate :: Resettable for PtptscrSpec { } }
#[doc = "PTPSSIR (rw) register accessor: Ethernet PTP subsecond increment register\n\nYou can [`read`](crate::Reg::read) this register and get [`ptpssir::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptpssir::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ptpssir`] module"]
#[doc (alias = "PTPSSIR")] pub type Ptpssir = crate :: Reg < ptpssir :: PtpssirSpec > ;
#[doc = "Ethernet PTP subsecond increment register"] pub mod ptpssir {
#[doc = "Register `PTPSSIR` reader"] pub type R = crate :: R < PtpssirSpec > ;
#[doc = "Register `PTPSSIR` writer"] pub type W = crate :: W < PtpssirSpec > ;
#[doc = "Field `STSSI` reader - System time subsecond increment"] pub type StssiR = crate :: FieldReader ;
#[doc = "Field `STSSI` writer - System time subsecond increment"] pub type StssiW < 'a , REG > = crate :: FieldWriter < 'a , REG , 8 > ; impl R {
#[doc = "Bits 0:7 - System time subsecond increment"]
#[inline (always)] pub fn stssi (& self) -> StssiR { StssiR :: new ((self . bits & 0xff) as u8) } } impl W {
#[doc = "Bits 0:7 - System time subsecond increment"]
#[inline (always)] pub fn stssi (& mut self) -> StssiW < '_ , PtpssirSpec > { StssiW :: new (self , 0) } }
#[doc = "Ethernet PTP subsecond increment register\n\nYou can [`read`](crate::Reg::read) this register and get [`ptpssir::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptpssir::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PtpssirSpec ; impl crate :: RegisterSpec for PtpssirSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ptpssir::R`](R) reader structure"] impl crate :: Readable for PtpssirSpec { }
#[doc = "`write(|w| ..)` method takes [`ptpssir::W`](W) writer structure"] impl crate :: Writable for PtpssirSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PTPSSIR to value 0"] impl crate :: Resettable for PtpssirSpec { } }
#[doc = "PTPTSHR (r) register accessor: Ethernet PTP time stamp high register\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptshr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ptptshr`] module"]
#[doc (alias = "PTPTSHR")] pub type Ptptshr = crate :: Reg < ptptshr :: PtptshrSpec > ;
#[doc = "Ethernet PTP time stamp high register"] pub mod ptptshr {
#[doc = "Register `PTPTSHR` reader"] pub type R = crate :: R < PtptshrSpec > ;
#[doc = "Field `STS` reader - System time second"] pub type StsR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - System time second"]
#[inline (always)] pub fn sts (& self) -> StsR { StsR :: new (self . bits) } }
#[doc = "Ethernet PTP time stamp high register\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptshr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PtptshrSpec ; impl crate :: RegisterSpec for PtptshrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ptptshr::R`](R) reader structure"] impl crate :: Readable for PtptshrSpec { }
#[doc = "`reset()` method sets PTPTSHR to value 0"] impl crate :: Resettable for PtptshrSpec { } }
#[doc = "PTPTSLR (r) register accessor: Ethernet PTP time stamp low register (ETH_PTPTSLR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptslr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ptptslr`] module"]
#[doc (alias = "PTPTSLR")] pub type Ptptslr = crate :: Reg < ptptslr :: PtptslrSpec > ;
#[doc = "Ethernet PTP time stamp low register (ETH_PTPTSLR)"] pub mod ptptslr {
#[doc = "Register `PTPTSLR` reader"] pub type R = crate :: R < PtptslrSpec > ;
#[doc = "Field `STSS` reader - System time subseconds"] pub type StssR = crate :: FieldReader < u32 > ;
#[doc = "Field `STPNS` reader - System time positive or negative sign"] pub type StpnsR = crate :: BitReader ; impl R {
#[doc = "Bits 0:30 - System time subseconds"]
#[inline (always)] pub fn stss (& self) -> StssR { StssR :: new (self . bits & 0x7fff_ffff) }
#[doc = "Bit 31 - System time positive or negative sign"]
#[inline (always)] pub fn stpns (& self) -> StpnsR { StpnsR :: new (((self . bits >> 31) & 1) != 0) } }
#[doc = "Ethernet PTP time stamp low register (ETH_PTPTSLR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptslr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PtptslrSpec ; impl crate :: RegisterSpec for PtptslrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ptptslr::R`](R) reader structure"] impl crate :: Readable for PtptslrSpec { }
#[doc = "`reset()` method sets PTPTSLR to value 0"] impl crate :: Resettable for PtptslrSpec { } }
#[doc = "PTPTSHUR (rw) register accessor: Ethernet PTP time stamp high update register\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptshur::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptshur::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ptptshur`] module"]
#[doc (alias = "PTPTSHUR")] pub type Ptptshur = crate :: Reg < ptptshur :: PtptshurSpec > ;
#[doc = "Ethernet PTP time stamp high update register"] pub mod ptptshur {
#[doc = "Register `PTPTSHUR` reader"] pub type R = crate :: R < PtptshurSpec > ;
#[doc = "Register `PTPTSHUR` writer"] pub type W = crate :: W < PtptshurSpec > ;
#[doc = "Field `TSUS` reader - Time stamp update second"] pub type TsusR = crate :: FieldReader < u32 > ;
#[doc = "Field `TSUS` writer - Time stamp update second"] pub type TsusW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Time stamp update second"]
#[inline (always)] pub fn tsus (& self) -> TsusR { TsusR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Time stamp update second"]
#[inline (always)] pub fn tsus (& mut self) -> TsusW < '_ , PtptshurSpec > { TsusW :: new (self , 0) } }
#[doc = "Ethernet PTP time stamp high update register\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptshur::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptshur::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PtptshurSpec ; impl crate :: RegisterSpec for PtptshurSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ptptshur::R`](R) reader structure"] impl crate :: Readable for PtptshurSpec { }
#[doc = "`write(|w| ..)` method takes [`ptptshur::W`](W) writer structure"] impl crate :: Writable for PtptshurSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PTPTSHUR to value 0"] impl crate :: Resettable for PtptshurSpec { } }
#[doc = "PTPTSLUR (rw) register accessor: Ethernet PTP time stamp low update register (ETH_PTPTSLUR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptslur::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptslur::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ptptslur`] module"]
#[doc (alias = "PTPTSLUR")] pub type Ptptslur = crate :: Reg < ptptslur :: PtptslurSpec > ;
#[doc = "Ethernet PTP time stamp low update register (ETH_PTPTSLUR)"] pub mod ptptslur {
#[doc = "Register `PTPTSLUR` reader"] pub type R = crate :: R < PtptslurSpec > ;
#[doc = "Register `PTPTSLUR` writer"] pub type W = crate :: W < PtptslurSpec > ;
#[doc = "Field `TSUSS` reader - Time stamp update subseconds"] pub type TsussR = crate :: FieldReader < u32 > ;
#[doc = "Field `TSUSS` writer - Time stamp update subseconds"] pub type TsussW < 'a , REG > = crate :: FieldWriter < 'a , REG , 31 , u32 > ;
#[doc = "Field `TSUPNS` reader - Time stamp update positive or negative sign"] pub type TsupnsR = crate :: BitReader ;
#[doc = "Field `TSUPNS` writer - Time stamp update positive or negative sign"] pub type TsupnsW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bits 0:30 - Time stamp update subseconds"]
#[inline (always)] pub fn tsuss (& self) -> TsussR { TsussR :: new (self . bits & 0x7fff_ffff) }
#[doc = "Bit 31 - Time stamp update positive or negative sign"]
#[inline (always)] pub fn tsupns (& self) -> TsupnsR { TsupnsR :: new (((self . bits >> 31) & 1) != 0) } } impl W {
#[doc = "Bits 0:30 - Time stamp update subseconds"]
#[inline (always)] pub fn tsuss (& mut self) -> TsussW < '_ , PtptslurSpec > { TsussW :: new (self , 0) }
#[doc = "Bit 31 - Time stamp update positive or negative sign"]
#[inline (always)] pub fn tsupns (& mut self) -> TsupnsW < '_ , PtptslurSpec > { TsupnsW :: new (self , 31) } }
#[doc = "Ethernet PTP time stamp low update register (ETH_PTPTSLUR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptslur::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptslur::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PtptslurSpec ; impl crate :: RegisterSpec for PtptslurSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ptptslur::R`](R) reader structure"] impl crate :: Readable for PtptslurSpec { }
#[doc = "`write(|w| ..)` method takes [`ptptslur::W`](W) writer structure"] impl crate :: Writable for PtptslurSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PTPTSLUR to value 0"] impl crate :: Resettable for PtptslurSpec { } }
#[doc = "PTPTSAR (rw) register accessor: Ethernet PTP time stamp addend register\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptsar::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptsar::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ptptsar`] module"]
#[doc (alias = "PTPTSAR")] pub type Ptptsar = crate :: Reg < ptptsar :: PtptsarSpec > ;
#[doc = "Ethernet PTP time stamp addend register"] pub mod ptptsar {
#[doc = "Register `PTPTSAR` reader"] pub type R = crate :: R < PtptsarSpec > ;
#[doc = "Register `PTPTSAR` writer"] pub type W = crate :: W < PtptsarSpec > ;
#[doc = "Field `TSA` reader - Time stamp addend"] pub type TsaR = crate :: FieldReader < u32 > ;
#[doc = "Field `TSA` writer - Time stamp addend"] pub type TsaW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Time stamp addend"]
#[inline (always)] pub fn tsa (& self) -> TsaR { TsaR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Time stamp addend"]
#[inline (always)] pub fn tsa (& mut self) -> TsaW < '_ , PtptsarSpec > { TsaW :: new (self , 0) } }
#[doc = "Ethernet PTP time stamp addend register\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptsar::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptsar::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PtptsarSpec ; impl crate :: RegisterSpec for PtptsarSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ptptsar::R`](R) reader structure"] impl crate :: Readable for PtptsarSpec { }
#[doc = "`write(|w| ..)` method takes [`ptptsar::W`](W) writer structure"] impl crate :: Writable for PtptsarSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PTPTSAR to value 0"] impl crate :: Resettable for PtptsarSpec { } }
#[doc = "PTPTTHR (rw) register accessor: Ethernet PTP target time high register\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptthr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptthr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ptptthr`] module"]
#[doc (alias = "PTPTTHR")] pub type Ptptthr = crate :: Reg < ptptthr :: PtptthrSpec > ;
#[doc = "Ethernet PTP target time high register"] pub mod ptptthr {
#[doc = "Register `PTPTTHR` reader"] pub type R = crate :: R < PtptthrSpec > ;
#[doc = "Register `PTPTTHR` writer"] pub type W = crate :: W < PtptthrSpec > ;
#[doc = "Field `TTSH` reader - Target time stamp high"] pub type TtshR = crate :: FieldReader < u32 > ;
#[doc = "Field `TTSH` writer - Target time stamp high"] pub type TtshW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Target time stamp high"]
#[inline (always)] pub fn ttsh (& self) -> TtshR { TtshR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Target time stamp high"]
#[inline (always)] pub fn ttsh (& mut self) -> TtshW < '_ , PtptthrSpec > { TtshW :: new (self , 0) } }
#[doc = "Ethernet PTP target time high register\n\nYou can [`read`](crate::Reg::read) this register and get [`ptptthr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptptthr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PtptthrSpec ; impl crate :: RegisterSpec for PtptthrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ptptthr::R`](R) reader structure"] impl crate :: Readable for PtptthrSpec { }
#[doc = "`write(|w| ..)` method takes [`ptptthr::W`](W) writer structure"] impl crate :: Writable for PtptthrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PTPTTHR to value 0"] impl crate :: Resettable for PtptthrSpec { } }
#[doc = "PTPTTLR (rw) register accessor: Ethernet PTP target time low register\n\nYou can [`read`](crate::Reg::read) this register and get [`ptpttlr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptpttlr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ptpttlr`] module"]
#[doc (alias = "PTPTTLR")] pub type Ptpttlr = crate :: Reg < ptpttlr :: PtpttlrSpec > ;
#[doc = "Ethernet PTP target time low register"] pub mod ptpttlr {
#[doc = "Register `PTPTTLR` reader"] pub type R = crate :: R < PtpttlrSpec > ;
#[doc = "Register `PTPTTLR` writer"] pub type W = crate :: W < PtpttlrSpec > ;
#[doc = "Field `TTSL` reader - Target time stamp low"] pub type TtslR = crate :: FieldReader < u32 > ;
#[doc = "Field `TTSL` writer - Target time stamp low"] pub type TtslW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Target time stamp low"]
#[inline (always)] pub fn ttsl (& self) -> TtslR { TtslR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Target time stamp low"]
#[inline (always)] pub fn ttsl (& mut self) -> TtslW < '_ , PtpttlrSpec > { TtslW :: new (self , 0) } }
#[doc = "Ethernet PTP target time low register\n\nYou can [`read`](crate::Reg::read) this register and get [`ptpttlr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ptpttlr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct PtpttlrSpec ; impl crate :: RegisterSpec for PtpttlrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ptpttlr::R`](R) reader structure"] impl crate :: Readable for PtpttlrSpec { }
#[doc = "`write(|w| ..)` method takes [`ptpttlr::W`](W) writer structure"] impl crate :: Writable for PtpttlrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets PTPTTLR to value 0"] impl crate :: Resettable for PtpttlrSpec { } } }
#[doc = "Ethernet: DMA controller operation"] pub type EthernetDma = crate :: Periph < ethernet_dma :: RegisterBlock , 0x4002_9000 > ; impl core :: fmt :: Debug for EthernetDma { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("EthernetDma") . finish () } }
#[doc = "Ethernet: DMA controller operation"] pub mod ethernet_dma {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { dmabmr : Dmabmr , dmatpdr : Dmatpdr , dmarpdr : Dmarpdr , dmardlar : Dmardlar , dmatdlar : Dmatdlar , dmasr : Dmasr , dmaomr : Dmaomr , dmaier : Dmaier , dmamfbocr : Dmamfbocr , _reserved9 : [u8 ; 0x24] , dmachtdr : Dmachtdr , dmachrdr : Dmachrdr , dmachtbar : Dmachtbar , dmachrbar : Dmachrbar , } impl RegisterBlock {
#[doc = "0x00 - Ethernet DMA bus mode register"]
#[inline (always)] pub const fn dmabmr (& self) -> & Dmabmr { & self . dmabmr }
#[doc = "0x04 - Ethernet DMA transmit poll demand register"]
#[inline (always)] pub const fn dmatpdr (& self) -> & Dmatpdr { & self . dmatpdr }
#[doc = "0x08 - EHERNET DMA receive poll demand register"]
#[inline (always)] pub const fn dmarpdr (& self) -> & Dmarpdr { & self . dmarpdr }
#[doc = "0x0c - Ethernet DMA receive descriptor list address register"]
#[inline (always)] pub const fn dmardlar (& self) -> & Dmardlar { & self . dmardlar }
#[doc = "0x10 - Ethernet DMA transmit descriptor list address register"]
#[inline (always)] pub const fn dmatdlar (& self) -> & Dmatdlar { & self . dmatdlar }
#[doc = "0x14 - Ethernet DMA status register"]
#[inline (always)] pub const fn dmasr (& self) -> & Dmasr { & self . dmasr }
#[doc = "0x18 - Ethernet DMA operation mode register"]
#[inline (always)] pub const fn dmaomr (& self) -> & Dmaomr { & self . dmaomr }
#[doc = "0x1c - Ethernet DMA interrupt enable register"]
#[inline (always)] pub const fn dmaier (& self) -> & Dmaier { & self . dmaier }
#[doc = "0x20 - Ethernet DMA missed frame and buffer overflow counter register"]
#[inline (always)] pub const fn dmamfbocr (& self) -> & Dmamfbocr { & self . dmamfbocr }
#[doc = "0x48 - Ethernet DMA current host transmit descriptor register"]
#[inline (always)] pub const fn dmachtdr (& self) -> & Dmachtdr { & self . dmachtdr }
#[doc = "0x4c - Ethernet DMA current host receive descriptor register"]
#[inline (always)] pub const fn dmachrdr (& self) -> & Dmachrdr { & self . dmachrdr }
#[doc = "0x50 - Ethernet DMA current host transmit buffer address register"]
#[inline (always)] pub const fn dmachtbar (& self) -> & Dmachtbar { & self . dmachtbar }
#[doc = "0x54 - Ethernet DMA current host receive buffer address register"]
#[inline (always)] pub const fn dmachrbar (& self) -> & Dmachrbar { & self . dmachrbar } }
#[doc = "DMABMR (rw) register accessor: Ethernet DMA bus mode register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmabmr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmabmr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmabmr`] module"]
#[doc (alias = "DMABMR")] pub type Dmabmr = crate :: Reg < dmabmr :: DmabmrSpec > ;
#[doc = "Ethernet DMA bus mode register"] pub mod dmabmr {
#[doc = "Register `DMABMR` reader"] pub type R = crate :: R < DmabmrSpec > ;
#[doc = "Register `DMABMR` writer"] pub type W = crate :: W < DmabmrSpec > ;
#[doc = "Field `SR` reader - Software reset"] pub type SrR = crate :: BitReader ;
#[doc = "Field `SR` writer - Software reset"] pub type SrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DA` reader - DMA Arbitration"] pub type DaR = crate :: BitReader ;
#[doc = "Field `DA` writer - DMA Arbitration"] pub type DaW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DSL` reader - Descriptor skip length"] pub type DslR = crate :: FieldReader ;
#[doc = "Field `DSL` writer - Descriptor skip length"] pub type DslW < 'a , REG > = crate :: FieldWriter < 'a , REG , 5 > ;
#[doc = "Field `PBL` reader - Programmable burst length"] pub type PblR = crate :: FieldReader ;
#[doc = "Field `PBL` writer - Programmable burst length"] pub type PblW < 'a , REG > = crate :: FieldWriter < 'a , REG , 6 > ;
#[doc = "Field `RTPR` reader - Rx Tx priority ratio"] pub type RtprR = crate :: FieldReader ;
#[doc = "Field `RTPR` writer - Rx Tx priority ratio"] pub type RtprW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `FB` reader - Fixed burst"] pub type FbR = crate :: BitReader ;
#[doc = "Field `FB` writer - Fixed burst"] pub type FbW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RDP` reader - Rx DMA PBL"] pub type RdpR = crate :: FieldReader ;
#[doc = "Field `RDP` writer - Rx DMA PBL"] pub type RdpW < 'a , REG > = crate :: FieldWriter < 'a , REG , 6 > ;
#[doc = "Field `USP` reader - Use separate PBL"] pub type UspR = crate :: BitReader ;
#[doc = "Field `USP` writer - Use separate PBL"] pub type UspW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FPM` reader - 4xPBL mode"] pub type FpmR = crate :: BitReader ;
#[doc = "Field `FPM` writer - 4xPBL mode"] pub type FpmW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AAB` reader - Address-aligned beats"] pub type AabR = crate :: BitReader ;
#[doc = "Field `AAB` writer - Address-aligned beats"] pub type AabW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Software reset"]
#[inline (always)] pub fn sr (& self) -> SrR { SrR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - DMA Arbitration"]
#[inline (always)] pub fn da (& self) -> DaR { DaR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bits 2:6 - Descriptor skip length"]
#[inline (always)] pub fn dsl (& self) -> DslR { DslR :: new (((self . bits >> 2) & 0x1f) as u8) }
#[doc = "Bits 8:13 - Programmable burst length"]
#[inline (always)] pub fn pbl (& self) -> PblR { PblR :: new (((self . bits >> 8) & 0x3f) as u8) }
#[doc = "Bits 14:15 - Rx Tx priority ratio"]
#[inline (always)] pub fn rtpr (& self) -> RtprR { RtprR :: new (((self . bits >> 14) & 3) as u8) }
#[doc = "Bit 16 - Fixed burst"]
#[inline (always)] pub fn fb (& self) -> FbR { FbR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bits 17:22 - Rx DMA PBL"]
#[inline (always)] pub fn rdp (& self) -> RdpR { RdpR :: new (((self . bits >> 17) & 0x3f) as u8) }
#[doc = "Bit 23 - Use separate PBL"]
#[inline (always)] pub fn usp (& self) -> UspR { UspR :: new (((self . bits >> 23) & 1) != 0) }
#[doc = "Bit 24 - 4xPBL mode"]
#[inline (always)] pub fn fpm (& self) -> FpmR { FpmR :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - Address-aligned beats"]
#[inline (always)] pub fn aab (& self) -> AabR { AabR :: new (((self . bits >> 25) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Software reset"]
#[inline (always)] pub fn sr (& mut self) -> SrW < '_ , DmabmrSpec > { SrW :: new (self , 0) }
#[doc = "Bit 1 - DMA Arbitration"]
#[inline (always)] pub fn da (& mut self) -> DaW < '_ , DmabmrSpec > { DaW :: new (self , 1) }
#[doc = "Bits 2:6 - Descriptor skip length"]
#[inline (always)] pub fn dsl (& mut self) -> DslW < '_ , DmabmrSpec > { DslW :: new (self , 2) }
#[doc = "Bits 8:13 - Programmable burst length"]
#[inline (always)] pub fn pbl (& mut self) -> PblW < '_ , DmabmrSpec > { PblW :: new (self , 8) }
#[doc = "Bits 14:15 - Rx Tx priority ratio"]
#[inline (always)] pub fn rtpr (& mut self) -> RtprW < '_ , DmabmrSpec > { RtprW :: new (self , 14) }
#[doc = "Bit 16 - Fixed burst"]
#[inline (always)] pub fn fb (& mut self) -> FbW < '_ , DmabmrSpec > { FbW :: new (self , 16) }
#[doc = "Bits 17:22 - Rx DMA PBL"]
#[inline (always)] pub fn rdp (& mut self) -> RdpW < '_ , DmabmrSpec > { RdpW :: new (self , 17) }
#[doc = "Bit 23 - Use separate PBL"]
#[inline (always)] pub fn usp (& mut self) -> UspW < '_ , DmabmrSpec > { UspW :: new (self , 23) }
#[doc = "Bit 24 - 4xPBL mode"]
#[inline (always)] pub fn fpm (& mut self) -> FpmW < '_ , DmabmrSpec > { FpmW :: new (self , 24) }
#[doc = "Bit 25 - Address-aligned beats"]
#[inline (always)] pub fn aab (& mut self) -> AabW < '_ , DmabmrSpec > { AabW :: new (self , 25) } }
#[doc = "Ethernet DMA bus mode register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmabmr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmabmr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmabmrSpec ; impl crate :: RegisterSpec for DmabmrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmabmr::R`](R) reader structure"] impl crate :: Readable for DmabmrSpec { }
#[doc = "`write(|w| ..)` method takes [`dmabmr::W`](W) writer structure"] impl crate :: Writable for DmabmrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DMABMR to value 0x0002_0101"] impl crate :: Resettable for DmabmrSpec { const RESET_VALUE : u32 = 0x0002_0101 ; } }
#[doc = "DMATPDR (rw) register accessor: Ethernet DMA transmit poll demand register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmatpdr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmatpdr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmatpdr`] module"]
#[doc (alias = "DMATPDR")] pub type Dmatpdr = crate :: Reg < dmatpdr :: DmatpdrSpec > ;
#[doc = "Ethernet DMA transmit poll demand register"] pub mod dmatpdr {
#[doc = "Register `DMATPDR` reader"] pub type R = crate :: R < DmatpdrSpec > ;
#[doc = "Register `DMATPDR` writer"] pub type W = crate :: W < DmatpdrSpec > ;
#[doc = "Field `TPD` reader - Transmit poll demand"] pub type TpdR = crate :: FieldReader < u32 > ;
#[doc = "Field `TPD` writer - Transmit poll demand"] pub type TpdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Transmit poll demand"]
#[inline (always)] pub fn tpd (& self) -> TpdR { TpdR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Transmit poll demand"]
#[inline (always)] pub fn tpd (& mut self) -> TpdW < '_ , DmatpdrSpec > { TpdW :: new (self , 0) } }
#[doc = "Ethernet DMA transmit poll demand register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmatpdr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmatpdr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmatpdrSpec ; impl crate :: RegisterSpec for DmatpdrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmatpdr::R`](R) reader structure"] impl crate :: Readable for DmatpdrSpec { }
#[doc = "`write(|w| ..)` method takes [`dmatpdr::W`](W) writer structure"] impl crate :: Writable for DmatpdrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DMATPDR to value 0"] impl crate :: Resettable for DmatpdrSpec { } }
#[doc = "DMARPDR (rw) register accessor: EHERNET DMA receive poll demand register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmarpdr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmarpdr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmarpdr`] module"]
#[doc (alias = "DMARPDR")] pub type Dmarpdr = crate :: Reg < dmarpdr :: DmarpdrSpec > ;
#[doc = "EHERNET DMA receive poll demand register"] pub mod dmarpdr {
#[doc = "Register `DMARPDR` reader"] pub type R = crate :: R < DmarpdrSpec > ;
#[doc = "Register `DMARPDR` writer"] pub type W = crate :: W < DmarpdrSpec > ;
#[doc = "Field `RPD` reader - Receive poll demand"] pub type RpdR = crate :: FieldReader < u32 > ;
#[doc = "Field `RPD` writer - Receive poll demand"] pub type RpdW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Receive poll demand"]
#[inline (always)] pub fn rpd (& self) -> RpdR { RpdR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Receive poll demand"]
#[inline (always)] pub fn rpd (& mut self) -> RpdW < '_ , DmarpdrSpec > { RpdW :: new (self , 0) } }
#[doc = "EHERNET DMA receive poll demand register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmarpdr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmarpdr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmarpdrSpec ; impl crate :: RegisterSpec for DmarpdrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmarpdr::R`](R) reader structure"] impl crate :: Readable for DmarpdrSpec { }
#[doc = "`write(|w| ..)` method takes [`dmarpdr::W`](W) writer structure"] impl crate :: Writable for DmarpdrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DMARPDR to value 0"] impl crate :: Resettable for DmarpdrSpec { } }
#[doc = "DMARDLAR (rw) register accessor: Ethernet DMA receive descriptor list address register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmardlar::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmardlar::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmardlar`] module"]
#[doc (alias = "DMARDLAR")] pub type Dmardlar = crate :: Reg < dmardlar :: DmardlarSpec > ;
#[doc = "Ethernet DMA receive descriptor list address register"] pub mod dmardlar {
#[doc = "Register `DMARDLAR` reader"] pub type R = crate :: R < DmardlarSpec > ;
#[doc = "Register `DMARDLAR` writer"] pub type W = crate :: W < DmardlarSpec > ;
#[doc = "Field `SRL` reader - Start of receive list"] pub type SrlR = crate :: FieldReader < u32 > ;
#[doc = "Field `SRL` writer - Start of receive list"] pub type SrlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Start of receive list"]
#[inline (always)] pub fn srl (& self) -> SrlR { SrlR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Start of receive list"]
#[inline (always)] pub fn srl (& mut self) -> SrlW < '_ , DmardlarSpec > { SrlW :: new (self , 0) } }
#[doc = "Ethernet DMA receive descriptor list address register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmardlar::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmardlar::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmardlarSpec ; impl crate :: RegisterSpec for DmardlarSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmardlar::R`](R) reader structure"] impl crate :: Readable for DmardlarSpec { }
#[doc = "`write(|w| ..)` method takes [`dmardlar::W`](W) writer structure"] impl crate :: Writable for DmardlarSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DMARDLAR to value 0"] impl crate :: Resettable for DmardlarSpec { } }
#[doc = "DMATDLAR (rw) register accessor: Ethernet DMA transmit descriptor list address register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmatdlar::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmatdlar::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmatdlar`] module"]
#[doc (alias = "DMATDLAR")] pub type Dmatdlar = crate :: Reg < dmatdlar :: DmatdlarSpec > ;
#[doc = "Ethernet DMA transmit descriptor list address register"] pub mod dmatdlar {
#[doc = "Register `DMATDLAR` reader"] pub type R = crate :: R < DmatdlarSpec > ;
#[doc = "Register `DMATDLAR` writer"] pub type W = crate :: W < DmatdlarSpec > ;
#[doc = "Field `STL` reader - Start of transmit list"] pub type StlR = crate :: FieldReader < u32 > ;
#[doc = "Field `STL` writer - Start of transmit list"] pub type StlW < 'a , REG > = crate :: FieldWriter < 'a , REG , 32 , u32 > ; impl R {
#[doc = "Bits 0:31 - Start of transmit list"]
#[inline (always)] pub fn stl (& self) -> StlR { StlR :: new (self . bits) } } impl W {
#[doc = "Bits 0:31 - Start of transmit list"]
#[inline (always)] pub fn stl (& mut self) -> StlW < '_ , DmatdlarSpec > { StlW :: new (self , 0) } }
#[doc = "Ethernet DMA transmit descriptor list address register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmatdlar::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmatdlar::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmatdlarSpec ; impl crate :: RegisterSpec for DmatdlarSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmatdlar::R`](R) reader structure"] impl crate :: Readable for DmatdlarSpec { }
#[doc = "`write(|w| ..)` method takes [`dmatdlar::W`](W) writer structure"] impl crate :: Writable for DmatdlarSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DMATDLAR to value 0"] impl crate :: Resettable for DmatdlarSpec { } }
#[doc = "DMASR (rw) register accessor: Ethernet DMA status register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmasr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmasr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmasr`] module"]
#[doc (alias = "DMASR")] pub type Dmasr = crate :: Reg < dmasr :: DmasrSpec > ;
#[doc = "Ethernet DMA status register"] pub mod dmasr {
#[doc = "Register `DMASR` reader"] pub type R = crate :: R < DmasrSpec > ;
#[doc = "Register `DMASR` writer"] pub type W = crate :: W < DmasrSpec > ;
#[doc = "Field `TS` reader - Transmit status"] pub type TsR = crate :: BitReader ;
#[doc = "Field `TS` writer - Transmit status"] pub type TsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TPSS` reader - Transmit process stopped status"] pub type TpssR = crate :: BitReader ;
#[doc = "Field `TPSS` writer - Transmit process stopped status"] pub type TpssW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TBUS` reader - Transmit buffer unavailable status"] pub type TbusR = crate :: BitReader ;
#[doc = "Field `TBUS` writer - Transmit buffer unavailable status"] pub type TbusW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TJTS` reader - Transmit jabber timeout status"] pub type TjtsR = crate :: BitReader ;
#[doc = "Field `TJTS` writer - Transmit jabber timeout status"] pub type TjtsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ROS` reader - Receive overflow status"] pub type RosR = crate :: BitReader ;
#[doc = "Field `ROS` writer - Receive overflow status"] pub type RosW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TUS` reader - Transmit underflow status"] pub type TusR = crate :: BitReader ;
#[doc = "Field `TUS` writer - Transmit underflow status"] pub type TusW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RS` reader - Receive status"] pub type RsR = crate :: BitReader ;
#[doc = "Field `RS` writer - Receive status"] pub type RsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RBUS` reader - Receive buffer unavailable status"] pub type RbusR = crate :: BitReader ;
#[doc = "Field `RBUS` writer - Receive buffer unavailable status"] pub type RbusW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RPSS` reader - Receive process stopped status"] pub type RpssR = crate :: BitReader ;
#[doc = "Field `RPSS` writer - Receive process stopped status"] pub type RpssW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `PWTS` reader - Receive watchdog timeout status"] pub type PwtsR = crate :: BitReader ;
#[doc = "Field `PWTS` writer - Receive watchdog timeout status"] pub type PwtsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ETS` reader - Early transmit status"] pub type EtsR = crate :: BitReader ;
#[doc = "Field `ETS` writer - Early transmit status"] pub type EtsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBES` reader - Fatal bus error status"] pub type FbesR = crate :: BitReader ;
#[doc = "Field `FBES` writer - Fatal bus error status"] pub type FbesW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ERS` reader - Early receive status"] pub type ErsR = crate :: BitReader ;
#[doc = "Field `ERS` writer - Early receive status"] pub type ErsW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AIS` reader - Abnormal interrupt summary"] pub type AisR = crate :: BitReader ;
#[doc = "Field `AIS` writer - Abnormal interrupt summary"] pub type AisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NIS` reader - Normal interrupt summary"] pub type NisR = crate :: BitReader ;
#[doc = "Field `NIS` writer - Normal interrupt summary"] pub type NisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RPS` reader - Receive process state"] pub type RpsR = crate :: FieldReader ;
#[doc = "Field `TPS` reader - Transmit process state"] pub type TpsR = crate :: FieldReader ;
#[doc = "Field `EBS` reader - Error bits status"] pub type EbsR = crate :: FieldReader ;
#[doc = "Field `MMCS` reader - MMC status"] pub type MmcsR = crate :: BitReader ;
#[doc = "Field `PMTS` reader - PMT status"] pub type PmtsR = crate :: BitReader ;
#[doc = "Field `TSTS` reader - Time stamp trigger status"] pub type TstsR = crate :: BitReader ; impl R {
#[doc = "Bit 0 - Transmit status"]
#[inline (always)] pub fn ts (& self) -> TsR { TsR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Transmit process stopped status"]
#[inline (always)] pub fn tpss (& self) -> TpssR { TpssR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Transmit buffer unavailable status"]
#[inline (always)] pub fn tbus (& self) -> TbusR { TbusR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Transmit jabber timeout status"]
#[inline (always)] pub fn tjts (& self) -> TjtsR { TjtsR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Receive overflow status"]
#[inline (always)] pub fn ros (& self) -> RosR { RosR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Transmit underflow status"]
#[inline (always)] pub fn tus (& self) -> TusR { TusR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Receive status"]
#[inline (always)] pub fn rs (& self) -> RsR { RsR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Receive buffer unavailable status"]
#[inline (always)] pub fn rbus (& self) -> RbusR { RbusR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Receive process stopped status"]
#[inline (always)] pub fn rpss (& self) -> RpssR { RpssR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - Receive watchdog timeout status"]
#[inline (always)] pub fn pwts (& self) -> PwtsR { PwtsR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Early transmit status"]
#[inline (always)] pub fn ets (& self) -> EtsR { EtsR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 13 - Fatal bus error status"]
#[inline (always)] pub fn fbes (& self) -> FbesR { FbesR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Early receive status"]
#[inline (always)] pub fn ers (& self) -> ErsR { ErsR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Abnormal interrupt summary"]
#[inline (always)] pub fn ais (& self) -> AisR { AisR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Normal interrupt summary"]
#[inline (always)] pub fn nis (& self) -> NisR { NisR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bits 17:19 - Receive process state"]
#[inline (always)] pub fn rps (& self) -> RpsR { RpsR :: new (((self . bits >> 17) & 7) as u8) }
#[doc = "Bits 20:22 - Transmit process state"]
#[inline (always)] pub fn tps (& self) -> TpsR { TpsR :: new (((self . bits >> 20) & 7) as u8) }
#[doc = "Bits 23:25 - Error bits status"]
#[inline (always)] pub fn ebs (& self) -> EbsR { EbsR :: new (((self . bits >> 23) & 7) as u8) }
#[doc = "Bit 27 - MMC status"]
#[inline (always)] pub fn mmcs (& self) -> MmcsR { MmcsR :: new (((self . bits >> 27) & 1) != 0) }
#[doc = "Bit 28 - PMT status"]
#[inline (always)] pub fn pmts (& self) -> PmtsR { PmtsR :: new (((self . bits >> 28) & 1) != 0) }
#[doc = "Bit 29 - Time stamp trigger status"]
#[inline (always)] pub fn tsts (& self) -> TstsR { TstsR :: new (((self . bits >> 29) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transmit status"]
#[inline (always)] pub fn ts (& mut self) -> TsW < '_ , DmasrSpec > { TsW :: new (self , 0) }
#[doc = "Bit 1 - Transmit process stopped status"]
#[inline (always)] pub fn tpss (& mut self) -> TpssW < '_ , DmasrSpec > { TpssW :: new (self , 1) }
#[doc = "Bit 2 - Transmit buffer unavailable status"]
#[inline (always)] pub fn tbus (& mut self) -> TbusW < '_ , DmasrSpec > { TbusW :: new (self , 2) }
#[doc = "Bit 3 - Transmit jabber timeout status"]
#[inline (always)] pub fn tjts (& mut self) -> TjtsW < '_ , DmasrSpec > { TjtsW :: new (self , 3) }
#[doc = "Bit 4 - Receive overflow status"]
#[inline (always)] pub fn ros (& mut self) -> RosW < '_ , DmasrSpec > { RosW :: new (self , 4) }
#[doc = "Bit 5 - Transmit underflow status"]
#[inline (always)] pub fn tus (& mut self) -> TusW < '_ , DmasrSpec > { TusW :: new (self , 5) }
#[doc = "Bit 6 - Receive status"]
#[inline (always)] pub fn rs (& mut self) -> RsW < '_ , DmasrSpec > { RsW :: new (self , 6) }
#[doc = "Bit 7 - Receive buffer unavailable status"]
#[inline (always)] pub fn rbus (& mut self) -> RbusW < '_ , DmasrSpec > { RbusW :: new (self , 7) }
#[doc = "Bit 8 - Receive process stopped status"]
#[inline (always)] pub fn rpss (& mut self) -> RpssW < '_ , DmasrSpec > { RpssW :: new (self , 8) }
#[doc = "Bit 9 - Receive watchdog timeout status"]
#[inline (always)] pub fn pwts (& mut self) -> PwtsW < '_ , DmasrSpec > { PwtsW :: new (self , 9) }
#[doc = "Bit 10 - Early transmit status"]
#[inline (always)] pub fn ets (& mut self) -> EtsW < '_ , DmasrSpec > { EtsW :: new (self , 10) }
#[doc = "Bit 13 - Fatal bus error status"]
#[inline (always)] pub fn fbes (& mut self) -> FbesW < '_ , DmasrSpec > { FbesW :: new (self , 13) }
#[doc = "Bit 14 - Early receive status"]
#[inline (always)] pub fn ers (& mut self) -> ErsW < '_ , DmasrSpec > { ErsW :: new (self , 14) }
#[doc = "Bit 15 - Abnormal interrupt summary"]
#[inline (always)] pub fn ais (& mut self) -> AisW < '_ , DmasrSpec > { AisW :: new (self , 15) }
#[doc = "Bit 16 - Normal interrupt summary"]
#[inline (always)] pub fn nis (& mut self) -> NisW < '_ , DmasrSpec > { NisW :: new (self , 16) } }
#[doc = "Ethernet DMA status register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmasr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmasr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmasrSpec ; impl crate :: RegisterSpec for DmasrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmasr::R`](R) reader structure"] impl crate :: Readable for DmasrSpec { }
#[doc = "`write(|w| ..)` method takes [`dmasr::W`](W) writer structure"] impl crate :: Writable for DmasrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DMASR to value 0"] impl crate :: Resettable for DmasrSpec { } }
#[doc = "DMAOMR (rw) register accessor: Ethernet DMA operation mode register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmaomr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmaomr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmaomr`] module"]
#[doc (alias = "DMAOMR")] pub type Dmaomr = crate :: Reg < dmaomr :: DmaomrSpec > ;
#[doc = "Ethernet DMA operation mode register"] pub mod dmaomr {
#[doc = "Register `DMAOMR` reader"] pub type R = crate :: R < DmaomrSpec > ;
#[doc = "Register `DMAOMR` writer"] pub type W = crate :: W < DmaomrSpec > ;
#[doc = "Field `SR` reader - SR"] pub type SrR = crate :: BitReader ;
#[doc = "Field `SR` writer - SR"] pub type SrW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `OSF` reader - OSF"] pub type OsfR = crate :: BitReader ;
#[doc = "Field `OSF` writer - OSF"] pub type OsfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RTC` reader - RTC"] pub type RtcR = crate :: FieldReader ;
#[doc = "Field `RTC` writer - RTC"] pub type RtcW < 'a , REG > = crate :: FieldWriter < 'a , REG , 2 > ;
#[doc = "Field `FUGF` reader - FUGF"] pub type FugfR = crate :: BitReader ;
#[doc = "Field `FUGF` writer - FUGF"] pub type FugfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FEF` reader - FEF"] pub type FefR = crate :: BitReader ;
#[doc = "Field `FEF` writer - FEF"] pub type FefW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ST` reader - ST"] pub type StR = crate :: BitReader ;
#[doc = "Field `ST` writer - ST"] pub type StW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TTC` reader - TTC"] pub type TtcR = crate :: FieldReader ;
#[doc = "Field `TTC` writer - TTC"] pub type TtcW < 'a , REG > = crate :: FieldWriter < 'a , REG , 3 > ;
#[doc = "Field `FTF` reader - FTF"] pub type FtfR = crate :: BitReader ;
#[doc = "Field `FTF` writer - FTF"] pub type FtfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TSF` reader - TSF"] pub type TsfR = crate :: BitReader ;
#[doc = "Field `TSF` writer - TSF"] pub type TsfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DFRF` reader - DFRF"] pub type DfrfR = crate :: BitReader ;
#[doc = "Field `DFRF` writer - DFRF"] pub type DfrfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RSF` reader - RSF"] pub type RsfR = crate :: BitReader ;
#[doc = "Field `RSF` writer - RSF"] pub type RsfW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DTCEFD` reader - DTCEFD"] pub type DtcefdR = crate :: BitReader ;
#[doc = "Field `DTCEFD` writer - DTCEFD"] pub type DtcefdW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 1 - SR"]
#[inline (always)] pub fn sr (& self) -> SrR { SrR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - OSF"]
#[inline (always)] pub fn osf (& self) -> OsfR { OsfR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bits 3:4 - RTC"]
#[inline (always)] pub fn rtc (& self) -> RtcR { RtcR :: new (((self . bits >> 3) & 3) as u8) }
#[doc = "Bit 6 - FUGF"]
#[inline (always)] pub fn fugf (& self) -> FugfR { FugfR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - FEF"]
#[inline (always)] pub fn fef (& self) -> FefR { FefR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 13 - ST"]
#[inline (always)] pub fn st (& self) -> StR { StR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bits 14:16 - TTC"]
#[inline (always)] pub fn ttc (& self) -> TtcR { TtcR :: new (((self . bits >> 14) & 7) as u8) }
#[doc = "Bit 20 - FTF"]
#[inline (always)] pub fn ftf (& self) -> FtfR { FtfR :: new (((self . bits >> 20) & 1) != 0) }
#[doc = "Bit 21 - TSF"]
#[inline (always)] pub fn tsf (& self) -> TsfR { TsfR :: new (((self . bits >> 21) & 1) != 0) }
#[doc = "Bit 24 - DFRF"]
#[inline (always)] pub fn dfrf (& self) -> DfrfR { DfrfR :: new (((self . bits >> 24) & 1) != 0) }
#[doc = "Bit 25 - RSF"]
#[inline (always)] pub fn rsf (& self) -> RsfR { RsfR :: new (((self . bits >> 25) & 1) != 0) }
#[doc = "Bit 26 - DTCEFD"]
#[inline (always)] pub fn dtcefd (& self) -> DtcefdR { DtcefdR :: new (((self . bits >> 26) & 1) != 0) } } impl W {
#[doc = "Bit 1 - SR"]
#[inline (always)] pub fn sr (& mut self) -> SrW < '_ , DmaomrSpec > { SrW :: new (self , 1) }
#[doc = "Bit 2 - OSF"]
#[inline (always)] pub fn osf (& mut self) -> OsfW < '_ , DmaomrSpec > { OsfW :: new (self , 2) }
#[doc = "Bits 3:4 - RTC"]
#[inline (always)] pub fn rtc (& mut self) -> RtcW < '_ , DmaomrSpec > { RtcW :: new (self , 3) }
#[doc = "Bit 6 - FUGF"]
#[inline (always)] pub fn fugf (& mut self) -> FugfW < '_ , DmaomrSpec > { FugfW :: new (self , 6) }
#[doc = "Bit 7 - FEF"]
#[inline (always)] pub fn fef (& mut self) -> FefW < '_ , DmaomrSpec > { FefW :: new (self , 7) }
#[doc = "Bit 13 - ST"]
#[inline (always)] pub fn st (& mut self) -> StW < '_ , DmaomrSpec > { StW :: new (self , 13) }
#[doc = "Bits 14:16 - TTC"]
#[inline (always)] pub fn ttc (& mut self) -> TtcW < '_ , DmaomrSpec > { TtcW :: new (self , 14) }
#[doc = "Bit 20 - FTF"]
#[inline (always)] pub fn ftf (& mut self) -> FtfW < '_ , DmaomrSpec > { FtfW :: new (self , 20) }
#[doc = "Bit 21 - TSF"]
#[inline (always)] pub fn tsf (& mut self) -> TsfW < '_ , DmaomrSpec > { TsfW :: new (self , 21) }
#[doc = "Bit 24 - DFRF"]
#[inline (always)] pub fn dfrf (& mut self) -> DfrfW < '_ , DmaomrSpec > { DfrfW :: new (self , 24) }
#[doc = "Bit 25 - RSF"]
#[inline (always)] pub fn rsf (& mut self) -> RsfW < '_ , DmaomrSpec > { RsfW :: new (self , 25) }
#[doc = "Bit 26 - DTCEFD"]
#[inline (always)] pub fn dtcefd (& mut self) -> DtcefdW < '_ , DmaomrSpec > { DtcefdW :: new (self , 26) } }
#[doc = "Ethernet DMA operation mode register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmaomr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmaomr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmaomrSpec ; impl crate :: RegisterSpec for DmaomrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmaomr::R`](R) reader structure"] impl crate :: Readable for DmaomrSpec { }
#[doc = "`write(|w| ..)` method takes [`dmaomr::W`](W) writer structure"] impl crate :: Writable for DmaomrSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DMAOMR to value 0"] impl crate :: Resettable for DmaomrSpec { } }
#[doc = "DMAIER (rw) register accessor: Ethernet DMA interrupt enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmaier::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmaier::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmaier`] module"]
#[doc (alias = "DMAIER")] pub type Dmaier = crate :: Reg < dmaier :: DmaierSpec > ;
#[doc = "Ethernet DMA interrupt enable register"] pub mod dmaier {
#[doc = "Register `DMAIER` reader"] pub type R = crate :: R < DmaierSpec > ;
#[doc = "Register `DMAIER` writer"] pub type W = crate :: W < DmaierSpec > ;
#[doc = "Field `TIE` reader - Transmit interrupt enable"] pub type TieR = crate :: BitReader ;
#[doc = "Field `TIE` writer - Transmit interrupt enable"] pub type TieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TPSIE` reader - Transmit process stopped interrupt enable"] pub type TpsieR = crate :: BitReader ;
#[doc = "Field `TPSIE` writer - Transmit process stopped interrupt enable"] pub type TpsieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TBUIE` reader - Transmit buffer unavailable interrupt enable"] pub type TbuieR = crate :: BitReader ;
#[doc = "Field `TBUIE` writer - Transmit buffer unavailable interrupt enable"] pub type TbuieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TJTIE` reader - Transmit jabber timeout interrupt enable"] pub type TjtieR = crate :: BitReader ;
#[doc = "Field `TJTIE` writer - Transmit jabber timeout interrupt enable"] pub type TjtieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ROIE` reader - Overflow interrupt enable"] pub type RoieR = crate :: BitReader ;
#[doc = "Field `ROIE` writer - Overflow interrupt enable"] pub type RoieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TUIE` reader - Underflow interrupt enable"] pub type TuieR = crate :: BitReader ;
#[doc = "Field `TUIE` writer - Underflow interrupt enable"] pub type TuieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RIE` reader - Receive interrupt enable"] pub type RieR = crate :: BitReader ;
#[doc = "Field `RIE` writer - Receive interrupt enable"] pub type RieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RBUIE` reader - Receive buffer unavailable interrupt enable"] pub type RbuieR = crate :: BitReader ;
#[doc = "Field `RBUIE` writer - Receive buffer unavailable interrupt enable"] pub type RbuieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RPSIE` reader - Receive process stopped interrupt enable"] pub type RpsieR = crate :: BitReader ;
#[doc = "Field `RPSIE` writer - Receive process stopped interrupt enable"] pub type RpsieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `RWTIE` reader - receive watchdog timeout interrupt enable"] pub type RwtieR = crate :: BitReader ;
#[doc = "Field `RWTIE` writer - receive watchdog timeout interrupt enable"] pub type RwtieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ETIE` reader - Early transmit interrupt enable"] pub type EtieR = crate :: BitReader ;
#[doc = "Field `ETIE` writer - Early transmit interrupt enable"] pub type EtieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FBEIE` reader - Fatal bus error interrupt enable"] pub type FbeieR = crate :: BitReader ;
#[doc = "Field `FBEIE` writer - Fatal bus error interrupt enable"] pub type FbeieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `ERIE` reader - Early receive interrupt enable"] pub type ErieR = crate :: BitReader ;
#[doc = "Field `ERIE` writer - Early receive interrupt enable"] pub type ErieW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `AISE` reader - Abnormal interrupt summary enable"] pub type AiseR = crate :: BitReader ;
#[doc = "Field `AISE` writer - Abnormal interrupt summary enable"] pub type AiseW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `NISE` reader - Normal interrupt summary enable"] pub type NiseR = crate :: BitReader ;
#[doc = "Field `NISE` writer - Normal interrupt summary enable"] pub type NiseW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Transmit interrupt enable"]
#[inline (always)] pub fn tie (& self) -> TieR { TieR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - Transmit process stopped interrupt enable"]
#[inline (always)] pub fn tpsie (& self) -> TpsieR { TpsieR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Transmit buffer unavailable interrupt enable"]
#[inline (always)] pub fn tbuie (& self) -> TbuieR { TbuieR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 3 - Transmit jabber timeout interrupt enable"]
#[inline (always)] pub fn tjtie (& self) -> TjtieR { TjtieR :: new (((self . bits >> 3) & 1) != 0) }
#[doc = "Bit 4 - Overflow interrupt enable"]
#[inline (always)] pub fn roie (& self) -> RoieR { RoieR :: new (((self . bits >> 4) & 1) != 0) }
#[doc = "Bit 5 - Underflow interrupt enable"]
#[inline (always)] pub fn tuie (& self) -> TuieR { TuieR :: new (((self . bits >> 5) & 1) != 0) }
#[doc = "Bit 6 - Receive interrupt enable"]
#[inline (always)] pub fn rie (& self) -> RieR { RieR :: new (((self . bits >> 6) & 1) != 0) }
#[doc = "Bit 7 - Receive buffer unavailable interrupt enable"]
#[inline (always)] pub fn rbuie (& self) -> RbuieR { RbuieR :: new (((self . bits >> 7) & 1) != 0) }
#[doc = "Bit 8 - Receive process stopped interrupt enable"]
#[inline (always)] pub fn rpsie (& self) -> RpsieR { RpsieR :: new (((self . bits >> 8) & 1) != 0) }
#[doc = "Bit 9 - receive watchdog timeout interrupt enable"]
#[inline (always)] pub fn rwtie (& self) -> RwtieR { RwtieR :: new (((self . bits >> 9) & 1) != 0) }
#[doc = "Bit 10 - Early transmit interrupt enable"]
#[inline (always)] pub fn etie (& self) -> EtieR { EtieR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 13 - Fatal bus error interrupt enable"]
#[inline (always)] pub fn fbeie (& self) -> FbeieR { FbeieR :: new (((self . bits >> 13) & 1) != 0) }
#[doc = "Bit 14 - Early receive interrupt enable"]
#[inline (always)] pub fn erie (& self) -> ErieR { ErieR :: new (((self . bits >> 14) & 1) != 0) }
#[doc = "Bit 15 - Abnormal interrupt summary enable"]
#[inline (always)] pub fn aise (& self) -> AiseR { AiseR :: new (((self . bits >> 15) & 1) != 0) }
#[doc = "Bit 16 - Normal interrupt summary enable"]
#[inline (always)] pub fn nise (& self) -> NiseR { NiseR :: new (((self . bits >> 16) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Transmit interrupt enable"]
#[inline (always)] pub fn tie (& mut self) -> TieW < '_ , DmaierSpec > { TieW :: new (self , 0) }
#[doc = "Bit 1 - Transmit process stopped interrupt enable"]
#[inline (always)] pub fn tpsie (& mut self) -> TpsieW < '_ , DmaierSpec > { TpsieW :: new (self , 1) }
#[doc = "Bit 2 - Transmit buffer unavailable interrupt enable"]
#[inline (always)] pub fn tbuie (& mut self) -> TbuieW < '_ , DmaierSpec > { TbuieW :: new (self , 2) }
#[doc = "Bit 3 - Transmit jabber timeout interrupt enable"]
#[inline (always)] pub fn tjtie (& mut self) -> TjtieW < '_ , DmaierSpec > { TjtieW :: new (self , 3) }
#[doc = "Bit 4 - Overflow interrupt enable"]
#[inline (always)] pub fn roie (& mut self) -> RoieW < '_ , DmaierSpec > { RoieW :: new (self , 4) }
#[doc = "Bit 5 - Underflow interrupt enable"]
#[inline (always)] pub fn tuie (& mut self) -> TuieW < '_ , DmaierSpec > { TuieW :: new (self , 5) }
#[doc = "Bit 6 - Receive interrupt enable"]
#[inline (always)] pub fn rie (& mut self) -> RieW < '_ , DmaierSpec > { RieW :: new (self , 6) }
#[doc = "Bit 7 - Receive buffer unavailable interrupt enable"]
#[inline (always)] pub fn rbuie (& mut self) -> RbuieW < '_ , DmaierSpec > { RbuieW :: new (self , 7) }
#[doc = "Bit 8 - Receive process stopped interrupt enable"]
#[inline (always)] pub fn rpsie (& mut self) -> RpsieW < '_ , DmaierSpec > { RpsieW :: new (self , 8) }
#[doc = "Bit 9 - receive watchdog timeout interrupt enable"]
#[inline (always)] pub fn rwtie (& mut self) -> RwtieW < '_ , DmaierSpec > { RwtieW :: new (self , 9) }
#[doc = "Bit 10 - Early transmit interrupt enable"]
#[inline (always)] pub fn etie (& mut self) -> EtieW < '_ , DmaierSpec > { EtieW :: new (self , 10) }
#[doc = "Bit 13 - Fatal bus error interrupt enable"]
#[inline (always)] pub fn fbeie (& mut self) -> FbeieW < '_ , DmaierSpec > { FbeieW :: new (self , 13) }
#[doc = "Bit 14 - Early receive interrupt enable"]
#[inline (always)] pub fn erie (& mut self) -> ErieW < '_ , DmaierSpec > { ErieW :: new (self , 14) }
#[doc = "Bit 15 - Abnormal interrupt summary enable"]
#[inline (always)] pub fn aise (& mut self) -> AiseW < '_ , DmaierSpec > { AiseW :: new (self , 15) }
#[doc = "Bit 16 - Normal interrupt summary enable"]
#[inline (always)] pub fn nise (& mut self) -> NiseW < '_ , DmaierSpec > { NiseW :: new (self , 16) } }
#[doc = "Ethernet DMA interrupt enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmaier::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dmaier::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmaierSpec ; impl crate :: RegisterSpec for DmaierSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmaier::R`](R) reader structure"] impl crate :: Readable for DmaierSpec { }
#[doc = "`write(|w| ..)` method takes [`dmaier::W`](W) writer structure"] impl crate :: Writable for DmaierSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets DMAIER to value 0"] impl crate :: Resettable for DmaierSpec { } }
#[doc = "DMAMFBOCR (r) register accessor: Ethernet DMA missed frame and buffer overflow counter register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmamfbocr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmamfbocr`] module"]
#[doc (alias = "DMAMFBOCR")] pub type Dmamfbocr = crate :: Reg < dmamfbocr :: DmamfbocrSpec > ;
#[doc = "Ethernet DMA missed frame and buffer overflow counter register"] pub mod dmamfbocr {
#[doc = "Register `DMAMFBOCR` reader"] pub type R = crate :: R < DmamfbocrSpec > ;
#[doc = "Field `MFC` reader - Missed frames by the controller"] pub type MfcR = crate :: FieldReader < u16 > ;
#[doc = "Field `OMFC` reader - Overflow bit for missed frame counter"] pub type OmfcR = crate :: BitReader ;
#[doc = "Field `MFA` reader - Missed frames by the application"] pub type MfaR = crate :: FieldReader < u16 > ;
#[doc = "Field `OFOC` reader - Overflow bit for FIFO overflow counter"] pub type OfocR = crate :: BitReader ; impl R {
#[doc = "Bits 0:15 - Missed frames by the controller"]
#[inline (always)] pub fn mfc (& self) -> MfcR { MfcR :: new ((self . bits & 0xffff) as u16) }
#[doc = "Bit 16 - Overflow bit for missed frame counter"]
#[inline (always)] pub fn omfc (& self) -> OmfcR { OmfcR :: new (((self . bits >> 16) & 1) != 0) }
#[doc = "Bits 17:27 - Missed frames by the application"]
#[inline (always)] pub fn mfa (& self) -> MfaR { MfaR :: new (((self . bits >> 17) & 0x07ff) as u16) }
#[doc = "Bit 28 - Overflow bit for FIFO overflow counter"]
#[inline (always)] pub fn ofoc (& self) -> OfocR { OfocR :: new (((self . bits >> 28) & 1) != 0) } }
#[doc = "Ethernet DMA missed frame and buffer overflow counter register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmamfbocr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmamfbocrSpec ; impl crate :: RegisterSpec for DmamfbocrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmamfbocr::R`](R) reader structure"] impl crate :: Readable for DmamfbocrSpec { }
#[doc = "`reset()` method sets DMAMFBOCR to value 0"] impl crate :: Resettable for DmamfbocrSpec { } }
#[doc = "DMACHTDR (r) register accessor: Ethernet DMA current host transmit descriptor register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmachtdr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmachtdr`] module"]
#[doc (alias = "DMACHTDR")] pub type Dmachtdr = crate :: Reg < dmachtdr :: DmachtdrSpec > ;
#[doc = "Ethernet DMA current host transmit descriptor register"] pub mod dmachtdr {
#[doc = "Register `DMACHTDR` reader"] pub type R = crate :: R < DmachtdrSpec > ;
#[doc = "Field `HTDAP` reader - Host transmit descriptor address pointer"] pub type HtdapR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - Host transmit descriptor address pointer"]
#[inline (always)] pub fn htdap (& self) -> HtdapR { HtdapR :: new (self . bits) } }
#[doc = "Ethernet DMA current host transmit descriptor register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmachtdr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmachtdrSpec ; impl crate :: RegisterSpec for DmachtdrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmachtdr::R`](R) reader structure"] impl crate :: Readable for DmachtdrSpec { }
#[doc = "`reset()` method sets DMACHTDR to value 0"] impl crate :: Resettable for DmachtdrSpec { } }
#[doc = "DMACHRDR (r) register accessor: Ethernet DMA current host receive descriptor register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmachrdr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmachrdr`] module"]
#[doc (alias = "DMACHRDR")] pub type Dmachrdr = crate :: Reg < dmachrdr :: DmachrdrSpec > ;
#[doc = "Ethernet DMA current host receive descriptor register"] pub mod dmachrdr {
#[doc = "Register `DMACHRDR` reader"] pub type R = crate :: R < DmachrdrSpec > ;
#[doc = "Field `HRDAP` reader - Host receive descriptor address pointer"] pub type HrdapR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - Host receive descriptor address pointer"]
#[inline (always)] pub fn hrdap (& self) -> HrdapR { HrdapR :: new (self . bits) } }
#[doc = "Ethernet DMA current host receive descriptor register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmachrdr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmachrdrSpec ; impl crate :: RegisterSpec for DmachrdrSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmachrdr::R`](R) reader structure"] impl crate :: Readable for DmachrdrSpec { }
#[doc = "`reset()` method sets DMACHRDR to value 0"] impl crate :: Resettable for DmachrdrSpec { } }
#[doc = "DMACHTBAR (r) register accessor: Ethernet DMA current host transmit buffer address register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmachtbar::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmachtbar`] module"]
#[doc (alias = "DMACHTBAR")] pub type Dmachtbar = crate :: Reg < dmachtbar :: DmachtbarSpec > ;
#[doc = "Ethernet DMA current host transmit buffer address register"] pub mod dmachtbar {
#[doc = "Register `DMACHTBAR` reader"] pub type R = crate :: R < DmachtbarSpec > ;
#[doc = "Field `HTBAP` reader - Host transmit buffer address pointer"] pub type HtbapR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - Host transmit buffer address pointer"]
#[inline (always)] pub fn htbap (& self) -> HtbapR { HtbapR :: new (self . bits) } }
#[doc = "Ethernet DMA current host transmit buffer address register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmachtbar::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmachtbarSpec ; impl crate :: RegisterSpec for DmachtbarSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmachtbar::R`](R) reader structure"] impl crate :: Readable for DmachtbarSpec { }
#[doc = "`reset()` method sets DMACHTBAR to value 0"] impl crate :: Resettable for DmachtbarSpec { } }
#[doc = "DMACHRBAR (r) register accessor: Ethernet DMA current host receive buffer address register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmachrbar::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@dmachrbar`] module"]
#[doc (alias = "DMACHRBAR")] pub type Dmachrbar = crate :: Reg < dmachrbar :: DmachrbarSpec > ;
#[doc = "Ethernet DMA current host receive buffer address register"] pub mod dmachrbar {
#[doc = "Register `DMACHRBAR` reader"] pub type R = crate :: R < DmachrbarSpec > ;
#[doc = "Field `HRBAP` reader - Host receive buffer address pointer"] pub type HrbapR = crate :: FieldReader < u32 > ; impl R {
#[doc = "Bits 0:31 - Host receive buffer address pointer"]
#[inline (always)] pub fn hrbap (& self) -> HrbapR { HrbapR :: new (self . bits) } }
#[doc = "Ethernet DMA current host receive buffer address register\n\nYou can [`read`](crate::Reg::read) this register and get [`dmachrbar::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DmachrbarSpec ; impl crate :: RegisterSpec for DmachrbarSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`dmachrbar::R`](R) reader structure"] impl crate :: Readable for DmachrbarSpec { }
#[doc = "`reset()` method sets DMACHRBAR to value 0"] impl crate :: Resettable for DmachrbarSpec { } } }
#[doc = "System control block ACTLR"] pub type ScbActrl = crate :: Periph < scb_actrl :: RegisterBlock , 0xe000_e008 > ; impl core :: fmt :: Debug for ScbActrl { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("ScbActrl") . finish () } }
#[doc = "System control block ACTLR"] pub mod scb_actrl {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { actrl : Actrl , } impl RegisterBlock {
#[doc = "0x00 - Auxiliary control register"]
#[inline (always)] pub const fn actrl (& self) -> & Actrl { & self . actrl } }
#[doc = "ACTRL (rw) register accessor: Auxiliary control register\n\nYou can [`read`](crate::Reg::read) this register and get [`actrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`actrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@actrl`] module"]
#[doc (alias = "ACTRL")] pub type Actrl = crate :: Reg < actrl :: ActrlSpec > ;
#[doc = "Auxiliary control register"] pub mod actrl {
#[doc = "Register `ACTRL` reader"] pub type R = crate :: R < ActrlSpec > ;
#[doc = "Register `ACTRL` writer"] pub type W = crate :: W < ActrlSpec > ;
#[doc = "Field `DISFOLD` reader - DISFOLD"] pub type DisfoldR = crate :: BitReader ;
#[doc = "Field `DISFOLD` writer - DISFOLD"] pub type DisfoldW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `FPEXCODIS` reader - FPEXCODIS"] pub type FpexcodisR = crate :: BitReader ;
#[doc = "Field `FPEXCODIS` writer - FPEXCODIS"] pub type FpexcodisW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DISRAMODE` reader - DISRAMODE"] pub type DisramodeR = crate :: BitReader ;
#[doc = "Field `DISRAMODE` writer - DISRAMODE"] pub type DisramodeW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `DISITMATBFLUSH` reader - DISITMATBFLUSH"] pub type DisitmatbflushR = crate :: BitReader ;
#[doc = "Field `DISITMATBFLUSH` writer - DISITMATBFLUSH"] pub type DisitmatbflushW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 2 - DISFOLD"]
#[inline (always)] pub fn disfold (& self) -> DisfoldR { DisfoldR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 10 - FPEXCODIS"]
#[inline (always)] pub fn fpexcodis (& self) -> FpexcodisR { FpexcodisR :: new (((self . bits >> 10) & 1) != 0) }
#[doc = "Bit 11 - DISRAMODE"]
#[inline (always)] pub fn disramode (& self) -> DisramodeR { DisramodeR :: new (((self . bits >> 11) & 1) != 0) }
#[doc = "Bit 12 - DISITMATBFLUSH"]
#[inline (always)] pub fn disitmatbflush (& self) -> DisitmatbflushR { DisitmatbflushR :: new (((self . bits >> 12) & 1) != 0) } } impl W {
#[doc = "Bit 2 - DISFOLD"]
#[inline (always)] pub fn disfold (& mut self) -> DisfoldW < '_ , ActrlSpec > { DisfoldW :: new (self , 2) }
#[doc = "Bit 10 - FPEXCODIS"]
#[inline (always)] pub fn fpexcodis (& mut self) -> FpexcodisW < '_ , ActrlSpec > { FpexcodisW :: new (self , 10) }
#[doc = "Bit 11 - DISRAMODE"]
#[inline (always)] pub fn disramode (& mut self) -> DisramodeW < '_ , ActrlSpec > { DisramodeW :: new (self , 11) }
#[doc = "Bit 12 - DISITMATBFLUSH"]
#[inline (always)] pub fn disitmatbflush (& mut self) -> DisitmatbflushW < '_ , ActrlSpec > { DisitmatbflushW :: new (self , 12) } }
#[doc = "Auxiliary control register\n\nYou can [`read`](crate::Reg::read) this register and get [`actrl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`actrl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct ActrlSpec ; impl crate :: RegisterSpec for ActrlSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`actrl::R`](R) reader structure"] impl crate :: Readable for ActrlSpec { }
#[doc = "`write(|w| ..)` method takes [`actrl::W`](W) writer structure"] impl crate :: Writable for ActrlSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets ACTRL to value 0"] impl crate :: Resettable for ActrlSpec { } } }
#[doc = "Nested vectored interrupt controller"] pub type NvicStir = crate :: Periph < nvic_stir :: RegisterBlock , 0xe000_ef00 > ; impl core :: fmt :: Debug for NvicStir { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("NvicStir") . finish () } }
#[doc = "Nested vectored interrupt controller"] pub mod nvic_stir {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { stir : Stir , } impl RegisterBlock {
#[doc = "0x00 - Software trigger interrupt register"]
#[inline (always)] pub const fn stir (& self) -> & Stir { & self . stir } }
#[doc = "STIR (rw) register accessor: Software trigger interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`stir::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`stir::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stir`] module"]
#[doc (alias = "STIR")] pub type Stir = crate :: Reg < stir :: StirSpec > ;
#[doc = "Software trigger interrupt register"] pub mod stir {
#[doc = "Register `STIR` reader"] pub type R = crate :: R < StirSpec > ;
#[doc = "Register `STIR` writer"] pub type W = crate :: W < StirSpec > ;
#[doc = "Field `INTID` reader - Software generated interrupt ID"] pub type IntidR = crate :: FieldReader < u16 > ;
#[doc = "Field `INTID` writer - Software generated interrupt ID"] pub type IntidW < 'a , REG > = crate :: FieldWriter < 'a , REG , 9 , u16 > ; impl R {
#[doc = "Bits 0:8 - Software generated interrupt ID"]
#[inline (always)] pub fn intid (& self) -> IntidR { IntidR :: new ((self . bits & 0x01ff) as u16) } } impl W {
#[doc = "Bits 0:8 - Software generated interrupt ID"]
#[inline (always)] pub fn intid (& mut self) -> IntidW < '_ , StirSpec > { IntidW :: new (self , 0) } }
#[doc = "Software trigger interrupt register\n\nYou can [`read`](crate::Reg::read) this register and get [`stir::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`stir::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct StirSpec ; impl crate :: RegisterSpec for StirSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`stir::R`](R) reader structure"] impl crate :: Readable for StirSpec { }
#[doc = "`write(|w| ..)` method takes [`stir::W`](W) writer structure"] impl crate :: Writable for StirSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets STIR to value 0"] impl crate :: Resettable for StirSpec { } } }
#[doc = "SysTick timer"] pub type Stk = crate :: Periph < stk :: RegisterBlock , 0xe000_e010 > ; impl core :: fmt :: Debug for Stk { fn fmt (& self , f : & mut core :: fmt :: Formatter) -> core :: fmt :: Result { f . debug_struct ("Stk") . finish () } }
#[doc = "SysTick timer"] pub mod stk {
#[repr (C)]
#[doc = "Register block"] pub struct RegisterBlock { ctrl : Ctrl , load_ : Load_ , val : Val , calib : Calib , } impl RegisterBlock {
#[doc = "0x00 - SysTick control and status register"]
#[inline (always)] pub const fn ctrl (& self) -> & Ctrl { & self . ctrl }
#[doc = "0x04 - SysTick reload value register"]
#[inline (always)] pub const fn load_ (& self) -> & Load_ { & self . load_ }
#[doc = "0x08 - SysTick current value register"]
#[inline (always)] pub const fn val (& self) -> & Val { & self . val }
#[doc = "0x0c - SysTick calibration value register"]
#[inline (always)] pub const fn calib (& self) -> & Calib { & self . calib } }
#[doc = "CTRL (rw) register accessor: SysTick control and status register\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctrl`] module"]
#[doc (alias = "CTRL")] pub type Ctrl = crate :: Reg < ctrl :: CtrlSpec > ;
#[doc = "SysTick control and status register"] pub mod ctrl {
#[doc = "Register `CTRL` reader"] pub type R = crate :: R < CtrlSpec > ;
#[doc = "Register `CTRL` writer"] pub type W = crate :: W < CtrlSpec > ;
#[doc = "Field `ENABLE` reader - Counter enable"] pub type EnableR = crate :: BitReader ;
#[doc = "Field `ENABLE` writer - Counter enable"] pub type EnableW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `TICKINT` reader - SysTick exception request enable"] pub type TickintR = crate :: BitReader ;
#[doc = "Field `TICKINT` writer - SysTick exception request enable"] pub type TickintW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `CLKSOURCE` reader - Clock source selection"] pub type ClksourceR = crate :: BitReader ;
#[doc = "Field `CLKSOURCE` writer - Clock source selection"] pub type ClksourceW < 'a , REG > = crate :: BitWriter < 'a , REG > ;
#[doc = "Field `COUNTFLAG` reader - COUNTFLAG"] pub type CountflagR = crate :: BitReader ;
#[doc = "Field `COUNTFLAG` writer - COUNTFLAG"] pub type CountflagW < 'a , REG > = crate :: BitWriter < 'a , REG > ; impl R {
#[doc = "Bit 0 - Counter enable"]
#[inline (always)] pub fn enable (& self) -> EnableR { EnableR :: new ((self . bits & 1) != 0) }
#[doc = "Bit 1 - SysTick exception request enable"]
#[inline (always)] pub fn tickint (& self) -> TickintR { TickintR :: new (((self . bits >> 1) & 1) != 0) }
#[doc = "Bit 2 - Clock source selection"]
#[inline (always)] pub fn clksource (& self) -> ClksourceR { ClksourceR :: new (((self . bits >> 2) & 1) != 0) }
#[doc = "Bit 16 - COUNTFLAG"]
#[inline (always)] pub fn countflag (& self) -> CountflagR { CountflagR :: new (((self . bits >> 16) & 1) != 0) } } impl W {
#[doc = "Bit 0 - Counter enable"]
#[inline (always)] pub fn enable (& mut self) -> EnableW < '_ , CtrlSpec > { EnableW :: new (self , 0) }
#[doc = "Bit 1 - SysTick exception request enable"]
#[inline (always)] pub fn tickint (& mut self) -> TickintW < '_ , CtrlSpec > { TickintW :: new (self , 1) }
#[doc = "Bit 2 - Clock source selection"]
#[inline (always)] pub fn clksource (& mut self) -> ClksourceW < '_ , CtrlSpec > { ClksourceW :: new (self , 2) }
#[doc = "Bit 16 - COUNTFLAG"]
#[inline (always)] pub fn countflag (& mut self) -> CountflagW < '_ , CtrlSpec > { CountflagW :: new (self , 16) } }
#[doc = "SysTick control and status register\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CtrlSpec ; impl crate :: RegisterSpec for CtrlSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`ctrl::R`](R) reader structure"] impl crate :: Readable for CtrlSpec { }
#[doc = "`write(|w| ..)` method takes [`ctrl::W`](W) writer structure"] impl crate :: Writable for CtrlSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CTRL to value 0"] impl crate :: Resettable for CtrlSpec { } }
#[doc = "LOAD_ (rw) register accessor: SysTick reload value register\n\nYou can [`read`](crate::Reg::read) this register and get [`load_::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`load_::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@load_`] module"]
#[doc (alias = "LOAD_")] pub type Load_ = crate :: Reg < load_ :: Load_Spec > ;
#[doc = "SysTick reload value register"] pub mod load_ {
#[doc = "Register `LOAD_` reader"] pub type R = crate :: R < Load_Spec > ;
#[doc = "Register `LOAD_` writer"] pub type W = crate :: W < Load_Spec > ;
#[doc = "Field `RELOAD` reader - RELOAD value"] pub type ReloadR = crate :: FieldReader < u32 > ;
#[doc = "Field `RELOAD` writer - RELOAD value"] pub type ReloadW < 'a , REG > = crate :: FieldWriter < 'a , REG , 24 , u32 > ; impl R {
#[doc = "Bits 0:23 - RELOAD value"]
#[inline (always)] pub fn reload (& self) -> ReloadR { ReloadR :: new (self . bits & 0x00ff_ffff) } } impl W {
#[doc = "Bits 0:23 - RELOAD value"]
#[inline (always)] pub fn reload (& mut self) -> ReloadW < '_ , Load_Spec > { ReloadW :: new (self , 0) } }
#[doc = "SysTick reload value register\n\nYou can [`read`](crate::Reg::read) this register and get [`load_::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`load_::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct Load_Spec ; impl crate :: RegisterSpec for Load_Spec { type Ux = u32 ; }
#[doc = "`read()` method returns [`load_::R`](R) reader structure"] impl crate :: Readable for Load_Spec { }
#[doc = "`write(|w| ..)` method takes [`load_::W`](W) writer structure"] impl crate :: Writable for Load_Spec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets LOAD_ to value 0"] impl crate :: Resettable for Load_Spec { } }
#[doc = "VAL (rw) register accessor: SysTick current value register\n\nYou can [`read`](crate::Reg::read) this register and get [`val::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`val::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@val`] module"]
#[doc (alias = "VAL")] pub type Val = crate :: Reg < val :: ValSpec > ;
#[doc = "SysTick current value register"] pub mod val {
#[doc = "Register `VAL` reader"] pub type R = crate :: R < ValSpec > ;
#[doc = "Register `VAL` writer"] pub type W = crate :: W < ValSpec > ;
#[doc = "Field `CURRENT` reader - Current counter value"] pub type CurrentR = crate :: FieldReader < u32 > ;
#[doc = "Field `CURRENT` writer - Current counter value"] pub type CurrentW < 'a , REG > = crate :: FieldWriter < 'a , REG , 24 , u32 > ; impl R {
#[doc = "Bits 0:23 - Current counter value"]
#[inline (always)] pub fn current (& self) -> CurrentR { CurrentR :: new (self . bits & 0x00ff_ffff) } } impl W {
#[doc = "Bits 0:23 - Current counter value"]
#[inline (always)] pub fn current (& mut self) -> CurrentW < '_ , ValSpec > { CurrentW :: new (self , 0) } }
#[doc = "SysTick current value register\n\nYou can [`read`](crate::Reg::read) this register and get [`val::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`val::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct ValSpec ; impl crate :: RegisterSpec for ValSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`val::R`](R) reader structure"] impl crate :: Readable for ValSpec { }
#[doc = "`write(|w| ..)` method takes [`val::W`](W) writer structure"] impl crate :: Writable for ValSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets VAL to value 0"] impl crate :: Resettable for ValSpec { } }
#[doc = "CALIB (rw) register accessor: SysTick calibration value register\n\nYou can [`read`](crate::Reg::read) this register and get [`calib::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`calib::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@calib`] module"]
#[doc (alias = "CALIB")] pub type Calib = crate :: Reg < calib :: CalibSpec > ;
#[doc = "SysTick calibration value register"] pub mod calib {
#[doc = "Register `CALIB` reader"] pub type R = crate :: R < CalibSpec > ;
#[doc = "Register `CALIB` writer"] pub type W = crate :: W < CalibSpec > ;
#[doc = "Field `TENMS` reader - Calibration value"] pub type TenmsR = crate :: FieldReader < u32 > ;
#[doc = "Field `TENMS` writer - Calibration value"] pub type TenmsW < 'a , REG > = crate :: FieldWriter < 'a , REG , 24 , u32 > ; impl R {
#[doc = "Bits 0:23 - Calibration value"]
#[inline (always)] pub fn tenms (& self) -> TenmsR { TenmsR :: new (self . bits & 0x00ff_ffff) } } impl W {
#[doc = "Bits 0:23 - Calibration value"]
#[inline (always)] pub fn tenms (& mut self) -> TenmsW < '_ , CalibSpec > { TenmsW :: new (self , 0) } }
#[doc = "SysTick calibration value register\n\nYou can [`read`](crate::Reg::read) this register and get [`calib::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`calib::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct CalibSpec ; impl crate :: RegisterSpec for CalibSpec { type Ux = u32 ; }
#[doc = "`read()` method returns [`calib::R`](R) reader structure"] impl crate :: Readable for CalibSpec { }
#[doc = "`write(|w| ..)` method takes [`calib::W`](W) writer structure"] impl crate :: Writable for CalibSpec { type Safety = crate :: Unsafe ; }
#[doc = "`reset()` method sets CALIB to value 0"] impl crate :: Resettable for CalibSpec { } } }
#[no_mangle] static mut DEVICE_PERIPHERALS : bool = false ;
#[doc = r" All the peripherals."]
#[allow (non_snake_case)] pub struct Peripherals {
#[doc = "FSMC"] pub fsmc : Fsmc ,
#[doc = "PWR"] pub pwr : Pwr ,
#[doc = "RCC"] pub rcc : Rcc ,
#[doc = "GPIOA"] pub gpioa : Gpioa ,
#[doc = "GPIOB"] pub gpiob : Gpiob ,
#[doc = "GPIOC"] pub gpioc : Gpioc ,
#[doc = "GPIOD"] pub gpiod : Gpiod ,
#[doc = "GPIOE"] pub gpioe : Gpioe ,
#[doc = "GPIOF"] pub gpiof : Gpiof ,
#[doc = "GPIOG"] pub gpiog : Gpiog ,
#[doc = "AFIO"] pub afio : Afio ,
#[doc = "EXTI"] pub exti : Exti ,
#[doc = "DMA1"] pub dma1 : Dma1 ,
#[doc = "DMA2"] pub dma2 : Dma2 ,
#[doc = "SDIO"] pub sdio : Sdio ,
#[doc = "RTC"] pub rtc : Rtc ,
#[doc = "BKP"] pub bkp : Bkp ,
#[doc = "IWDG"] pub iwdg : Iwdg ,
#[doc = "WWDG"] pub wwdg : Wwdg ,
#[doc = "TIM1"] pub tim1 : Tim1 ,
#[doc = "TIM8"] pub tim8 : Tim8 ,
#[doc = "TIM2"] pub tim2 : Tim2 ,
#[doc = "TIM3"] pub tim3 : Tim3 ,
#[doc = "TIM4"] pub tim4 : Tim4 ,
#[doc = "TIM5"] pub tim5 : Tim5 ,
#[doc = "TIM9"] pub tim9 : Tim9 ,
#[doc = "TIM12"] pub tim12 : Tim12 ,
#[doc = "TIM10"] pub tim10 : Tim10 ,
#[doc = "TIM11"] pub tim11 : Tim11 ,
#[doc = "TIM13"] pub tim13 : Tim13 ,
#[doc = "TIM14"] pub tim14 : Tim14 ,
#[doc = "TIM6"] pub tim6 : Tim6 ,
#[doc = "TIM7"] pub tim7 : Tim7 ,
#[doc = "I2C1"] pub i2c1 : I2c1 ,
#[doc = "I2C2"] pub i2c2 : I2c2 ,
#[doc = "SPI1"] pub spi1 : Spi1 ,
#[doc = "SPI2"] pub spi2 : Spi2 ,
#[doc = "SPI3"] pub spi3 : Spi3 ,
#[doc = "USART1"] pub usart1 : Usart1 ,
#[doc = "USART2"] pub usart2 : Usart2 ,
#[doc = "USART3"] pub usart3 : Usart3 ,
#[doc = "ADC1"] pub adc1 : Adc1 ,
#[doc = "ADC2"] pub adc2 : Adc2 ,
#[doc = "ADC3"] pub adc3 : Adc3 ,
#[doc = "CAN1"] pub can1 : Can1 ,
#[doc = "CAN2"] pub can2 : Can2 ,
#[doc = "DAC"] pub dac : Dac ,
#[doc = "DBG"] pub dbg : Dbg ,
#[doc = "UART4"] pub uart4 : Uart4 ,
#[doc = "UART5"] pub uart5 : Uart5 ,
#[doc = "CRC"] pub crc : Crc ,
#[doc = "FLASH"] pub flash : Flash ,
#[doc = "USB"] pub usb : Usb ,
#[doc = "OTG_FS_DEVICE"] pub otg_fs_device : OtgFsDevice ,
#[doc = "OTG_FS_GLOBAL"] pub otg_fs_global : OtgFsGlobal ,
#[doc = "OTG_FS_HOST"] pub otg_fs_host : OtgFsHost ,
#[doc = "OTG_FS_PWRCLK"] pub otg_fs_pwrclk : OtgFsPwrclk ,
#[doc = "ETHERNET_MMC"] pub ethernet_mmc : EthernetMmc ,
#[doc = "ETHERNET_MAC"] pub ethernet_mac : EthernetMac ,
#[doc = "ETHERNET_PTP"] pub ethernet_ptp : EthernetPtp ,
#[doc = "ETHERNET_DMA"] pub ethernet_dma : EthernetDma ,
#[doc = "SCB_ACTRL"] pub scb_actrl : ScbActrl ,
#[doc = "NVIC_STIR"] pub nvic_stir : NvicStir ,
#[doc = "STK"] pub stk : Stk , } impl Peripherals {
#[doc = r" Returns all the peripherals *once*."]
#[cfg (feature = "critical-section")]
#[inline] pub fn take () -> Option < Self > { critical_section :: with (| _ | { if unsafe { DEVICE_PERIPHERALS } { return None } Some (unsafe { Peripherals :: steal () }) }) }
#[doc = r" Unchecked version of `Peripherals::take`."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Each of the returned peripherals must be used at most once."]
#[inline] pub unsafe fn steal () -> Self { DEVICE_PERIPHERALS = true ; Peripherals { fsmc : Fsmc :: steal () , pwr : Pwr :: steal () , rcc : Rcc :: steal () , gpioa : Gpioa :: steal () , gpiob : Gpiob :: steal () , gpioc : Gpioc :: steal () , gpiod : Gpiod :: steal () , gpioe : Gpioe :: steal () , gpiof : Gpiof :: steal () , gpiog : Gpiog :: steal () , afio : Afio :: steal () , exti : Exti :: steal () , dma1 : Dma1 :: steal () , dma2 : Dma2 :: steal () , sdio : Sdio :: steal () , rtc : Rtc :: steal () , bkp : Bkp :: steal () , iwdg : Iwdg :: steal () , wwdg : Wwdg :: steal () , tim1 : Tim1 :: steal () , tim8 : Tim8 :: steal () , tim2 : Tim2 :: steal () , tim3 : Tim3 :: steal () , tim4 : Tim4 :: steal () , tim5 : Tim5 :: steal () , tim9 : Tim9 :: steal () , tim12 : Tim12 :: steal () , tim10 : Tim10 :: steal () , tim11 : Tim11 :: steal () , tim13 : Tim13 :: steal () , tim14 : Tim14 :: steal () , tim6 : Tim6 :: steal () , tim7 : Tim7 :: steal () , i2c1 : I2c1 :: steal () , i2c2 : I2c2 :: steal () , spi1 : Spi1 :: steal () , spi2 : Spi2 :: steal () , spi3 : Spi3 :: steal () , usart1 : Usart1 :: steal () , usart2 : Usart2 :: steal () , usart3 : Usart3 :: steal () , adc1 : Adc1 :: steal () , adc2 : Adc2 :: steal () , adc3 : Adc3 :: steal () , can1 : Can1 :: steal () , can2 : Can2 :: steal () , dac : Dac :: steal () , dbg : Dbg :: steal () , uart4 : Uart4 :: steal () , uart5 : Uart5 :: steal () , crc : Crc :: steal () , flash : Flash :: steal () , usb : Usb :: steal () , otg_fs_device : OtgFsDevice :: steal () , otg_fs_global : OtgFsGlobal :: steal () , otg_fs_host : OtgFsHost :: steal () , otg_fs_pwrclk : OtgFsPwrclk :: steal () , ethernet_mmc : EthernetMmc :: steal () , ethernet_mac : EthernetMac :: steal () , ethernet_ptp : EthernetPtp :: steal () , ethernet_dma : EthernetDma :: steal () , scb_actrl : ScbActrl :: steal () , nvic_stir : NvicStir :: steal () , stk : Stk :: steal () , } } }